:root {
  /* Palette pulled from the three pieces:
     cream paper, ink-black, terracotta ember, post-it blue,
     post-it yellow, sage from the avatar */
  --bg: #f4ede0;
  --bg-soft: #ece2cf;
  --ink: #1c1a22;
  --ink-soft: #4a4554;
  --muted: #7a7280;
  --terracotta: #d67e5c;
  --terracotta-deep: #b96544;
  --postit-blue: #6fa4c5;
  --postit-pink: #e2969c;
  --postit-yellow: #f2d45e;
  --sage: #7ac0ac;
  --line: rgba(28, 26, 34, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(28,26,34,.06), 0 2px 6px rgba(28,26,34,.04);
  --shadow-md: 0 6px 18px rgba(28,26,34,.10), 0 2px 6px rgba(28,26,34,.06);
  --shadow-lg: 0 30px 60px rgba(28,26,34,.22), 0 10px 24px rgba(28,26,34,.14);
  --maxw: 1180px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15131a;
    --bg-soft: #1f1c25;
    --ink: #f4ede0;
    --ink-soft: #cfc6b8;
    --muted: #9c95a3;
    --line: rgba(244,237,224,.12);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 2px 6px rgba(0,0,0,.3);
    --shadow-md: 0 6px 18px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.3);
    --shadow-lg: 0 30px 60px rgba(0,0,0,.6), 0 10px 24px rgba(0,0,0,.4);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: clamp(15px, 0.95vw + 12px, 17px);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: .6rem .9rem; border-radius: 8px;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 100; }

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-weight: 600;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--bg);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}
.brand-name { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .2px; }
.nav nav { display: flex; gap: 1.25rem; }
.nav nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .95rem;
  padding: .35rem .1rem;
  border-bottom: 1.5px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav nav a:hover { color: var(--ink); border-bottom-color: var(--terracotta); }

@media (max-width: 520px) {
  .nav nav { gap: .9rem; }
  .brand-name { display: none; }
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: clamp(1rem, 3vw, 2rem) auto 0;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.hero-text .eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--terracotta-deep);
  margin: 0 0 1rem;
}
.hero-text h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 0 0 1.1rem;
}
.hero-text .lede {
  font-size: clamp(1.02rem, 1.05vw + .8rem, 1.18rem);
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0 0 1.6rem;
}
.hero-art {
  margin: 0;
  position: relative;
  isolation: isolate;
}
.hero-art img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 793 / 1024;
  object-fit: cover;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: auto -8% -6% auto;
  width: 60%;
  height: 60%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--postit-yellow) 70%, transparent), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}

.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s, color .15s, border-color .15s, box-shadow .15s;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--terracotta-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 460px; margin: 0 auto; }
}

/* ---------- work ---------- */
.work, .about, .contact {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem);
}
.section-head { margin-bottom: 2rem; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 .4rem;
  letter-spacing: -.01em;
}
.section-head p { margin: 0; color: var(--muted); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: var(--bg-soft);
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--bg-soft);
  transition: transform .4s ease;
}
.card:hover img { transform: scale(1.025); }
.card-info {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .9rem 1rem 1.1rem;
}
.card-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -.005em;
}
.card-meta { color: var(--muted); font-size: .85rem; }

.card-soon {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 12px,
      color-mix(in oklab, var(--postit-yellow) 22%, transparent) 12px 13px
    ),
    var(--bg-soft);
  border: 1.5px dashed color-mix(in oklab, var(--ink) 25%, transparent);
  cursor: default;
  box-shadow: none;
}
.card-soon:hover { transform: none; box-shadow: none; }
.soon-inner { text-align: center; padding: 1.5rem; }
.soon-tag {
  display: inline-block;
  background: var(--postit-yellow);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  padding: .35rem .65rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}
.soon-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.soon-meta { display: block; color: var(--muted); font-size: .9rem; }

/* ---------- about ---------- */
.about { background: var(--bg-soft); border-radius: 0; }
.about-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.about h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 1rem;
  letter-spacing: -.01em;
}
.about p { color: var(--ink-soft); margin: 0 0 1rem; max-width: 56ch; }
.facts {
  list-style: none;
  padding: 1.25rem 1.5rem;
  margin: 0;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: .95rem;
}
.facts li:last-child { border-bottom: 0; }
.facts strong { font-weight: 600; color: var(--ink); }
.facts span { color: var(--muted); text-align: right; }

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- contact ---------- */
.contact { text-align: center; padding-bottom: clamp(4rem, 9vw, 6rem); }
.contact h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 .6rem;
  letter-spacing: -.01em;
}
.contact p {
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto 1.6rem;
}
.contact .cta-row { justify-content: center; }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 1.5rem clamp(1rem, 4vw, 2rem);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .88rem;
}
.foot a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot a:hover { border-bottom-color: var(--ink); }
.foot-sep { opacity: .5; }
.v-bust {
  font: inherit;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .1rem .55rem;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.v-bust:hover { color: var(--ink); border-color: var(--ink-soft); background: var(--bg-soft); }
.v-bust:active { transform: translateY(1px); }

/* ---------- lightbox ---------- */
.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 96dvh;
  width: auto;
  color: var(--bg);
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(10, 9, 12, .82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  align-items: center;
}
.lightbox img {
  max-width: 96vw;
  max-height: 80dvh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.lightbox figcaption {
  text-align: center;
  display: grid;
  gap: .15rem;
  color: #f4ede0;
  max-width: min(640px, 92vw);
}
.lightbox figcaption strong {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
}
.lightbox figcaption span:nth-of-type(1) {
  color: #d6c9b1;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.lightbox figcaption span:nth-of-type(2) {
  color: #d6c9b1;
  font-size: .95rem;
}
.lb-close {
  position: absolute;
  top: -.5rem; right: -.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.lb-close:hover { background: var(--terracotta); color: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
