:root {
  color-scheme: light;
  --ink: #1e4164;
  --ink-deep: #163652;
  --muted: #67717a;
  --cream: #f7f3e8;
  --paper: #fffdf8;
  --gold: #e8ae37;
  --coral: #dd6246;
  --line: rgba(30, 65, 100, .15);
  --serif: Georgia, "Times New Roman", serif;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); }
button, a { font: inherit; }
a { color: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid #b24a32; outline-offset: 4px; }
.skip-link {
  position: fixed; z-index: 20; left: 1rem; top: 1rem; transform: translateY(-160%);
  padding: .75rem 1rem; border-radius: .5rem; background: var(--ink-deep); color: white;
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: relative; z-index: 5;
  min-height: 88px; padding: 0 clamp(1.25rem, 5.5vw, 6rem); display: flex; align-items: center;
  justify-content: space-between; gap: 2rem; background: rgba(255, 253, 248, .88); border-bottom: 1px solid var(--line);
}
.wordmark { color: var(--ink); text-decoration: none; font-weight: 850; letter-spacing: -.06em; font-size: 1.5rem; }
.wordmark span { color: var(--coral); }
.primary-nav { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 3rem); }
.primary-nav > a { text-decoration: none; font-size: .91rem; font-weight: 650; }
.primary-nav > a:hover { color: var(--coral); }
.nav-cta, .primary-cta {
  border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 1rem;
  background: var(--ink); color: white; border-radius: 999px; cursor: pointer; font-weight: 700;
  transition: background .18s ease, transform .18s ease;
}
.nav-cta { padding: .78rem 1.25rem; font-size: .9rem; }
.primary-cta { padding: .95rem 1.5rem; font-size: .98rem; min-width: 174px; box-shadow: 0 8px 18px rgba(30, 65, 100, .14); }
.nav-cta:hover, .primary-cta:hover { background: var(--coral); transform: translateY(-2px); }
.menu-toggle { display: none; }
.hero {
  width: min(1440px, 100%); min-height: min(740px, calc(100svh - 150px)); margin: 0 auto; padding: clamp(3.2rem, 7vw, 7rem) clamp(1.25rem, 8.5vw, 8rem) clamp(3rem, 6vw, 6rem);
  display: grid; grid-template-columns: minmax(290px, .82fr) minmax(400px, 1.18fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; padding-bottom: .5rem; }
.eyebrow { display: flex; align-items: center; gap: .65rem; margin: 0 0 1.1rem; color: var(--coral); text-transform: uppercase; font-size: .78rem; font-weight: 800; letter-spacing: .16em; }
.eyebrow-dot { display: inline-block; width: 9px; height: 9px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 5px rgba(232, 174, 55, .17); }
h1 { margin: 0; font-family: var(--serif); font-size: clamp(4.8rem, 8.4vw, 8rem); font-weight: 700; line-height: .82; letter-spacing: -.075em; color: var(--ink); }
h1 span { color: var(--coral); }
.location-line { display: flex; align-items: center; gap: .72rem; margin: 1.75rem 0 2rem; color: var(--muted); }
.location-line svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.8; }
.location-line p { margin: 0; font-size: clamp(1rem, 1.5vw, 1.2rem); letter-spacing: .015em; }
.hero-art { min-height: 455px; position: relative; isolation: isolate; }
.art-wash { position: absolute; z-index: -2; inset: 8% 0 2% 8%; border-radius: 47% 53% 39% 61% / 47% 43% 57% 53%; background: #eadfc9; transform: rotate(-5deg); }
.blocks-card { position: absolute; top: 5%; right: 2%; width: 72%; height: 81%; margin: 0; overflow: hidden; border-radius: 48% 48% 1.5rem 1.5rem; box-shadow: 0 24px 48px rgba(75, 61, 42, .17); transform: rotate(2deg); }
.blocks-card img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 54%; }
.books-card { position: absolute; z-index: 2; left: 0; bottom: 3%; width: 46%; height: 39%; margin: 0; overflow: hidden; border: 7px solid var(--paper); border-radius: 1.2rem; box-shadow: 0 18px 34px rgba(56, 51, 42, .16); transform: rotate(-6deg); }
.books-card img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 45% 68%; }
.sun-shape { position: absolute; z-index: -1; top: 0; left: 9%; width: 82px; aspect-ratio: 1; border-radius: 50%; background: var(--gold); opacity: .9; box-shadow: 0 0 0 17px rgba(232, 174, 55, .12), 0 0 0 35px rgba(232, 174, 55, .06); }
.image-label { position: absolute; right: 1%; bottom: -1.2rem; color: #66727a; font-size: .72rem; letter-spacing: .04em; }
.identity-strip { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 4vw, 4rem); min-height: 96px; padding: 1rem 1.25rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 253, 248, .52); }
.strip-item { display: flex; align-items: center; gap: .65rem; font-size: .91rem; font-weight: 700; }
.strip-mark { color: var(--coral); font-size: 1rem; }
.strip-mark-blue { color: #6297bc; }
.strip-mark-gold { color: #d89d25; }
.strip-divider { height: 25px; width: 1px; background: var(--line); }
.site-footer { min-height: 62px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem clamp(1.25rem, 5.5vw, 6rem); font-size: .75rem; color: #68737b; }
.demo-label { font-weight: 700; letter-spacing: .02em; }
.details-dialog { width: min(440px, calc(100% - 2rem)); padding: 0; border: 1px solid rgba(30, 65, 100, .12); border-radius: 1.35rem; color: var(--ink); background: var(--paper); box-shadow: 0 24px 90px rgba(16, 35, 52, .28); }
.details-dialog::backdrop { background: rgba(15, 34, 49, .56); backdrop-filter: blur(4px); }
.dialog-inner { position: relative; padding: 3rem 2.4rem 2.35rem; text-align: center; }
.dialog-close { position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 1.55rem; line-height: 1; }
.dialog-close:hover { background: var(--cream); }
.dialog-spark { color: var(--gold); font-size: 1.35rem; }
.details-dialog h2 { margin: .55rem 0 .35rem; font-family: var(--serif); font-size: 2.5rem; letter-spacing: -.04em; }
.dialog-category { margin: 0; color: var(--coral); font-weight: 750; }
.dialog-location { margin: .55rem 0 1.5rem; color: var(--muted); }
.dialog-rule { width: 54px; height: 2px; margin: 0 auto 1.3rem; background: var(--gold); }
.dialog-note { max-width: 29ch; margin: auto; color: #66717a; font-size: .9rem; line-height: 1.55; }
@media (min-width: 1500px) { .hero { min-height: 740px; } }
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 4rem; grid-template-columns: minmax(250px, .8fr) minmax(330px, 1.2fr); gap: 1.5rem; }
  .hero-art { min-height: 400px; }
  h1 { font-size: clamp(4.4rem, 9vw, 6.6rem); }
}
@media (max-width: 680px) {
  .site-header { min-height: 72px; padding: 0 1.15rem; }
  .menu-toggle { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid var(--line); border-radius: 999px; padding: .6rem .9rem; background: transparent; cursor: pointer; font-weight: 700; font-size: .85rem; }
  .menu-icon { width: 15px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
  .menu-icon::after { position: absolute; top: 3px; left: 0; width: 100%; border-top: 2px solid currentColor; content: ""; }
  .primary-nav { display: none; position: absolute; z-index: 10; left: 1rem; right: 1rem; top: 64px; padding: .9rem; flex-direction: column; align-items: stretch; gap: .25rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: 0 12px 32px rgba(22, 54, 82, .14); }
  .primary-nav.is-open { display: flex; }
  .primary-nav > a { padding: .8rem; }
  .nav-cta { justify-content: center; margin-top: .3rem; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 1.8rem; padding: 3.25rem 1.3rem 3rem; }
  .hero-copy { padding-left: .3rem; }
  h1 { font-size: clamp(4.5rem, 18vw, 6.6rem); }
  .location-line { margin: 1.4rem 0 1.5rem; }
  .hero-art { min-height: clamp(310px, 88vw, 450px); width: 100%; }
  .blocks-card { right: 3%; width: 70%; height: 84%; }
  .books-card { left: 1%; bottom: 3%; width: 47%; height: 39%; }
  .identity-strip { flex-wrap: wrap; justify-content: flex-start; gap: .8rem 1rem; padding: 1.2rem 1.35rem; }
  .strip-item { font-size: .83rem; }
  .strip-divider { height: 20px; }
  .site-footer { padding: 1rem 1.25rem; }
}
@media (max-width: 390px) {
  .strip-divider { display: none; }
  .identity-strip { display: grid; grid-template-columns: 1fr 1fr; }
  .identity-strip .strip-item:last-child { grid-column: 1 / -1; }
  .dialog-inner { padding: 2.8rem 1.4rem 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
