@layer archive {
  body { font-size: 1rem; }
  input, textarea, select { font: inherit; }
  button:disabled { cursor: default; }
  .site-frame { min-height: 100vh; }
  .brand-header { grid-template-columns: auto 1fr auto; padding-inline: 4%; gap: 25px; min-height: 88px; }
  .site-nav { justify-content: center; gap: clamp(16px, 2.2cqw, 33px); }
  .site-nav a { font-size: .875rem; }
  .wordmark { font-size: 1.25rem; }
  .wordmark small { font-size: .75rem; font-weight: 500; }
  .wordmark img { width: 52px; height: 52px; }
  .eyebrow { font-size: .75rem; line-height: 1.6; letter-spacing: .055em; }
  .primary-button, .secondary-button, .text-button, .pill { font-size: .875rem; }
  .primary-button:disabled { opacity: .65; }
  .site-footer { font-size: .875rem; gap: 20px; flex-wrap: wrap; }
  .site-footer > div { flex-wrap: wrap; align-items: center; }
  .site-footer .text-button { min-height: 32px; }
  .story-copy .eyebrow { font-size: .75rem; }
  .story-description, .atlas-selected p:not(.eyebrow), .museum-notes > p:not(.eyebrow),
  .part-item p, .kavad-reading p, .variant-copy > p:not(.eyebrow), .film-copy > p:not(.eyebrow) { font-size: 1rem; }
  .story-copy strong { font-size: clamp(28px, 3cqw, 43px); }
  .duration { font-size: .75rem; }
  .map-credit, .museum-display figcaption { font-size: .75rem; }
  .atlas-selected .eyebrow, .place-row, .object-tabs button, .part-toggle { font-size: .875rem; }
  .film-tile strong { font-size: .875rem; }
  .festival-tabs small { font-size: .75rem; }
  .region-picker, .festival-topics > p { font-size: .875rem; }
  .festival-topics .pill { font-size: .875rem; }
  .region-picker select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg,transparent 50%,#873231 50%),linear-gradient(135deg,#873231 50%,transparent 50%); background-position: calc(100% - 16px) 20px,calc(100% - 11px) 20px; background-size: 5px 5px; background-repeat:no-repeat; }
  .festival-tabs button { min-height: 74px; }
  .museum-display figcaption { flex-wrap: wrap; }
  .button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 15px; }
  .archive-home, .reading-page, .story-page, .watch-page { width: 90%; max-width: 1330px; margin: auto; padding-bottom: 50px; }
  .home-hero { display: grid; grid-template-columns: .92fr 1.15fr; gap: 4%; padding: 45px 0 32px; align-items: center; }
  .home-hero h1 { font: 400 clamp(70px, 9cqw, 142px)/.82 var(--serif); letter-spacing: -.04em; margin: 22px 0; }
  .home-hero h1 em { font-weight: 400; color: #416549; }
  .home-hero p:not(.eyebrow) { max-width: 350px; color: var(--soft); line-height: 1.6; font-size: 1.125rem; margin: 16px 0 23px; }
  .home-art { overflow: hidden; position: relative; height: clamp(340px, 36cqw, 550px); background: #382219; border-radius: 4px; }
  .home-art > img { width: 100%; height: 100%; object-fit: cover; object-position: 42% center; }
  .home-art > span { position: absolute; inset: auto 0 0; display: grid; gap: 5px; padding: 60px 26px 25px; color: #fff7db; background: linear-gradient(transparent,#26130c); }
  .home-art small { font: 500 .75rem/1.5 var(--mono); color: #f4da85; }
  .home-art strong { font: 400 clamp(34px, 4.3cqw, 60px)/1 var(--serif); }
  .home-art span span { font-size: .875rem; margin-top: 3px; }
  .feature-read { width: auto; min-width: 87px; padding: 0 12px; border-radius: 3px; font-size: .875rem; font-weight: 700; }
  .home-entries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
  .home-entries a { padding: 19px 22px; border-right: 1px solid var(--line); display: grid; gap: 4px; }
  .home-entries a:first-child { padding-left: 0; }
  .home-entries a:last-child { border: 0; }
  .home-entries span { font: 400 clamp(31px, 3.8cqw, 46px)/1 var(--serif); }
  .home-entries small { font-size: .875rem; color: var(--soft); }
  .home-entries a:hover span { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
  .archive-section { padding: 34px 0 12px; }
  .archive-section .section-heading { margin-bottom: 17px; }
  .archive-section > h2 { font: 400 clamp(36px, 4.6cqw, 58px)/1 var(--serif); margin-bottom: 17px; }
  .trail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
  .trail-card { min-width: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff8e9; }
  .trail-cover { display: block; position: relative; aspect-ratio: 1.85; overflow: hidden; background: #35452d; }
  .trail-cover img { width: 100%; height: 100%; object-fit: cover; }
  .trail-cover span { position: absolute; bottom: 10px; left: 12px; background: #f5ecda; padding: 5px 9px; border-radius: 2px; font-size: .75rem; font-weight: 700; }
  .trail-card > div { padding: 18px; }
  .trail-card h3 { font: 400 clamp(28px, 3cqw, 40px)/1 var(--serif); margin-bottom: 9px; }
  .trail-card p { font-size: 1rem; line-height: 1.5; color: var(--soft); }
  .trail-card .progress-label { font-size: .875rem; margin-top: 13px; }
  progress { display: block; width: 100%; height: 5px; border: 0; border-radius: 3px; accent-color: var(--accent); margin: 8px 0 3px; background: var(--line); overflow: hidden; }
  progress::-webkit-progress-bar { background: var(--line); }
  progress::-webkit-progress-value { background: var(--accent); }
  .home-people { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; align-items: center; padding: 37px 0 0; margin-top: 24px; border-top: 1px solid var(--line); }
  .home-people h2 { font: 400 clamp(34px,4cqw,55px)/.98 var(--serif); margin: 12px 0; }
  .home-people > div > p:not(.eyebrow) { color: var(--soft); line-height: 1.55; margin-bottom: 18px; }
  .maker-card { border: 1px solid var(--line); padding: 20px; border-radius: 4px; background: #fff8e9; }
  .maker-card a { display: flex; flex-wrap: wrap; align-items: start; gap: 17px; }
  .maker-card h3 { font: 400 34px/1 var(--serif); margin: 6px 0 8px; }
  .maker-card p:not(.eyebrow) { color: var(--soft); line-height: 1.4; }
  .maker-card:hover { border-color: var(--accent); }
  .maker-monogram { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: #254b32; color: #f8efd4; font: 400 31px var(--serif); }
  .maker-portrait { width: 82px; height: 82px; object-fit: cover; border-radius: 50%; }
  .maker-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .reading-page { padding-top: 20px; min-height: 70vh; }
  .reading-heading { padding: 27px 0 30px; max-width: 1000px; }
  .reading-heading h1, .story-heading h1 { font: 400 clamp(58px, 8cqw, 106px)/.9 var(--serif); letter-spacing: -.025em; margin: 14px 0 19px; text-wrap: balance; }
  .reading-deck { font-size: clamp(18px,2.1cqw,25px); line-height: 1.5; color: var(--soft); max-width: 780px; }
  .reading-heading .button-row { margin-top: 22px; }
  .profile-layout { display: grid; grid-template-columns: minmax(180px, .7fr) 1.7fr; gap: 35px; align-items: start; }
  .profile-mark { display: grid; place-items: center; aspect-ratio: 1.15; background: #244830; color: #f8ebc4; font: 400 100px var(--serif); }
  .profile-photo img { width: 100%; max-height: 350px; object-fit: contain; background: #fff; }
  .profile-photo figcaption { font-size: .75rem; padding: 7px 0; color: var(--soft); }
  .body-copy { font-size: 1.125rem; line-height: 1.75; }
  .source-note { font-size: .875rem; line-height: 1.55; color: var(--soft); margin: 14px 0; }
  .profile-layout .button-row { margin-top: 18px; }
  .reading-breadcrumb { display: flex; gap: 20px; padding: 20px 0 8px; color: var(--soft); font-size: .875rem; }
  .reading-breadcrumb a { text-decoration: underline; text-underline-offset: 4px; }
  .story-heading { max-width: 950px; padding: 18px 0 24px; }
  .story-heading .button-row { margin-top: 18px; }
  .story-main-image img { width: 100%; max-height: 570px; object-fit: cover; border-radius: 3px; }
  .story-main-image figcaption { font-size: .75rem; color: var(--soft); padding: 7px 0; }
  .story-body { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(240px,.9fr); gap: 5%; padding-top: 24px; }
  .story-body h2 { font: 400 clamp(31px,4cqw,44px)/1 var(--serif); margin: 0 0 13px; }
  .story-body article > p { font-size: 1.125rem; line-height: 1.75; margin-bottom: 20px; }
  .story-body article > section { margin-top: 30px; }
  .local-terms dl { display: grid; grid-template-columns: minmax(90px,.5fr) 1.5fr; gap: 12px 20px; padding: 16px 0; border-block: 1px solid var(--line); }
  .local-terms dt { font-weight: 700; }
  .local-terms dd { margin: 0; color: var(--soft); line-height: 1.6; }
  .story-body .maker-card + .maker-card { margin-top: 12px; }
  .story-sources a { display: block; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; margin: 10px 0; line-height: 1.5; }
  .story-sources p { color: var(--soft); font-size: .875rem; line-height: 1.5; }
  .reading-language { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 18px; }
  .reading-language span { font-size: .875rem; color: var(--soft); }
  [lang="ta"]:not(button) { font-family: system-ui,sans-serif; line-height: 1.6; letter-spacing: 0; }
  .story-heading h1[lang="ta"] { font-size: clamp(32px,5cqw,63px); }
  .place-link { display: flex; align-items: start; gap: 10px; padding: 20px; border: 1px solid var(--line); color: var(--accent); line-height: 1.5; margin-bottom: 20px; }
  .suggested-trails, .trail-continuation { background: #e9eddf; border: 1px solid #c5d1bc; padding: 20px; border-radius: 3px; }
  .suggested-trails a { display: block; padding: 12px 0; border-top: 1px solid #c5d1bc; font-weight: 650; color: var(--accent); }
  .trail-continuation > p:not(.eyebrow) { line-height: 1.6; margin: 8px 0 14px; }
  .trail-status { display: flex; align-items: center; gap: 20px; color: var(--soft); }
  .trail-status progress { max-width: 270px; }
  .trail-stops { margin-top: 25px; display: grid; gap: 20px; }
  .trail-stops article { display: grid; grid-template-columns: minmax(220px,.8fr) 1.2fr; border: 1px solid var(--line); background: #fff7e7; border-radius: 4px; overflow: hidden; }
  .trail-stops img { height: 100%; min-height: 230px; width: 100%; object-fit: cover; }
  .trail-stops article > div { padding: 24px; }
  .trail-stops h2 { font: 400 clamp(31px,4cqw,50px)/1 var(--serif); margin: 10px 0; }
  .trail-stops p:not(.eyebrow) { line-height: 1.6; color: var(--soft); margin-bottom: 16px; }
  .completed-label { display: inline-block; color: var(--accent); font-size: .875rem; margin-left: 14px; font-weight: 700; }
  .watch-page { padding-top: 19px; }
  .watch-page .reading-heading { max-width: 100%; }
  .watch-page .reading-heading h1 { font-size: clamp(47px,6cqw,80px); }
  .watch-layout { display: grid; grid-template-columns: minmax(0,2.4fr) minmax(240px,1fr); gap: 25px; }
  .watch-layout .video-frame { margin: 0; }
  .chapter-list { border: 1px solid var(--line); padding: 18px; border-radius: 4px; align-self: start; }
  .chapter-list h2, .film-reading h2 { font: 400 clamp(32px,4cqw,47px)/1 var(--serif); margin-bottom: 13px; }
  .chapter-list a { display: flex; gap: 12px; padding: 14px 4px; line-height: 1.4; border-bottom: 1px solid var(--line); color: var(--soft); }
  .chapter-list a span { font: 500 .875rem/1.5 var(--mono); }
  .chapter-list a[aria-current] { color: var(--accent); }
  .film-reading { max-width: 850px; margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--line); }
  .film-reading > p { color: var(--soft); line-height: 1.6; margin-bottom: 16px; }
  .guide-row { display: grid; grid-template-columns: 55px 1fr; align-items: start; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .guide-row span { color: var(--accent); font: 500 .875rem var(--mono); }
  .guide-row p { line-height: 1.55; }
  .guide-row:hover p { text-decoration: underline; text-underline-offset: 4px; }
  .collection-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
  .collection-card { min-width: 0; border: 1px solid var(--line); background: #fff8e9; border-radius: 4px; overflow: hidden; }
  .collection-card img, .collection-empty-art { width: 100%; height: 180px; object-fit: cover; }
  .collection-empty-art { background: #e0e7d4; color: var(--accent); display: grid; place-items: center; }
  .collection-card a > div { padding: 20px; }
  .collection-card h2 { font: 400 35px/1.1 var(--serif); overflow-wrap: anywhere; }
  .collection-card p { line-height: 1.5; color: var(--soft); font-size: 1rem; margin-top: 8px; overflow-wrap: anywhere; }
  .collection-note { white-space: pre-wrap; overflow-wrap: anywhere; }
  .form-field { display: grid; gap: 6px; margin: 17px 0; font-size: .875rem; font-weight: 650; }
  .form-field input, .form-field textarea { width: 100%; color: var(--ink); padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; background: #fffbf2; font-size: 1rem; }
  .form-field textarea { resize: vertical; }
  .collection-choices { border: 1px solid var(--line); margin: 20px 0 14px; padding: 10px; max-height: 325px; overflow: auto; }
  .collection-choices legend { font-size: 1rem; font-weight: 650; }
  .collection-choices label { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
  .collection-choices label:last-child { border: 0; }
  .collection-choices input { width: 20px; height: 20px; flex: none; accent-color: var(--accent); }
  .collection-choices img { width: 62px; height: 42px; object-fit: cover; border-radius: 2px; }
  .collection-choices span { display: grid; gap: 3px; }
  .collection-choices strong { font-size: .875rem; }
  .collection-choices small { font-size: .75rem; color: var(--soft); }
  .collection-pick-list { display: grid; margin-block: 15px; }
  .collection-pick-list button { display: flex; align-items: center; justify-content: space-between; padding: 14px 5px; gap: 15px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 1rem; }
  .collection-pick-list small { display: block; color: var(--soft); font-size: .875rem; padding-top: 5px; }
  .collection-pick-list button:disabled { opacity: .65; }
  .dialog-content h2 { overflow-wrap: anywhere; }
  .result-row small { font-size: .75rem; line-height: 1.5; }
  .empty { line-height: 1.6; padding-block: 10px; }
  @container (max-width: 900px) {
    .brand-header { gap: 14px; padding-inline: 4%; }
    .site-nav { gap: 12px; }
    .wordmark { font-size: 1.1rem; }
    .wordmark small { font-size: .75rem; }
    .home-people { grid-template-columns: 1fr 1fr; }
    .home-people > div { grid-column: 1/-1; }
    .trail-grid { gap: 10px; }
    .trail-card > div { padding: 13px; }
    .watch-layout { grid-template-columns: minmax(0,1fr); }
  }
  @container (max-width: 700px) {
    .brand-header { grid-template-columns: 1fr auto; min-height: 85px; padding-top: 9px; }
    .site-nav { grid-column: 1/-1; grid-row: 2; justify-content: space-between; gap: 14px; overflow-x: auto; scrollbar-width: thin; }
    .site-nav a { font-size: .875rem; white-space: nowrap; flex: none; }
    .header-actions { grid-row: 1; grid-column: 2; }
    .wordmark img { width: 44px; height: 44px; }
    .wordmark small { font-size: .75rem; }
    .home-hero { grid-template-columns: 1fr; gap: 24px; padding: 28px 0 23px; }
    .home-hero h1 { font-size: clamp(69px,16cqw,102px); margin-block: 18px; }
    .home-hero p:not(.eyebrow) { font-size: 1rem; margin: 12px 0 20px; }
    .home-art { height: auto; aspect-ratio: 1.4; }
    .home-art > span { padding: 35px 17px 17px; }
    .home-art strong { font-size: 36px; }
    .home-entries { grid-template-columns: 1fr; }
    .home-entries a, .home-entries a:first-child { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .home-entries span { font-size: 33px; }
    .archive-section { padding-top: 25px; }
    .trail-grid, .maker-grid, .collection-grid { grid-template-columns: 1fr; }
    .trail-card h3 { font-size: 35px; }
    .home-people { grid-template-columns: 1fr; gap: 15px; padding-top: 25px; }
    .home-people h2 { font-size: 43px; }
    .maker-card { padding: 16px; }
    .maker-card a { flex-wrap: nowrap; gap: 13px; align-items: center; }
    .maker-card h3 { font-size: 29px; }
    .maker-monogram, .maker-portrait { flex: none; width: 65px; height: 65px; }
    .reading-heading { padding-block: 18px 25px; }
    .reading-heading h1, .story-heading h1 { font-size: clamp(46px,12cqw,72px); overflow-wrap: break-word; }
    .reading-deck { font-size: 1.125rem; }
    .story-main-image img { max-height: 320px; }
    .story-body, .profile-layout { grid-template-columns: 1fr; gap: 25px; }
    .profile-mark, .profile-photo { max-width: 300px; }
    .story-body article > p, .body-copy { font-size: 1rem; }
    .story-body h2 { font-size: 34px; }
    .local-terms dl { grid-template-columns: 1fr; gap: 6px; }
    .local-terms dd { margin-bottom: 10px; }
    .trail-status { gap: 10px; align-items: start; flex-direction: column; }
    .trail-stops article { grid-template-columns: 1fr; }
    .trail-stops img { min-height: auto; aspect-ratio: 1.8; }
    .trail-stops article > div { padding: 18px; }
    .trail-stops h2 { font-size: 39px; }
    .watch-page .reading-heading h1 { font-size: 45px; }
    .watch-layout { gap: 20px; }
    .guide-row { grid-template-columns: 43px 1fr; gap: 10px; }
    .film-reading h2 { font-size: 35px; }
    .stories-grid { grid-template-columns: 1fr; gap: 17px; }
    .story-copy { padding: 15px; }
    .story-copy strong { font-size: 34px; }
    .story-copy .eyebrow { font-size: .75rem; }
    .story-description { font-size: 1rem; }
    .festival-topics .pills { flex-wrap: nowrap; width: 100%; gap: 5px; }
    .festival-topics .pill { flex: 1; font-size: .875rem; padding-inline: 6px; white-space: normal; line-height: 1.3; min-height: 43px; }
    .variant-card, .variant-grid.is-comparing .variant-card { grid-template-columns: 76px 1fr; }
    .variant-copy h3 { font-size: 31px; }
    .variant-copy { padding: 13px; }
    .variant-copy .eyebrow { font-size: .75rem; }
    .region-picker { font-size: .875rem; }
    .region-picker select { font-size: .875rem; }
    .site-footer { align-items: start; flex-direction: column; }
    .site-footer small { display: block; margin-top: 5px; }
    .collection-choices img { display: none; }
  }
}
