/* Late Lamp — studio page (index.html). Light theme only, on purpose.
   The Whereabouts pages under whereabouts/ keep their own look (style.css).
   Palette and type are documented in docs/brand/latelamp/README.md. */

:root {
  --paper: #FAF7F1;
  --paper-2: #F4EFE6;
  --ink: #1E1C19;
  --ink-2: #5F5A52;
  --ink-3: #8C8679;
  --rule: #E6E0D5;
  --lamp: #F0A42F;
  --lamp-ink: #8F5A0A;
  --glow: #FFE7B8;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 920px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { color-scheme: light; background: var(--paper); scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  position: relative; z-index: 0;
  min-height: 100vh;
  overflow-x: hidden; overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* a whisper of paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 260px 260px;
}

::selection { background: var(--glow); color: var(--ink); }

a { color: var(--ink); text-decoration-color: var(--lamp); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 2px solid var(--lamp-ink); outline-offset: 3px; border-radius: 2px; }

/* ---- pool of light + the hanging lamp (index) ------------------------------ */
.pool {
  position: absolute; left: 0; top: 0; z-index: -1;
  width: 100%; height: 620px;
  pointer-events: none;
  background: radial-gradient(ellipse 560px 400px at 50% 0%, var(--glow) 0%, rgba(255, 231, 184, .6) 32%, rgba(255, 231, 184, 0) 72%);
  animation: pool 1.6s var(--ease) 1.1s both;
}
@keyframes pool { from { opacity: 0; } }

.lamp {
  --tx: -50%; --lift: -150px;
  position: absolute; left: 50%; top: 0; z-index: 3;
  transform: translate(var(--tx), 0);
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
  animation: lower 1.1s var(--ease) both;
}
@keyframes lower {
  from { transform: translate(var(--tx), var(--lift)); }
  to   { transform: translate(var(--tx), 0); }
}
.lamp .cord { display: block; width: 3px; height: 132px; background: var(--ink); border-radius: 0 0 2px 2px; }
.lamp svg { display: block; width: 84px; height: auto; margin-top: -3px; overflow: visible; }
.lamp .halo, .lamp .bulb { transform-box: fill-box; transform-origin: center; animation: on .5s var(--ease) 1.1s both; }
@keyframes on { from { opacity: 0; transform: scale(.35); } }

/* ---- header ---------------------------------------------------------------- */
.site-head { position: relative; z-index: 2; }
.site-head .wrap {
  max-width: var(--wrap); margin: 0 auto; padding: 26px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -.01em;
  font-variation-settings: "SOFT" 30;
}
.brand svg { width: 24px; height: 24px; }
.site-head nav { display: flex; gap: 22px; }
.site-head nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--ink); }

/* ---- hero ------------------------------------------------------------------ */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: 150px 24px 84px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 20px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lamp-ink);
}
.hero h1 {
  margin: 0 auto 26px; max-width: 13ch;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(38px, 7.4vw, 78px); line-height: .98; letter-spacing: -.022em;
  font-variation-settings: "SOFT" 30;
  text-wrap: balance;
}
.hero .lead {
  margin: 0 auto; max-width: 40ch;
  font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; color: var(--ink-2);
  text-wrap: pretty;
}
.reveal { animation: up .8s var(--ease) both; animation-delay: var(--d, 1.2s); }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }

/* ---- sections: label left, content right ----------------------------------- */
.section {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin: 0 auto; padding: 58px 24px;
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px 48px;
}
.section > h2 {
  grid-column: 1; margin: 0; padding-top: 5px;
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.section > div { grid-column: 2; max-width: 64ch; }
.section p { margin: 0 0 1em; }
.section p:last-child { margin-bottom: 0; }

/* the one project */
.work {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: start;
  padding: 26px; border: 1px solid var(--rule); border-radius: 22px; background: var(--paper-2);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.work:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -26px rgba(30, 28, 25, .4); }
.work img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 24px -10px rgba(30, 28, 25, .45); }
.work h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 28px; letter-spacing: -.012em; line-height: 1.15; }
.work .kind { margin: 2px 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lamp-ink); }
.work p { color: var(--ink-2); margin: 0 0 16px; }
.work .row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pill { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--glow); color: var(--lamp-ink); white-space: nowrap; }
.more { font-weight: 600; }

/* the note */
.note { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.45; letter-spacing: -.004em; text-wrap: pretty; }
.note p { margin: 0 0 .9em; }

/* contact */
.mail {
  display: inline-block; line-height: 1.2;
  font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3.8vw, 38px); letter-spacing: -.018em;
  color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--lamp);
  transition: border-color .2s;
  overflow-wrap: anywhere;
}
.mail:hover { border-color: var(--ink); }
.quiet { color: var(--ink-3); font-size: 15px; }

/* ---- footer ---------------------------------------------------------------- */
.site-foot {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin: 30px auto 0; padding: 26px 24px 60px;
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-3);
}
.site-foot nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* ---- small screens ----------------------------------------------------------- */
@media (max-width: 720px) {
  .section { grid-template-columns: 1fr; gap: 14px; padding: 42px 22px; }
  .section > div { grid-column: 1; }
  .work { grid-template-columns: 72px minmax(0, 1fr); gap: 18px; padding: 20px; }
  .work img { width: 72px; height: 72px; border-radius: 17px; }
}
@media (max-width: 620px) {
  /* the lamp moves into the flow, under the header, so the cord never crosses it */
  .lamp { --tx: 0; --lift: -70px; position: static; margin: 0 auto 28px; }
  .lamp .cord { height: 56px; }
  .lamp svg { width: 72px; }
  .hero { padding: 6px 22px 56px; }
  .site-head .wrap { flex-wrap: wrap; row-gap: 10px; padding: 22px 22px; }
  .site-head nav { gap: 14px; }
  .site-head nav a { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .pool, .lamp, .lamp .halo, .lamp .bulb, .reveal { animation: none !important; }
  html { scroll-behavior: auto; }
}
