:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --white: #fefefa;
  --ink: #30392f;
  --muted: #6b7165;
  --olive: #515e44;
  --line: #dddfd4;
  --wash: #e9ecdf;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body.preview-open { position: fixed; width: 100%; overflow: hidden; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--olive); outline-offset: 5px; }
::selection { color: var(--ink); background: #e0e4d4; }
.page-width { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 10; padding: 12px 20px; background: var(--white); }
.skip-link:focus { top: 16px; }
.masthead { min-height: 97px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.masthead-title { display: flex; align-items: center; gap: 13px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .19em; }
.collection-mark { width: 32px; height: 32px; stroke: var(--olive); stroke-width: 1; }
.masthead-note { color: var(--muted); font-size: 12px; letter-spacing: .035em; }
.introduction { padding: 63px 0 60px; display: flex; align-items: flex-end; justify-content: space-between; gap: 42px; }
.eyebrow { margin: 0 0 15px; color: var(--olive); font-size: 10px; font-weight: 500; letter-spacing: .21em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 21px; font-family: var(--serif); font-size: clamp(58px, 5.5vw, 82px); font-weight: 400; letter-spacing: -.045em; line-height: 1.02; }
h1 em { color: var(--olive); font-weight: 400; }
.introduction-description { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.planner-note { flex: 0 0 259px; margin-bottom: 3px; padding: 17px 0 7px 25px; border-left: 1px solid #c8cdbb; }
.note-symbol { display: block; margin-bottom: 6px; color: var(--olive); font-size: 24px; line-height: 1; }
.planner-note p { margin-bottom: 5px; font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.2; }
.planner-note > span:last-child { display: block; color: var(--muted); font-size: 12px; line-height: 1.7; }
.collection { scroll-margin-top: 24px; }
.collection-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 26px; border-top: 1px solid var(--line); }
.collection-heading h2 { margin: 0; font-family: var(--serif); font-size: 31px; font-weight: 500; letter-spacing: -.025em; }
.search { display: flex; align-items: center; width: 305px; height: 43px; padding: 0 13px; gap: 10px; background: transparent; border: 1px solid var(--line); border-radius: 5px; }
.search:focus-within { border-color: var(--olive); }
.search svg { flex: 0 0 17px; width: 17px; height: 17px; stroke: var(--muted); stroke-width: 1.5; }
.search input { min-width: 0; width: 100%; height: 100%; padding: 0; background: transparent; border: 0; border-radius: 0; color: var(--ink); font-size: 12px; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus-visible { outline: none; }
.search:has(input:focus-visible) { outline: 2px solid var(--olive); outline-offset: 3px; }
.collection-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 23px 0 29px; }
.category-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.category-filter { min-height: 37px; padding: 7px 17px; background: transparent; border: 1px solid transparent; border-radius: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; transition: color .18s ease, background .18s ease; }
.category-filter:hover { background: var(--wash); color: var(--ink); }
.category-filter[aria-pressed="true"] { background: var(--olive); color: var(--white); border-color: var(--olive); }
.result-count { flex-shrink: 0; margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .03em; }
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 30px; row-gap: 42px; }
.theme-card { min-width: 0; }
.theme-cover { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--wash); text-align: left; }
.theme-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: transform .5s ease; }
.theme-cover img.is-loaded { opacity: 1; }
.theme-cover:hover img { transform: scale(1.025); }
.theme-code { position: absolute; z-index: 1; top: 15px; left: 15px; min-width: 52px; padding: 6px 10px; background: var(--white); color: var(--ink); border: 1px solid #ffffff50; border-radius: 3px; text-align: center; font-size: 11px; font-weight: 500; letter-spacing: .14em; box-shadow: 0 2px 10px #30392f08; }
.cover-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 38px; color: var(--olive); background: #e8ebdf; text-align: center; }
.cover-fallback::before, .cover-fallback::after { position: absolute; content: ""; pointer-events: none; }
.cover-fallback::before { inset: 26px; border: 1px solid currentColor; opacity: .23; border-radius: 48% 48% 2px 2px; }
.cover-fallback::after { width: 40px; height: 1px; background: currentColor; opacity: .4; bottom: 29%; }
.fallback-label { font-size: 9px; text-transform: uppercase; letter-spacing: .24em; }
.fallback-code { display: block; margin: 14px 0 20px; max-width: 100%; overflow-wrap: anywhere; font: 400 clamp(40px, 6vw, 86px)/1.1 var(--serif); letter-spacing: -.025em; }
.fallback-note { font-family: var(--serif); font-style: italic; font-size: 18px; }
.theme-card[data-tone="1"] .cover-fallback { color: #705d50; background: #eee5db; }
.theme-card[data-tone="2"] .cover-fallback { color: #646478; background: #e9e8ee; }
.theme-card[data-tone="3"] .cover-fallback { color: #84676d; background: #eee1e3; }
.theme-card[data-tone="4"] .cover-fallback { color: #6a7054; background: #e9eadc; }
.theme-card[data-tone="5"] .cover-fallback { color: #4e6866; background: #e1e9e5; }
.theme-details { padding: 18px 2px 0; }
.theme-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.theme-heading h3 { margin: 0; min-width: 0; overflow-wrap: anywhere; font-family: var(--serif); font-size: 30px; line-height: 1.15; letter-spacing: -.025em; font-weight: 500; }
.category-badge { flex-shrink: 0; max-width: 45%; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 3px; padding: 3px 8px; color: var(--muted); font-size: 10px; }
.theme-description { min-height: 44px; margin: 9px 0 17px; color: var(--muted); font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.view-theme { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 43px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; color: var(--ink); font-size: 12px; font-weight: 500; }
.view-theme span { font-size: 21px; line-height: 1; transition: transform .18s ease; }
.view-theme:hover { color: var(--olive); }
.view-theme:hover span { transform: translate(2px, -2px); }
.empty-state { padding: 72px 20px 86px; text-align: center; border-block: 1px solid var(--line); }
.empty-symbol { display: block; color: var(--muted); margin-bottom: 12px; }
.empty-state h3, .preview-error h3 { margin: 0 0 12px; font: 500 34px/1.2 var(--serif); }
.empty-state p, .preview-error > p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.text-button { padding: 9px 0; border: 0; border-bottom: 1px solid var(--olive); background: transparent; color: var(--olive); font-size: 13px; }
.text-button span { margin-left: 16px; }
.notice { padding: 30px 0; }
.collection-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 67px; padding: 27px 0 33px; border-top: 1px solid var(--line); }
.collection-footer > span { font: 400 italic 23px/1.4 var(--serif); color: var(--olive); }
.collection-footer p { margin: 0; color: var(--muted); font-size: 11px; }
.preview-dialog { width: calc(100% - 40px); max-width: 1640px; height: calc(100% - 40px); height: calc(100dvh - 40px); max-height: none; margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 90px #1b241f30; }
.preview-dialog[open] { display: flex; flex-direction: column; }
.preview-dialog::backdrop { background: #202b249e; }
.preview-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-shrink: 0; min-height: 74px; padding: 13px 22px; border-bottom: 1px solid var(--line); }
.preview-identity { display: flex; align-items: center; gap: 15px; min-width: 0; }
.preview-code { padding: 5px 10px; border: 1px solid #cbd1c1; border-radius: 3px; color: var(--olive); font-size: 11px; letter-spacing: .13em; overflow-wrap: anywhere; max-width: 85px; }
.preview-identity h2 { margin: 0; overflow-wrap: anywhere; font: 500 28px/1.1 var(--serif); }
.preview-actions { display: flex; align-items: center; flex-shrink: 0; gap: 24px; }
.full-preview { font-size: 12px; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.full-preview span[aria-hidden] { margin-left: 8px; }
.close-preview { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.close-preview:hover { background: var(--wash); }
.close-preview svg { width: 21px; height: 21px; fill: none; stroke: var(--ink); stroke-width: 1.4; }
.preview-stage { position: relative; flex: 1; min-height: 0; background: var(--white); }
.preview-stage iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--white); }
.preview-loading { position: absolute; z-index: 1; top: 18px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 8px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 12px; text-align: center; pointer-events: none; }
.preview-error { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 32px; text-align: center; }
.preview-footnote { flex-shrink: 0; margin: 0; padding: 8px 16px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 10px; }
@media (min-width: 1600px) { .introduction { padding-block: 78px; } }
@media (max-width: 1100px) {
  .page-width { width: calc(100% - 72px); }
  .introduction { gap: 28px; }
  .planner-note { flex-basis: 220px; padding-left: 20px; }
  h1 { max-width: 530px; font-size: 64px; }
  .theme-grid { gap: 36px 23px; }
  .theme-heading h3 { font-size: 27px; }
  .wide-break { display: none; }
}
@media (max-width: 960px) {
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .introduction { align-items: flex-start; padding-block: 47px; }
  .planner-note { flex-basis: 200px; margin-top: 29px; }
  h1 { max-width: 400px; }
  .introduction-description { max-width: 350px; }
  .theme-heading h3 { font-size: 31px; }
}
@media (max-width: 640px) {
  html { scrollbar-gutter: auto; }
  .page-width { width: calc(100% - 40px); }
  .masthead { min-height: 74px; }
  .masthead-title { gap: 10px; font-size: 10px; letter-spacing: .14em; }
  .collection-mark { width: 27px; height: 27px; }
  .masthead-note { display: none; }
  .introduction { display: block; padding: 36px 0 29px; }
  .eyebrow { font-size: 9px; margin-bottom: 13px; }
  h1 { max-width: 100%; font-size: clamp(53px, 12.5vw, 73px); line-height: 1.03; margin-bottom: 20px; }
  h1 em { display: block; }
  .introduction-description { max-width: 370px; font-size: 13px; line-height: 1.75; }
  .planner-note { position: relative; margin: 23px 0 0; padding: 13px 12px 13px 43px; border-left: 0; background: var(--wash); border-radius: 4px; }
  .note-symbol { position: absolute; left: 15px; top: 18px; font-size: 20px; }
  .planner-note p { font-family: var(--sans); font-size: 12px; font-weight: 500; margin-bottom: 3px; }
  .planner-note > span:last-child { font-size: 11px; }
  .collection-heading { align-items: stretch; flex-direction: column; gap: 16px; padding-top: 24px; }
  .collection-heading h2 { font-size: 29px; }
  .search { width: 100%; height: 44px; }
  .search input { font-size: 16px; }
  .search input::placeholder { font-size: 12px; }
  .collection-tools { align-items: flex-start; flex-direction: column; gap: 13px; margin: 17px 0 21px; }
  .category-filters { gap: 5px; }
  .category-filter { padding-inline: 13px; min-height: 42px; font-size: 11px; }
  .theme-grid { grid-template-columns: minmax(0, 1fr); row-gap: 35px; }
  .theme-cover { border-radius: 5px; }
  .fallback-code { font-size: 80px; }
  .theme-heading h3 { font-size: 31px; }
  .theme-description { min-height: 0; margin-bottom: 17px; font-size: 13px; }
  .view-theme { min-height: 46px; font-size: 13px; }
  .collection-footer { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 41px; padding: 24px 0 30px; }
  .collection-footer > span { font-size: 22px; }
  .preview-dialog { width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }
  .preview-header { position: relative; display: block; min-height: 99px; padding: calc(12px + env(safe-area-inset-top)) calc(65px + env(safe-area-inset-right)) 12px calc(16px + env(safe-area-inset-left)); }
  .preview-identity { gap: 10px; }
  .preview-identity h2 { font-size: 23px; }
  .preview-code { padding: 3px 7px; font-size: 10px; }
  .preview-actions { margin-top: 10px; }
  .full-preview { font-size: 11px; }
  .close-preview { position: absolute; top: calc(13px + env(safe-area-inset-top)); right: calc(13px + env(safe-area-inset-right)); width: 44px; height: 44px; }
  .preview-footnote { padding-bottom: calc(8px + env(safe-area-inset-bottom)); font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
