:root {
  color-scheme: light;
  --paper: #f9f4e9;
  --canvas: #f3e9d9;
  --white: #fffaf1;
  --ink: #291d18;
  --muted: #635448;
  --accent: #792e37;
  --accent-dark: #57232a;
  --line: #d5c6b4;
  --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
a { color: inherit; text-underline-offset: .21em; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(2.7rem, 5.8vw, 5.15rem); line-height: 1.02; letter-spacing: -.051em; }
h2 { font-size: clamp(2rem, 3.65vw, 3.1rem); line-height: 1.1; letter-spacing: -.036em; }
h3 { font-size: 1.06rem; line-height: 1.38; letter-spacing: -.016em; }
p { margin: .7em 0 0; color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.frame { width: min(100% - 5.5rem, 78rem); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { display: inline-block; position: absolute; z-index: 20; top: .5rem; left: .5rem; padding: .5rem 1rem; background: var(--white); }
.masthead { border-bottom: 1px solid var(--line); background: #fcf7ed; position: relative; z-index: 3; }
.header-layout { min-height: 5.05rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .72rem; text-decoration: none; font: bold 1.15rem/1.1 var(--serif); letter-spacing: -.02em; }
.mark { display: grid; place-items: center; width: 2rem; height: 2rem; background: var(--accent); color: var(--white); font: 1.3rem/1 var(--serif); border-radius: .22rem; }
.navigation, .header-tools, .languages { display: flex; align-items: center; }
.navigation { gap: clamp(.9rem, 2.35vw, 2.05rem); }
.header-tools { gap: .9rem; }
.navigation a, summary, .languages a { min-height: 2.65rem; display: inline-flex; align-items: center; font-size: .88rem; font-weight: 650; text-decoration: none; }
.navigation a:hover, .navigation a[aria-current], .story-read, .text-link { color: var(--accent); }
.navigation a[aria-current] { text-decoration: underline; }
.languages { gap: .15rem; padding: .15rem; border: 1px solid var(--line); border-radius: .32rem; }
.languages a { padding: .3rem .53rem; min-height: 1.8rem; border-radius: .19rem; font-size: .72rem; }
.languages a[aria-current], .languages a:hover { background: var(--accent); color: white; }
.shop-menu { position: relative; }
.shop-menu summary { cursor: pointer; gap: .45rem; list-style: none; }
.shop-menu summary::-webkit-details-marker { display: none; }
.shop-menu summary::after { content: ''; width: .38rem; height: .38rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); }
.shop-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.shop-dropdown, .shop-list { list-style: none; padding: 0; margin: 0; }
.shop-dropdown { position: absolute; z-index: 10; top: calc(100% + .4rem); right: 0; width: min(27rem, 88vw); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .55rem; border: 1px solid var(--line); border-radius: .3rem; background: var(--white); box-shadow: 0 10px 24px #3c21151e; }
.shop-dropdown a, .shop-list a { display: flex; justify-content: space-between; align-items: center; gap: .65rem; padding: .65rem .8rem; font-size: .88rem; font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.shop-dropdown a:hover, .shop-list a:hover { color: var(--accent); background: var(--canvas); }
.shop-dropdown a span, .shop-list a span { color: var(--accent); }
.hero { display: grid; grid-template-columns: 1fr minmax(0, 1.055fr); align-items: stretch; gap: clamp(1.3rem, 4vw, 4.1rem); padding-block: clamp(2.6rem, 5.5vw, 5.2rem) clamp(2.6rem, 5vw, 4.1rem); }
.hero-copy { align-self: center; }
.hero h1 em { display: block; margin-top: .25em; color: var(--accent); font-size: .64em; font-weight: 500; line-height: 1.08; }
.hero-copy p { max-width: 35rem; margin-top: 1.45rem; font-size: clamp(1rem, 1.45vw, 1.16rem); }
.hero-picture { position: relative; min-height: 22rem; background: var(--canvas); overflow: hidden; border-radius: .24rem; }
.hero-picture img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.6rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 2.9rem; padding: .58rem 1rem; border: 1px solid var(--line); border-radius: .26rem; text-decoration: none; font: 700 .87rem/1.4 var(--sans); text-align: center; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff9ee; }
.button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.plain:hover { background: var(--canvas); color: var(--accent); }
.case { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(1rem, 5vw, 5.25rem); background: var(--accent-dark); border-radius: .24rem; padding: clamp(1.45rem, 3.3vw, 3.15rem); color: #fff7ec; }
.case h2 { font-size: clamp(1.85rem, 3.25vw, 2.85rem); margin-top: .52rem; color: inherit; }
.case p { color: #f4ded4; font-size: .93rem; }
.kicker { color: var(--accent); font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; line-height: 1.3; }
.case .kicker { margin: 0; color: #f6bead; font-size: .72rem; }
.case table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .875rem; }
.case th, .case td { text-align: left; padding: .33rem .45rem .38rem 0; border-bottom: 1px solid #a06f71; }
.case thead th { color: #f6bead; font-size: .77rem; }
.case tbody th { font-weight: 500; }
.case .case-result { margin-top: .85rem; font-size: .86rem; }
.section { padding-block: clamp(2.65rem, 6vw, 5.35rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 1.7rem; }
.section-head p { max-width: 45rem; }
.text-link { flex-shrink: 0; font: 700 .91rem/1.4 var(--sans); }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.story-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: .25rem; background: var(--white); overflow: hidden; }
.story-picture { display: block; background: var(--canvas); }
.story-picture img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.card-content { display: flex; flex-direction: column; flex: 1; align-items: start; padding: 1.15rem 1.2rem 1.3rem; }
.card-content h3 { margin-top: .55rem; font: 500 1.36rem/1.2 var(--serif); letter-spacing: -.025em; }
.card-content h3 a, .story-row a { text-decoration: none; }
.card-content h3 a:hover, .story-row a:hover h3 { color: var(--accent); text-decoration: underline; }
.card-content p { margin-bottom: 1.05rem; font-size: .9rem; }
.story-read { margin-top: auto; font-size: .8rem; font-weight: 700; }
.story-directory { margin-top: 2.15rem; }
.story-directory > h3 { margin-bottom: .7rem; }
.story-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; border-bottom: 1px solid var(--line); }
.story-row { border-top: 1px solid var(--line); }
.story-row a { display: grid; grid-template-columns: 5.45rem 1fr auto; gap: .8rem; align-items: center; padding: .85rem 0; height: 100%; }
.story-row img { width: 100%; aspect-ratio: 1; border-radius: .15rem; object-fit: cover; }
.story-row h3 { margin-top: .13rem; }
.story-row p { margin-top: .19rem; font-size: .825rem; line-height: 1.48; }
.story-row a > span { color: var(--accent); }
.browse-panel { background: var(--canvas); }
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.topic { display: flex; flex-direction: column; align-items: start; min-height: 9rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: .23rem; background: var(--white); text-decoration: none; }
.topic:hover { border-color: var(--accent); }
.topic h3 { color: var(--accent); }
.topic p { font-size: .86rem; }
.topic .kicker { margin-top: auto; padding-top: .8rem; }
.shop-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.shop-list a { min-height: 2.85rem; border: 1px solid var(--line); border-radius: .23rem; }
footer { border-top: 1px solid var(--line); background: #fcf7ed; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; padding-block: 1.65rem; }
.footer-links { display: flex; gap: .8rem 1.3rem; flex-wrap: wrap; }
.footer-inner p, .footer-links a { font-size: .85rem; }
.footer-links a:hover { color: var(--accent); }
.subpage { padding-block: clamp(2rem, 5vw, 4.6rem); }
.page-intro { max-width: 53rem; margin-bottom: clamp(1.9rem, 5.5vw, 4rem); }
.page-intro h1, .detail-heading h1 { font-size: clamp(2.4rem, 5.4vw, 4.35rem); }
.page-intro p, .detail-heading p { font-size: clamp(1.04rem, 1.5vw, 1.22rem); }
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: .63rem; margin-bottom: 1.35rem; font-size: .83rem; }
.crumb span { color: var(--muted); }
.directory-section + .directory-section { margin-top: 3rem; }
.directory-section > h2 { margin-bottom: 1.25rem; }
.guide-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.guide-list li { border-bottom: 1px solid var(--line); }
.guide-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-decoration: none; padding: .82rem 0; }
.guide-list a:hover h3 { color: var(--accent); text-decoration: underline; }
.guide-list a > span { color: var(--accent); }
.guide-list p { margin: .22rem 0 0; font-size: .9rem; }
.detail { width: min(100%, 55rem); margin-inline: auto; }
.detail-heading { margin-bottom: 1.65rem; }
.detail-heading h1 { margin-top: .4rem; }
.detail-image { margin: 0 0 2.1rem; }
.detail-image img { aspect-ratio: 3/2; max-height: 30rem; object-fit: cover; border-radius: .23rem; }
figcaption { margin-top: .45rem; font-size: .77rem; color: var(--muted); }
.reading { width: min(100%, 43rem); margin-inline: auto; font-size: 1.02rem; overflow-wrap: anywhere; }
.about-reading { margin-inline: 0; }
.reading section + section { margin-top: 2.1rem; }
.reading h2 { font-size: clamp(1.58rem, 3vw, 2.25rem); }
.reading p { color: var(--ink); }
.reading ul { padding-left: 1.35rem; }
.reading li + li { margin-top: .45rem; }
.source { padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .92rem; }
.related { margin: 3.2rem auto 0; max-width: 55rem; border-top: 1px solid var(--line); padding-top: 1.45rem; }
.related ul { padding-left: 1.15rem; }
.related li + li { margin-top: .6rem; }

@media (max-width: 67rem) {
  .frame { width: min(100% - 3.5rem, 78rem); }
  .header-layout { gap: .8rem; }
  .header-tools { gap: .65rem; }
  .navigation { gap: .85rem; }
  .hero-picture { min-height: 20rem; }
}
@media (max-width: 52rem) {
  .header-layout { flex-wrap: wrap; gap: .2rem 1rem; padding-block: .6rem .18rem; }
  .navigation { order: 3; flex: 0 0 100%; gap: 1.55rem; }
  .hero { gap: 1.35rem; }
  .hero-picture { min-height: 16.5rem; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #articles .story-card:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; }
  .topic-grid, .shop-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 37.5rem) {
  .frame { width: calc(100% - 2rem); }
  .brand { gap: .45rem; font-size: 1.04rem; }
  .mark { width: 1.68rem; height: 1.68rem; font-size: 1.05rem; }
  .navigation { justify-content: space-between; gap: .55rem; }
  .navigation a { font-size: .79rem; }
  .header-tools { gap: .45rem; }
  .languages { gap: 0; }
  .languages a { padding: .3rem .34rem; }
  .shop-menu summary { font-size: .75rem; }
  .header-layout { position: relative; }
  .shop-menu { position: static; }
  .shop-dropdown { right: 0; width: 100%; max-height: 69svh; overflow-y: auto; }
  .hero, .case, .story-rows { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 2.15rem 1.7rem; }
  .hero-picture { min-height: 0; aspect-ratio: 3/2; }
  .hero-copy p { margin-top: 1rem; }
  .actions { margin-top: 1.15rem; }
  .section-head { flex-direction: column; align-items: start; }
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  #articles .story-card:nth-child(3) { display: flex; }
  #articles .story-picture img { aspect-ratio: 2 / 1; }
  .topic { padding: .9rem; }
  .footer-inner { align-items: start; flex-direction: column; }
}
@media (max-width: 22rem) {
  .header-tools { flex: 1 1 100%; justify-content: space-between; }
  .topic-grid { grid-template-columns: minmax(0, 1fr); }
}
