:root {
  color-scheme: dark;
  --paper: #f4ead8;
  --muted: #cdbda7;
  --ink: #211915;
  --ink-deep: #19130f;
  --surface: #2a201a;
  --line: #594637;
  --gold: #e6b47e;
  --light-line: #866b53;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, sans-serif;
  font-family: var(--sans);
  background: var(--ink);
  color: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
img { display: block; width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
::selection { background: var(--gold); color: var(--ink-deep); }
.wrap { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 12px; left: 12px; transform: translateY(-150%); background: var(--paper); color: var(--ink); padding: 12px 20px; }
.skip:focus { transform: none; }

.site-header { background: var(--ink-deep); border-bottom: 1px solid var(--line); }
.header-grid { min-height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; justify-self: start; font-size: .94rem; letter-spacing: -.025em; white-space: nowrap; }
.wordmark strong { font-weight: 500; color: var(--muted); }
.mark { display: grid; grid-template-columns: repeat(2, 5px); gap: 3px; border: 1px solid var(--light-line); padding: 5px; }
.mark i { width: 5px; height: 5px; background: var(--gold); }
.mark i:last-child { opacity: .45; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 2.3vw, 34px); font-size: .88rem; }
.nav a, .locale summary { padding-block: 9px; }
.nav [aria-current], .flyout [aria-current] { color: var(--gold); }
.dropdown { position: relative; }
.dropdown summary { width: max-content; display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; padding-block: 9px; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: ''; width: 6px; height: 6px; border: solid var(--gold); border-width: 0 1px 1px 0; transform: rotate(45deg); margin-top: -4px; }
.dropdown[open] summary::after { transform: rotate(225deg); margin-top: 3px; }
.dropdown[open] summary { color: var(--gold); }
.locale { justify-self: end; font-size: .87rem; }
.flyout { position: absolute; z-index: 3; top: calc(100% + 8px); right: 0; padding: 8px; min-width: 136px; border: 1px solid var(--line); background: var(--ink-deep); box-shadow: 0 14px 30px #0e09076e; }
.flyout a { display: flex; justify-content: space-between; gap: 10px; line-height: 1.2; padding: 12px; }
.flyout a:hover { background: var(--surface); }
.categories-menu .flyout { left: 0; right: auto; display: grid; grid-template-columns: 1fr 1fr; min-width: min(345px, calc(100vw - 36px)); }
.categories-menu .menu-index { grid-column: 1 / -1; color: var(--gold); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.flyout a span { color: var(--gold); }

.hero { display: grid; grid-template-columns: .95fr 1.05fr; align-items: stretch; min-height: 470px; margin-top: 44px; }
.hero-copy { padding: clamp(28px, 4.5vw, 74px) 28px clamp(28px, 4.5vw, 68px) 0; align-self: center; }
.eyebrow { color: var(--gold); font-size: .73rem; font-weight: 660; text-transform: uppercase; letter-spacing: .14em; line-height: 1.5; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; }
.hero .eyebrow span { width: 20px; border-top: 1px solid var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
.hero h1 { font-size: clamp(3.5rem, 6.4vw, 6.6rem); line-height: .93; margin: 20px 0 24px; letter-spacing: -.086em; }
.hero h1 em { display: block; font-weight: 400; letter-spacing: -.079em; color: var(--gold); }
.hero-lead { max-width: 390px; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.18rem); line-height: 1.58; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; padding: 12px 16px; min-height: 46px; border: 1px solid var(--light-line); font-size: .85rem; font-weight: 660; text-align: center; line-height: 1.25; }
.button span { font-size: 1.13em; line-height: 1; }
.button.primary { color: var(--ink-deep); background: var(--paper); border-color: var(--paper); }
.button.primary:hover { background: var(--gold); border-color: var(--gold); color: var(--ink-deep); }
.button.secondary:hover { border-color: var(--gold); }
.hero-photo { min-height: 100%; position: relative; overflow: hidden; background: var(--surface); }
.hero-photo img { height: 100%; object-fit: cover; position: absolute; inset: 0; object-position: 56% center; }
.hero-photo::after { content: ''; position: absolute; inset: 10px; border: 1px solid #f2d9b171; pointer-events: none; }

.intro-note { margin-top: 51px; display: grid; grid-template-columns: minmax(215px, .68fr) 1.32fr; gap: clamp(30px, 6vw, 100px); padding: 36px 0 38px; border-top: 1px solid var(--light-line); border-bottom: 1px solid var(--line); }
.intro-note h2 { margin-top: 11px; }
h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); letter-spacing: -.045em; line-height: 1.06; }
.prose { font-size: 1.03rem; color: var(--muted); line-height: 1.78; }
.prose p + p { margin-top: 1em; }
.prose h2 { color: var(--paper); }
.section { margin-top: 60px; margin-bottom: 60px; }
.section-heading { display: flex; align-items: end; gap: 18px; justify-content: space-between; margin-bottom: 22px; }
.text-link { color: var(--gold); display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; line-height: 1.3; padding-block: 5px; }
.text-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.article-card { min-width: 0; border: 1px solid var(--line); background: var(--surface); position: relative; }
.article-card a { display: block; height: 100%; }
.article-card img { aspect-ratio: 3/2; object-fit: cover; }
.article-card a > div { padding: 18px 36px 20px 18px; }
.article-card h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.12; margin: 7px 0; letter-spacing: -.02em; }
.article-card p:last-child { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.article-card .card-arrow { position: absolute; bottom: 15px; right: 13px; color: var(--gold); }

.library { display: grid; grid-template-columns: minmax(210px, .65fr) 1.35fr; gap: clamp(24px, 6.5vw, 95px); }
.library p, .category-call p { color: var(--muted); line-height: 1.55; margin: 12px 0 10px; max-width: 42ch; }
.reference-list { list-style: none; border-top: 1px solid var(--line); }
.reference-list li { border-bottom: 1px solid var(--line); }
.reference-list a { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 0; }
.reference-list a > span:last-child { color: var(--gold); }
.reference-list strong { font-weight: 600; line-height: 1.36; }
.reference-list small { display: block; color: var(--muted); font-size: .84rem; margin-top: 3px; line-height: 1.5; }
.category-call { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 27px; border: 1px solid var(--line); background: var(--surface); margin-block: 54px; }
.category-call .actions { margin-top: 0; }

.site-footer { border-top: 1px solid var(--line); background: var(--ink-deep); }
.footer-grid { display: flex; justify-content: space-between; align-items: start; gap: 30px; padding-block: 33px; }
.footer-brand { font-family: var(--serif); font-size: 1.55rem; letter-spacing: -.03em; }
.footer-grid p { margin-top: 7px; color: var(--muted); font-size: .84rem; }
.footer-links { display: flex; justify-content: end; flex-wrap: wrap; gap: 12px 21px; font-size: .84rem; }

.page-intro, .entry-header { padding-top: 42px; }
.page-intro { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.crumb { display: flex; gap: 7px 11px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
.crumb i { color: var(--gold); font-style: normal; }
.page-intro h1, .entry-header h1 { font-size: clamp(2.1rem, 5.8vw, 5rem); line-height: 1.05; letter-spacing: -.054em; max-width: 22ch; overflow-wrap: anywhere; }
.page-intro h1 { margin-top: 22px; }
.page-intro > p, .entry-header > p:last-child { margin-top: 15px; color: var(--muted); font-size: 1.06rem; line-height: 1.65; max-width: 73ch; }
.subject-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.subject-nav a { padding: 9px 13px; border: 1px solid var(--line); line-height: 1.25; font-size: .88rem; }
.subject-nav a[aria-current] { border-color: var(--gold); color: var(--gold); }

.directory { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-block: 25px 60px; }
.directory li { border-bottom: 1px solid var(--line); }
.directory article { padding: 20px 0 22px; }
.directory h2 { font-size: 1.48rem; }
.directory a { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.directory a span { color: var(--gold); font-size: .73em; }
.directory p { color: var(--muted); margin-top: 9px; line-height: 1.5; font-size: .92rem; }
.standalone, .faq, .lost { margin-block: 33px 62px; }
.standalone section + section, .entry-body section + section { margin-top: 32px; }
.standalone h2, .entry-body h2 { margin-bottom: 12px; font-size: clamp(1.47rem, 2.6vw, 2.35rem); }
.standalone p, .entry-body p { max-width: 74ch; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; color: var(--paper); line-height: 1.45; padding-block: 6px; }
.faq details p { max-width: 70ch; color: var(--muted); line-height: 1.65; margin: 10px 0 5px; }
.entry-header .eyebrow { margin: 30px 0 11px; }
.entry-photo { margin-top: 31px; }
.entry-photo img { max-height: 550px; object-fit: cover; object-position: center; border: 1px solid var(--line); }
.entry-photo figcaption { font-size: .76rem; color: var(--muted); margin-top: 8px; }
.entry-grid { margin-top: 34px; display: grid; grid-template-columns: minmax(180px, .42fr) 1.58fr; gap: 34px; align-items: start; }
.contents { border-top: 1px solid var(--light-line); padding: 11px 0 7px; }
.contents strong { color: var(--gold); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; }
.contents ul { list-style: none; margin-top: 6px; }
.contents a { display: block; padding: 5px 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.contents a:hover { color: var(--gold); }
.entry-body section { scroll-margin-top: 20px; }
.related-cards { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 22px; }
.measurement { margin-top: 34px; border: 1px solid var(--line); padding: 22px; background: var(--surface); }
.measure-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.measurement label { font-size: .87rem; line-height: 1.35; }
.measurement input { width: 100%; border: 1px solid var(--light-line); background: var(--ink-deep); color: var(--paper); min-height: 44px; padding: 9px; font: inherit; font-size: 1rem; margin-top: 6px; }
.measurement .measure-result { margin-top: 14px; }
.measurement output { display: block; color: var(--gold); }

@media (max-width: 920px) {
  .wrap { width: calc(100% - 54px); }
  .hero { min-height: 390px; }
  .header-grid, .cards { gap: 16px; }
  .nav { gap: 14px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .header-grid { grid-template-columns: 1fr auto; min-height: 0; padding-top: 13px; gap: 6px 15px; }
  .locale { grid-column: 2; grid-row: 1; }
  .nav { grid-column: 1 / -1; gap: 9px 17px; min-height: 43px; border-top: 1px solid var(--line); }
  .nav a, .dropdown summary { padding-block: 11px; }
  .hero { grid-template-columns: 1fr; min-height: 0; margin-top: 0; }
  .hero-copy { padding: 41px 0 26px; }
  .hero h1 { font-size: clamp(2.65rem, 11.9vw, 4.8rem); margin: 16px 0 17px; }
  .hero-lead { max-width: 35ch; }
  .hero-photo { min-height: 0; aspect-ratio: 1.58; }
  .intro-note, .library, .entry-grid { grid-template-columns: 1fr; gap: 17px; }
  .intro-note { margin-top: 30px; padding-block: 23px; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .section { margin-block: 39px; }
  .section-heading { align-items: start; }
  .section-heading .text-link { text-align: end; }
  .category-call, .footer-grid { display: block; }
  .category-call .actions { margin-top: 17px; }
  .footer-links { margin-top: 18px; justify-content: start; }
  .page-intro, .entry-header { padding-top: 25px; }
  .entry-photo { margin-top: 22px; }
  .entry-grid { margin-top: 21px; }
  .contents ul { display: flex; flex-wrap: wrap; gap: 0 16px; }
  .directory { gap: 0 18px; }
}
@media (max-width: 410px) {
  .cards { grid-template-columns: 1fr; }
  .category-call { padding: 17px; }
  .button { padding-inline: 12px; }
  .directory { grid-template-columns: 1fr; }
}
