/* Visual experiment 03 — a quiet reading room on a turn-of-the-millennium desktop.
   The earlier editorial system remains in styles.css; no application logic changes. */
@layer atmosphere {
  :root {
    --paper: #f8f8f5;
    --porcelain: #eef0f5;
    --ink: #49374d;
    --body: #514b59;
    --muted: #696170;
    --line: #c8c9ce;
    --ember: #947084;
    --serif: "Iowan Old Style", "Baskerville", "Songti TC", "Noto Serif TC", serif;
  }
  body { background: var(--paper); }
  h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
  .site-header {
    width: calc(100% - 64px); max-width: 1240px; height: 72px;
    margin: 24px auto 0; padding: 0 28px; gap: 30px;
    border: 1px solid #c5c7d0; border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #f2f3f7 64%, #e9ebf0 100%);
    box-shadow: inset 0 1px 0 #fff, 0 4px 14px #5d526b08;
  }
  .wordmark { font-family: var(--serif); font-size: 2rem; letter-spacing: -.06em; }
  .wordmark img { width: 26px; height: 26px; }
  .site-header nav { gap: 24px; }
  .site-header a:not(.wordmark) { font-size: .8125rem; }
  .header-cta { border-bottom-color: #b5a8b9; }
  .language-switch { border: 1px solid #bec0ca; border-radius: 9px; background: #ffffff75; box-shadow: inset 0 1px #fff; }
  .hero {
    display: grid; grid-template-columns: 1.08fr 1fr; gap: 0 56px;
    max-width: 1320px; min-height: 0; margin: auto; padding: 58px 64px 0;
    background: transparent; overflow: visible;
  }
  .hero-copy, html:lang(en) .hero-copy { width: auto; min-width: 0; padding: 24px 0 52px; }
  .hero .eyebrow { font-size: .8125rem; letter-spacing: .08em; margin-bottom: 28px; color: #756a7b; }
  .hero h1 { font-size: clamp(2.6rem, 3.9vw, 3.65rem); line-height: 1.42; }
  html:lang(en) .hero h1 { font-family: var(--serif); font-size: clamp(2.8rem, 4.8vw, 4.2rem); line-height: 1.06; letter-spacing: -.045em; }
  .hero-description { font-size: 1rem; line-height: 1.95; margin-top: 28px; max-width: 470px; }
  .hero-description em { font-size: 1.25em; }
  .hero-actions { margin-top: 28px; gap: 24px; flex-wrap: wrap; }
  .hero-note { font-size: .75rem; line-height: 1.8; margin-top: 24px; max-width: 420px; }
  .button {
    background: linear-gradient(180deg, #fbfcff 0%, #e8e8f2 55%, #d7d8e7 100%);
    color: #42354b; border: 1px solid #aba5bd; border-radius: 999px;
    box-shadow: inset 0 1px 2px #fff, inset 0 -2px 3px #9e96b525, 0 3px 7px #54415f0b;
    min-height: 50px; padding-inline: 24px; gap: 22px;
    transition: box-shadow 180ms, transform 180ms;
  }
  .button:hover { background: linear-gradient(180deg, #fff, #e2dfed); box-shadow: inset 0 1px 2px white, 0 5px 12px #54415f15; transform: translateY(-1px); }
  .button:active { transform: translateY(1px); }
  .text-link { border-bottom-color: #b8afbe; }
  .hero-art {
    position: relative; left: auto; top: auto; width: 100%; height: auto; align-self: center;
    margin: 0 0 24px; padding: 7px; border: 1px solid #bac0cd; border-radius: 18px;
    background: linear-gradient(145deg, #ffffffdf, #e0e4efc9);
    box-shadow: inset 0 1px #fff, 0 18px 50px #635b7214, 0 2px 3px #564b670c;
    transform: rotate(-2deg);
  }
  .window-bar { display: flex; align-items: center; gap: 20px; padding: 6px 12px 11px; color: #6b5a72; font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.2; }
  .window-ridges { flex: 1; height: 5px; border-block: 1px solid #c5c7d1; box-shadow: 0 1px #fff; }
  .hero-art img { width: 100%; height: auto; max-height: none; aspect-ratio: 4/3; object-fit: cover; border: 1px solid #bdc8d4; border-radius: 10px; }
  .hero-art figcaption { padding: 13px 8px 6px; text-align: center; font-family: var(--serif); font-size: .875rem; color: #62546b; }
  .hero-foot { grid-column: 1 / -1; margin-top: 16px; padding: 24px 0; border-top: 1px solid var(--line); letter-spacing: .04em; font-size: .8125rem; color: #66596f; }
  .hero-foot .line { width: 90px; border-top-style: dotted; border-color: #a69caf; }
  @media (max-width: 1100px) {
    .site-header { gap: 22px; padding-inline: 22px; }
    .hero { padding: 52px 36px 0; gap: 0 32px; }
    .hero h1 { font-size: 2.7rem; }
    html:lang(en) .hero h1 { font-size: 3.2rem; }
  }
  @media (min-width: 721px) and (max-width: 900px) {
    .site-header > .header-cta { display: none; }
    .hero { grid-template-columns: 1.15fr 1fr; gap: 0 24px; padding-inline: 32px; }
    .hero h1 { font-size: 2.2rem; }
    html:lang(en) .hero h1 { font-size: 2.7rem; }
    .hero .eyebrow { font-size: .75rem; letter-spacing: .025em; }
    .hero-description { font-size: .95rem; }
    .hero .desktop-break { display: none; }
  }
  @media (max-width: 720px) {
    .site-header { width: calc(100% - 32px); height: 64px; margin-top: 16px; padding-inline: 16px; gap: 12px; border-radius: 14px; }
    .wordmark { font-size: 1.8rem; gap: 6px; }
    .site-header > nav, .site-header > .header-cta { display: none; }
    .mobile-menu nav { border-radius: 12px; background: #f9fafc; }
    .hero { display: block; padding: 40px 24px 0; }
    .hero-copy, html:lang(en) .hero-copy { padding: 0; }
    .hero .eyebrow { max-width: none; font-size: .75rem; letter-spacing: .04em; margin-bottom: 20px; }
    .hero h1 { font-size: clamp(1.7rem, 8.3vw, 3rem); line-height: 1.4; }
    html:lang(en) .hero h1 { font-size: clamp(2.2rem, 10vw, 3.7rem); line-height: 1.05; }
    .hero-description { margin-top: 24px; }
    .hero-actions { margin-top: 24px; gap: 18px 22px; }
    .hero-note { margin-top: 22px; }
    .hero-art { width: 100%; margin: 38px 0 24px; transform: rotate(-1.5deg); }
    .hero-art img { max-height: none; }
    .hero-art figcaption { font-size: .8125rem; }
    .hero-foot { font-size: .75rem; gap: 12px; padding: 21px 0; margin-top: 36px; }
    .hero-foot .line { width: 36px; }
  }
  @media (prefers-reduced-motion: reduce) { .button { transition: none; } .button:hover, .button:active { transform: none; } }
}

@layer atmosphere {
  .section { padding-block: 88px; }
  .section-label { border-top-style: dotted; margin-bottom: 44px; font-family: var(--serif); font-size: .95rem; letter-spacing: .025em; }
  .section-label > span:last-child { display: none; }
  .section-intro { gap: 56px; }
  .section-intro > p { max-width: 415px; }
  .section h2 { font-size: clamp(2.3rem, 3.8vw, 3.5rem); line-height: 1.3; }
  .pull-line { border-left: 1px solid #b9a6c0; font-family: var(--serif); font-size: 1.4rem; padding-left: 24px; }
  .scenario { margin-top: 52px; padding: 28px 32px 32px; border: 1px solid #d0ccd8; border-radius: 18px; background: #f0eff5; box-shadow: inset 0 1px 0 #fff; }
  .scenario .eyebrow { font-family: var(--serif); letter-spacing: .025em; font-size: .95rem; }
  .scenario-columns { gap: 38px; }
  .scenario-columns h3 { font-family: var(--serif); font-size: 1.65rem; }
  .scenario-question { border-left: 1px dotted #b4a9bd; padding-left: 32px; }
  .small-label { letter-spacing: .035em; }
  .book-section { background: linear-gradient(125deg, #e7edf6, #ececf5 60%, #ecf1ef); }
  .book-window {
    overflow: hidden;
    border: 1px solid #bfc0cb;
    border-radius: 16px;
    background: #fffffc;
    box-shadow: 0 28px 65px -25px #49374d35, 0 7px 18px -10px #49374d30, inset 0 1px #fff;
  }
  .book-window-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 9px 88px;
    border-bottom: 1px solid #c7c7d0;
    background: linear-gradient(#f9f9fc, #e8e8ef);
    box-shadow: inset 0 1px #fff;
    color: var(--body);
    user-select: none;
  }
  .book-window-title { font-size: .875rem; font-weight: 500; letter-spacing: .01em; }
  .book-window-lights { position: absolute; left: 18px; display: flex; gap: 8px; }
  .book-window-lights > span { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #00000012; box-shadow: inset 0 1px #ffffff30; }
  .book-window-lights > span:nth-child(1) { background: #ed7068; }
  .book-window-lights > span:nth-child(2) { background: #e8bc59; }
  .book-window-lights > span:nth-child(3) { background: #7cba87; }
  .book-window .book-spread { border: 0; border-radius: 0; box-shadow: none; }
  .book-window .book-margin { border-radius: 0; }
  @media (max-width: 720px) {
    .book-window { border-radius: 12px; }
    .book-window-bar { min-height: 42px; padding-inline: 75px; }
    .book-window-lights { left: 14px; gap: 7px; }
    .book-window-lights > span { width: 11px; height: 11px; }
  }
  .book-spread {
    grid-template-columns: 260px 1fr; border: 1px solid #bfbecb; border-radius: 5px 15px 15px 5px;
    background: #fffffc; box-shadow: 5px 5px 0 -1px #f9f9f4, 5px 5px 0 0 #cbc9d1, 10px 10px 0 -1px #f9f9f4, 10px 10px 0 0 #d1ced7, 0 22px 50px #5847670d;
  }
  .book-margin { padding: 44px 30px; background: #e6e8f0; border-right: 3px double #c4c2cc; border-radius: 5px 0 0 5px; }
  .book-logotype { font-size: 3.7rem; font-weight: 400; }
  .book-index { margin-top: 38px; gap: 12px; }
  .book-index a { border: 1px solid transparent; border-bottom: 1px dotted #b9b6c5; border-radius: 7px; padding: 12px 9px; margin-inline: -9px; }
  .book-index a[aria-current="page"] { border: 1px solid #c1bacd; background: #fafbffb8; box-shadow: inset 0 1px #fff; font-weight: 500; }
  .book-index a > span:first-child { color: #796580; }
  .edition { letter-spacing: .02em; }
  .book-page { padding: 45px 64px 48px; background: #fffffc; border-radius: 0 15px 15px 0; box-shadow: inset 9px 0 13px -12px #6c5b76; }
  .book-page .eyebrow { letter-spacing: .05em; color: #78687e; font-size: .75rem; }
  .book-page h3 { font-size: 2.3rem; font-weight: 400; margin-top: 20px; }
  .book-page > p { font-size: 1rem; line-height: 1.95; }
  .book-page blockquote { border-block: 0; border-left: 1px solid #b9a4c0; padding: 2px 0 2px 25px; margin-block: 32px; color: #766080; }
  .book-page .book-aside { font-size: .875rem; }
  .book-page .sample-note { font-size: .75rem; }
  .source-note { border-top-style: dotted; }
  .thinking-prompt { background: #f2f0f6; border: 1px solid #d8d0de; border-radius: 12px; padding: 20px 22px; }
  .answer-reveal { border-block-style: dotted; }
  .answer-reveal summary { color: #6b507b; }
  .book-afterword { margin-top: 40px; }
  .book-afterword > p:first-child { font-family: var(--serif); font-size: 1.25rem; }
  .editorial-process h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
  .editorial-process li { border-bottom-style: dotted; gap: 24px; }
  .step { color: #80688a; }
  .parallel-section { background: #edeff4; color: var(--ink); border-block: 1px solid #dadbe1; }
  .parallel-section p { color: var(--body); }
  .parallel-section .section-label { border-color: #bec2ce; }
  .track { border-color: #c9c5d2; gap: 24px; }
  .track-label { width: 225px; font-family: var(--serif); font-size: .95rem; letter-spacing: 0; }
  .activity-dot { background: #9486a9; }
  .track-connector { border-color: #a9a1b8; border-top-style: dotted; }
  .human-track { background: #fffffa; margin-inline: -20px; padding-inline: 20px; border: 1px solid #c4c0cd; border-radius: 14px; box-shadow: 0 6px 16px #5b49740a, inset 0 1px white; }
  .human-track .track-label { color: #6c5281; }
  .parallel-caption { color: var(--muted); }
  .evidence { margin-top: 64px; }
  .evidence .eyebrow { font-size: .875rem; letter-spacing: .035em; }
  .evidence h3 { font-family: var(--serif); font-size: 2rem; font-weight: 400; }
  .evidence .evidence-note { color: #75667e; }
  .product-figure { padding: 12px; border: 1px solid #c0c5d1; border-radius: 20px; background: #e9edf3; box-shadow: inset 0 1px white, 0 16px 36px #524f6e0b; }
  .product-figure img { border-radius: 11px; border-color: #c8cad1; }
  .product-figure figcaption { padding: 0 10px 7px; margin-top: 16px; }
  .image-action { border: 1px solid #c2bbce; border-radius: 999px; color: #44334d; background: #f9f8ffec; box-shadow: inset 0 1px white; min-height: 44px; align-items: center; }
  .media-status { margin-top: 20px; }
  .privacy-section { padding-top: 0; }
  .privacy-details details { border-bottom-style: dotted; }
  .privacy-details summary { font-size: 1rem; }
  .closing { background: #e8eaf3; border-top: 1px solid #d3d2df; padding-block: 85px; }
  .closing .eyebrow { font-family: var(--serif); font-size: .95rem; letter-spacing: .035em; }
  .closing h2 { font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1.3; }
  .closing > p:not(.eyebrow) { max-width: 620px; margin-inline: auto; }
  .closing-note { margin-top: 24px; }
  .site-footer { background: #e8eaf3; border-top: 1px dotted #c0bfce; }
  .product-dialog { border-radius: 16px; padding: 22px; background: #f4f5f9; border-color: #b9becb; box-shadow: inset 0 1px white, 0 20px 70px #33253d2b; }
  .product-dialog img { border-radius: 8px; }
  .dialog-heading button { border: 1px solid #c6c0cf; border-radius: 9px; background: #fafaff; }
  .product-dialog::backdrop { background: #3935489c; }
  @media (max-width: 1000px) and (min-width: 721px) {
    .book-spread { grid-template-columns: 210px 1fr; }
    .book-margin { padding-inline: 26px; }
    .book-page { padding: 38px 40px; }
    .track-label { width: 180px; }
    .track { gap: 18px; }
  }
  @media (max-width: 720px) {
    .section { padding-block: 64px; }
    .section h2 { font-size: clamp(2rem, 8.8vw, 2.9rem); }
    .section-label { font-size: .875rem; margin-bottom: 30px; }
    .section-intro { margin-bottom: 36px; }
    .scenario { padding: 24px 20px; margin-top: 40px; border-radius: 14px; }
    .scenario-columns { gap: 26px; }
    .scenario-columns h3 { font-size: 1.4rem; }
    .scenario-question { padding-left: 18px; }
    .book-spread { grid-template-columns: 1fr; box-shadow: 4px 4px 0 -1px #f9f9f4, 4px 4px 0 0 #cbc9d1, 8px 8px 0 -1px #f9f9f4, 8px 8px 0 0 #d1ced7; }
    .book-margin { padding: 25px 22px; border-right: 0; border-bottom: 3px double #c4c2cc; border-radius: 5px 15px 0 0; }
    .book-logotype { font-size: 2.6rem; }
    .book-index { margin-top: 0; gap: 22px; }
    .book-index a { margin-inline: -4px; padding: 10px 5px; }
    .book-page { padding: 30px 24px 36px; border-radius: 0 0 15px 5px; box-shadow: none; }
    .book-page h3 { font-size: 1.9rem; }
    .book-page blockquote { font-size: 1.4rem; padding-left: 18px; }
    .book-afterword { margin-top: 32px; }
    .thinking-prompt { padding: 18px; }
    .track { gap: 18px; padding-inline: 0; }
    .track-label { width: auto; min-height: 48px; font-size: .875rem; }
    .track-connector { border-left-style: dotted; }
    .human-track { margin: 0; padding-inline: 13px; }
    .parallel-tracks { gap: 22px; }
    .evidence { margin-top: 48px; }
    .evidence h3 { font-size: 1.6rem; }
    .product-figure { padding: 7px; border-radius: 14px; }
    .product-figure img { border-radius: 7px; }
    .product-figure figcaption { padding-inline: 5px; font-size: .75rem; }
    .image-action { right: 9px; bottom: 9px; padding: 6px 12px; }
    .privacy-section { padding-top: 0; }
    .closing { padding-block: 64px; }
    .closing h2 { font-size: 2.5rem; }
    .product-dialog { padding: 14px; }
    html:lang(en) .edition { max-width: 150px; }
  }
}
