:root {
  --ink: #132420;
  --ink-deep: #0b1714;
  --ink-card: #1a302b;
  --paper: #f6f1e5;
  --travertine: #f3ede0;
  --sage: #d3e4d0;
  --brass: #c89b48;
  --static: #e5951a;
  --static-glow: #f7b733;
  --grey: #6e7e78;
  --you: #1d7874;
  --accent: #c93829;
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--paper);
  background: var(--ink-deep);
}

a {
  color: var(--static-glow);
  text-underline-offset: 0.2em;
}

/* ---------- Hero: the painting ---------- */

.hero {
  position: relative;
  height: 280vh;
  height: 280svh;
}

.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #b9b39a;
}

.painting {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 61% 80%;
  transform-origin: 61% 80%;
  will-change: transform;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, transparent 40%, rgba(11, 23, 20, 0.35));
  opacity: var(--shade, 0.4);
}

#dream {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: var(--overlay, 1);
}

.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 42%;
  background: linear-gradient(rgba(243, 237, 224, 0.6), rgba(243, 237, 224, 0));
}

.hero-overlay a {
  pointer-events: auto;
}

.hero-mark {
  position: absolute;
  top: max(2rem, env(safe-area-inset-top));
  left: max(1.5rem, env(safe-area-inset-left));
  color: var(--ink);
}

.hero-mark h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-shadow: 0 0 1.2em rgba(243, 237, 224, 0.7);
}

.hero-mark p {
  margin: 0.8rem 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-shadow:
    0 0 6px var(--travertine),
    0 0 12px var(--travertine);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.scroll-cue span {
  display: inline-block;
  padding: 0.55em 1.1em;
  color: var(--paper);
  background: rgba(19, 36, 32, 0.78);
  border: 1px solid rgba(200, 155, 72, 0.6);
  border-radius: 999px;
  animation: breathe 4.5s ease-in-out infinite;
}

.hero-credit {
  position: absolute;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  margin: 0;
  max-width: 15rem;
  padding: 0.5em 0.8em;
  background: rgba(243, 237, 224, 0.8);
  border-radius: 0.3rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-align: right;
  color: var(--ink);
}

.hero-credit a {
  color: inherit;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.75;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(3px);
  }
}

/* ---------- Inside the dream ---------- */

.dreamt {
  position: relative;
  z-index: 2;
  padding: 12vh 1.5rem 4rem;
}

.dreamt section {
  max-width: 40rem;
  margin: 0 auto 22vh;
}

.eyebrow {
  margin: 0 0 1.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
}

.gridweb {
  text-align: center;
}

.seal {
  display: block;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 24px rgba(247, 183, 51, 0.35));
}

.gridweb h2 {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--paper);
}

.lede {
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  color: var(--sage);
}

.gridweb b {
  font-family: var(--mono);
  font-size: 0.85em;
  letter-spacing: 0.08em;
  color: var(--static-glow);
}

.gridweb b.burned {
  color: #e2603b;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.store {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 11rem;
  padding: 0.6rem 1.2rem 0.7rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--paper);
  background: rgba(11, 23, 20, 0.85);
  border: 1px solid rgba(200, 155, 72, 0.55);
  border-radius: 0.7rem;
}

.store small {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

.dreamt h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.studio h2 {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  text-align: center;
  color: var(--brass);
}

.studio {
  padding: 2rem 1.75rem;
  background: rgba(11, 23, 20, 0.82);
  border-top: 1px solid rgba(200, 155, 72, 0.4);
  border-bottom: 1px solid rgba(200, 155, 72, 0.4);
}

.studio .contact {
  font-family: var(--mono);
  font-size: 0.9rem;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1.5rem max(2.5rem, env(safe-area-inset-bottom));
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.7;
  text-align: center;
  color: var(--grey);
  background: rgba(11, 23, 20, 0.92);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer nav a {
  color: var(--paper);
}

.site-footer .credit {
  max-width: 34rem;
  margin: 0.5rem auto 0;
}

.site-footer .credit a {
  color: var(--brass);
}

/* ---------- Legal pages: the quiet register ---------- */

.page {
  color: var(--ink);
  background: var(--travertine);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(19, 36, 32, 0.15);
}

.page-header a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
}

.page-header nav {
  display: flex;
  gap: 1rem;
}

.page-header nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-header nav a[aria-current] {
  color: var(--accent);
}

.doc {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.doc h1 {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.doc .updated {
  margin: 0 0 2.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}

.doc h2 {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.doc h2 .item {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-right: 0.5rem;
}

.doc a {
  color: var(--you);
}

.doc li {
  margin-bottom: 0.4rem;
}

.doc .card {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--paper);
  border: 1px solid rgba(19, 36, 32, 0.15);
  border-left: 3px solid var(--brass);
}

.doc .card p {
  margin: 0.25rem 0;
}

.page .site-footer {
  color: var(--grey);
  background: var(--ink);
}

@media (max-width: 760px) {
  .hero-credit {
    display: none;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue span {
    animation: none;
  }
}

.todo {
  padding: 0 0.25em;
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--accent);
  background: rgba(201, 56, 41, 0.12);
}
