@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --amber: #F2A20C;
  --amber-deep: #D98A00;
  --ink: #16202C;
  --ink-2: #4A5562;
  --mist: #F3F4F1;
  --paper: #FFFFFF;
  --line: #DADDD6;
  --font: "Bricolage", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  font-variation-settings: "opsz" 16;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- hero: the one loud thing on the page ---------- */
.hero {
  background: var(--amber);
  padding: 0 var(--gut) clamp(40px, 7vw, 88px);
  overflow: hidden;
}
.top {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
}
.home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.home img { border-radius: 7px; box-shadow: 0 0 0 2px var(--ink); }
.top ul { list-style: none; display: flex; gap: 6px; margin: 0 0 0 auto; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.top li a {
  display: block;
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 560;
}
.top li a:hover { background: rgba(22, 32, 44, 0.1); }

.mark {
  max-width: var(--wrap);
  margin: clamp(24px, 5vw, 60px) auto 0;
}
.mark-word { display: block; width: 100%; height: auto; overflow: visible; }
.mark-word text {
  font-family: var(--font);
  font-size: 318px;
  font-weight: 800;
  font-stretch: 86%;
  font-variation-settings: "opsz" 96;
  fill: var(--ink);
}
/* the one moment of motion: the stripes sweep across the letters as the page opens */
.stripes { animation: stripes-in 1.5s cubic-bezier(.2, .7, .2, 1) .2s both; }
@keyframes stripes-in {
  from { transform: translateX(-1100px); }
  to   { transform: translateX(0); }
}
.intro {
  max-width: var(--wrap);
  margin: clamp(20px, 3vw, 36px) auto 0;
  font-size: clamp(20px, 2.3vw, 27px);
  line-height: 1.38;
  font-weight: 450;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 32;
}
.intro { padding-right: min(34%, 380px); }

/* ---------- projects ---------- */
/* each site keeps its own colour */
#planner { --c: #5B3FC4; --c-soft: #ECE8FB; }
#dinner  { --c: #9B2D4B; --c-soft: #F7E6EB; }
#book    { --c: #16202C; --c-soft: #E6E9EE; }
main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 80px) var(--gut) clamp(40px, 6vw, 80px);
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}
.proj {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: var(--paper);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 52px);
  border-top: 6px solid var(--c);
  scroll-margin-top: 16px;
}
.status {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--c-soft);
  color: var(--c);
  font-size: 14.5px;
  font-weight: 640;
}
.proj h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1;
  font-weight: 760;
  font-stretch: 84%;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 72;
}
.lede {
  margin: 12px 0 14px;
  font-size: clamp(20px, 2vw, 23px);
  line-height: 1.3;
  font-weight: 540;
  letter-spacing: -0.01em;
  color: var(--c);
}
.proj-text > p:not(.status):not(.lede) { margin: 0 0 22px; color: var(--ink-2); max-width: 34em; }
.go {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 22px 12px;
  border-radius: 14px;
  background: var(--c);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 17px;
  line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease;
}
.go .domain { font-weight: 420; font-size: 14px; opacity: .78; }
.go:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px var(--c); }
.go:focus-visible { outline-color: var(--c); }
.soon { font-weight: 600; color: var(--ink) !important; }

/* windows: a small, different taste of each site */
.window {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--c-soft);
  min-height: 0;
}
.shot { display: block; box-shadow: 0 0 0 1px var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.025); }

/* Dinner Date: a sealed envelope */
.card-dinner { display: grid; place-items: center; padding: 6%; }
.env {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1.55;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 34px -18px rgba(90, 20, 40, .45);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 18px;
  overflow: hidden;
}
.env::before {               /* the flap */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 54%;
  background: linear-gradient(to bottom right, transparent 49.6%, #F0D9E0 50%) left / 50.2% 100% no-repeat,
              linear-gradient(to bottom left,  transparent 49.6%, #F0D9E0 50%) right / 50.2% 100% no-repeat;
  transform: scaleY(-1);
  opacity: .9;
}
.env p { position: relative; margin: 0; }
.env-when { font-weight: 700; font-size: clamp(18px, 2vw, 22px); letter-spacing: -0.01em; margin-top: 18% !important; }
.env-sealed { color: var(--ink-2); font-size: 15px; }
.env-rule { color: var(--c); font-weight: 600; font-size: 14px; margin-top: 10px !important; }
.seal {
  position: absolute;
  top: 41%; left: 50%;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c2476a, var(--c) 60%, #6e1a33);
  box-shadow: 0 2px 6px rgba(110, 26, 51, .4);
}

/* The book: a cover with its title mirrored, like the year told twice */
.card-book { display: grid; place-items: center; background: #E6E9EE; padding: 6%; }
.cover {
  position: relative;
  width: min(54%, 230px);
  aspect-ratio: 2 / 3;
  border-radius: 4px 10px 10px 4px;
  background: var(--ink);
  color: #fff;
  box-shadow: inset 6px 0 0 rgba(255,255,255,.08), 0 22px 40px -20px rgba(22, 32, 44, .7);
  display: grid;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
}
.cover::after {               /* the fold between the two years */
  content: "";
  position: absolute;
  left: 12%; right: 12%; top: 50%;
  height: 2px;
  background: var(--amber);
}
.cover-title {
  margin: 0;
  align-self: end;
  padding: 0 12% 10%;
  font-weight: 760;
  font-stretch: 80%;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.cover-title.flip { align-self: start; padding: 10% 12% 0; transform: scaleY(-1); color: rgba(255,255,255,.28); }

/* a quiet mention of something not launched yet: no name, no link */
.teaser {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px;
  padding: clamp(20px, 3vw, 28px) clamp(24px, 4vw, 52px);
  border-radius: 22px;
  border: 2px dashed #C9CDC4;
}
.teaser p { margin: 0; }
.teaser-what { font-size: clamp(22px, 2.6vw, 30px); font-weight: 720; font-stretch: 86%; letter-spacing: -0.02em; }
.teaser-when { color: var(--ink-2); font-weight: 560; }

/* closing line */
.hello { margin: clamp(8px, 2vw, 20px) 0 0; font-size: clamp(19px, 2vw, 23px); font-weight: 520; letter-spacing: -0.01em; }
.hello a { color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 5px; font-weight: 650; }
.hello a:hover { text-decoration-color: var(--ink); }

/* ---------- smaller screens ---------- */
@media (max-width: 860px) {
  .proj { grid-template-columns: 1fr; }
  .window { order: -1; }
  .intro { padding-right: 0; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .top { flex-wrap: wrap; gap: 10px; padding: 16px 0 6px; }
  .top ul { margin: 0; justify-content: flex-start; gap: 2px; }
  .top li a { padding: 6px 10px; font-size: 14.5px; background: rgba(22, 32, 44, 0.08); }
  .proj { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stripes { animation: none; }
  .go, .shot img { transition: none; }
}
