@font-face {
  font-family: "Roboto";
  src: url("../a-htc/assets/fonts/Roboto-VariableFont_wdth,wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f8f6f2;
  --ink: #30232b;
  --muted: #71666b;
  --brand: #840047;
  --line: #dcd5d5;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Roboto", sans-serif; font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 6px; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2 { margin: 0; }
.wrap { width: min(100% - var(--gutter) * 2, 1320px); margin-inline: auto; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: .75rem 1rem; background: var(--brand); color: white; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.masthead { display: flex; align-items: center; justify-content: space-between; padding-block: 2rem 1.75rem; border-bottom: 1px solid var(--line); }
.brand { width: 10.75rem; }
.project { text-align: right; font-size: .8rem; line-height: 1.6; }
.project span { display: block; color: var(--muted); }
.project strong { font-weight: 500; letter-spacing: .02em; }
.intro { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.eyebrow { display: flex; align-items: center; gap: .75rem; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow span { color: #b6aaaf; }
.intro__grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 3rem; align-items: end; margin-top: 1.5rem; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.9rem, 5.15vw, 4.8rem); line-height: 1.08; font-weight: 400; letter-spacing: -.045em; }
h1 em { color: var(--brand); font-weight: 400; white-space: nowrap; }
.intro__aside { max-width: 23rem; padding-bottom: .25rem; font-size: 1rem; line-height: 1.7; }
.intro__detail { display: block; margin-top: 1rem; font-size: .77rem; color: var(--muted); }
.chapter-nav { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 3.25rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chapter-nav a { display: flex; align-items: center; gap: .9rem; padding: 1.05rem 1.4rem; font-size: .8rem; transition: color .2s, background .2s; }
.chapter-nav a:first-child { padding-left: 0; }
.chapter-nav a + a { border-left: 1px solid var(--line); }
.chapter-nav a:last-child { padding-right: 0; }
.chapter-nav a:hover { color: var(--brand); }
.chapter-nav__letter { font-family: Georgia, serif; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.down-arrow { margin-left: auto; font-size: 1.1rem; transition: transform .2s; }
.chapter-nav a:hover .down-arrow { transform: translate(2px, 2px); }
.concept { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 6vw, 5.25rem); border-bottom: 1px solid var(--line); scroll-margin-top: 1.25rem; }
.preview { position: relative; display: block; overflow: hidden; padding: 1.4rem 1.6rem 2.1rem; background: #eee7e9; border-radius: 3px; }
.preview__caption { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; font-size: .62rem; font-weight: 500; color: #75616c; }
.preview__caption > :first-child { text-transform: uppercase; letter-spacing: .12em; }
.preview__window { overflow: hidden; border-radius: 5px; background: white; box-shadow: 0 12px 28px -12px rgba(61, 31, 46, .28), 0 0 0 1px rgba(61, 31, 46, .06); transition: transform .35s ease; }
.preview__bar { display: flex; justify-content: space-between; align-items: center; height: 1.7rem; padding-inline: .65rem; background: #fff; color: #8a8086; font-size: .5rem; line-height: 1; }
.window-dots { display: flex; gap: .2rem; }
.window-dots i { width: .25rem; height: .25rem; border-radius: 50%; background: #ded7db; }
.window-mark { width: 1.15rem; text-align: right; }
.preview img { width: 100%; }
.preview__open { position: absolute; right: 2.2rem; bottom: 2.65rem; display: flex; align-items: center; gap: 1.25rem; background: var(--ink); color: white; padding: .65rem 1rem; border-radius: 3px; font-size: .72rem; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.preview:hover .preview__window { transform: translateY(-4px); }
.preview:hover .preview__open, .preview:focus-visible .preview__open { opacity: 1; transform: translateY(0); }
.concept__index { display: flex; align-items: center; gap: .85rem; font-size: .68rem; color: var(--muted); letter-spacing: .09em; text-transform: uppercase; }
.concept__index > span { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 1px solid #cabdc4; border-radius: 50%; color: var(--brand); font-size: .75rem; letter-spacing: 0; }
h2 { margin-top: 1.2rem; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(2.2rem, 3.15vw, 3.1rem); line-height: 1.1; letter-spacing: -.035em; }
.concept__description { margin-top: 1.2rem; font-size: .93rem; line-height: 1.75; color: #655961; max-width: 39ch; text-wrap: pretty; }
.identity { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-block: 1.5rem 1.75rem; }
.identity p { font-size: .66rem; color: var(--muted); }
.palette { display: flex; overflow: hidden; border: 1px solid rgba(48, 35, 43, .12); border-radius: 2px; }
.palette span { width: 1.15rem; height: 1.15rem; background: var(--swatch); }
.concept--a .palette span:nth-child(1) { --swatch: #840047; }
.concept--a .palette span:nth-child(2) { --swatch: #6cc6c6; }
.concept--a .palette span:nth-child(3) { --swatch: #eaf8f7; }
.concept--a .palette span:nth-child(4) { --swatch: #fbfaf8; }
.concept--b .preview { background: #eee9dc; }
.concept--b .preview__caption { color: #72694e; }
.concept--b .palette span:nth-child(1) { --swatch: #840047; }
.concept--b .palette span:nth-child(2) { --swatch: #1f6f62; }
.concept--b .palette span:nth-child(3) { --swatch: #f4c95d; }
.concept--b .palette span:nth-child(4) { --swatch: #faf6f0; }
.concept--c .preview { background: #e7e0e7; }
.concept--c .palette span:nth-child(1) { --swatch: #2a1024; }
.concept--c .palette span:nth-child(2) { --swatch: #840047; }
.concept--c .palette span:nth-child(3) { --swatch: #6fc8c8; }
.concept--c .palette span:nth-child(4) { --swatch: #f5f0e8; }
.view-link { display: flex; justify-content: space-between; align-items: center; gap: 2rem; min-height: 3.1rem; padding: .7rem 1.05rem; background: var(--brand); color: white; border: 1px solid var(--brand); border-radius: 3px; font-size: .82rem; font-weight: 500; transition: background .2s, transform .2s; }
.view-link span { font-size: 1.2rem; transition: transform .2s; }
.view-link:hover { background: #650037; }
.view-link:hover span { transform: translate(2px, -2px); }
.view-link:active { transform: translateY(1px); }
.pages { margin-top: .5rem; }
.pages summary { min-height: 2.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font-size: .78rem; color: var(--muted); list-style: none; }
.pages summary::-webkit-details-marker { display: none; }
.pages summary:hover { color: var(--brand); }
.pages__toggle { position: relative; display: block; width: .7rem; height: .7rem; margin-right: .2rem; }
.pages__toggle::before, .pages__toggle::after { content: ""; position: absolute; background: currentColor; }
.pages__toggle::before { width: 100%; height: 1px; top: 50%; }
.pages__toggle::after { height: 100%; width: 1px; left: 50%; transition: transform .2s; }
.pages[open] .pages__toggle::after { transform: rotate(90deg); }
.pages nav { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem 1rem; padding-block: .35rem .85rem; border-top: 1px solid var(--line); }
.pages nav a { padding-block: .5rem; font-size: .75rem; line-height: 1.45; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pages nav a:hover { color: var(--brand); text-decoration: underline; }
.comparison { display: flex; align-items: center; gap: 2.5rem; padding-block: 2.6rem; color: var(--muted); }
.comparison__symbol { flex: none; color: var(--brand); font-family: Georgia, serif; font-size: 1.25rem; letter-spacing: .06em; }
.comparison p { max-width: 53rem; font-size: .8rem; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.footer__divider { margin-inline: .75rem; color: #baadb4; }
.footer a { flex: none; }
.footer a span { margin-left: .8rem; }
.footer a:hover { color: var(--brand); }
@media (max-width: 1050px) {
  .intro__grid { grid-template-columns: 1.6fr 1fr; gap: 2rem; }
  h1 { font-size: clamp(2.75rem, 5.3vw, 4rem); }
  .intro__aside { font-size: .9rem; }
  .concept { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2.25rem; }
  .preview { padding: 1.1rem 1.1rem 1.5rem; }
  .preview__caption { font-size: .55rem; }
  .concept__description { font-size: .88rem; }
  .identity { gap: .65rem; }
  .identity p { font-size: .62rem; }
}
@media (max-width: 760px) {
  .masthead { padding-block: 1.25rem; }
  .brand { width: 8.5rem; }
  .project { font-size: .68rem; }
  .intro__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  h1 { font-size: clamp(2.7rem, 7.9vw, 3.8rem); }
  .intro__aside { max-width: 33rem; font-size: .95rem; }
  .intro__detail { margin-top: .75rem; }
  .chapter-nav { margin-top: 2rem; }
  .chapter-nav a { flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: .85rem .7rem; font-size: .68rem; }
  .chapter-nav a > span:nth-child(2) { order: 3; flex-basis: 100%; max-width: 9rem; }
  .chapter-nav__letter { font-size: 1.25rem; }
  .concept { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding-block: 2.75rem; }
  .preview { padding: 1.2rem 1.2rem 1.65rem; }
  .preview__caption { margin-bottom: 1rem; font-size: .62rem; }
  .concept__content { max-width: 36rem; }
  h2 { font-size: 2.55rem; margin-top: 1rem; }
  h2 br { display: none; }
  .concept__description { max-width: 50ch; font-size: .95rem; margin-top: 1rem; }
  .identity { margin-block: 1.25rem 1.5rem; }
  .identity p { font-size: .72rem; }
  .view-link { min-height: 3.25rem; font-size: .9rem; }
  .pages summary { min-height: 3.25rem; font-size: .85rem; }
  .pages nav a { min-height: 2.75rem; font-size: .82rem; }
  .comparison { align-items: start; flex-direction: column; gap: .75rem; padding-block: 2rem; }
  .footer { align-items: start; font-size: .68rem; }
  .footer > span { max-width: 13rem; }
  .footer__divider { display: none; }
}
@media (max-width: 380px) {
  .preview { padding-inline: .8rem; }
  .preview__caption { font-size: .55rem; }
  .eyebrow { font-size: .6rem; }
  .chapter-nav a { font-size: .63rem; }
  .identity { gap: .5rem; }
  .identity p { font-size: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .chapter-nav, .pages, .view-link, .comparison, .footer a { display: none; }
  body { background: #fff; }
  .wrap { width: 100%; }
  .concept { break-inside: avoid; padding-block: 2rem; }
  .preview { print-color-adjust: exact; }
}
