:root {
  --bg: #F9F2EA;
  --ink: #231F1C;
  --mute: #6B5F59;
  --blush: #DBA6A0;
  --accent: #A8524C;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1816;
    --ink: #F4ECE4;
    --mute: #B3A7A0;
    --accent: #E3B0AA;    /* a lighter rose, so it still reads on dark */
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif; 
}

header {
  display: flex;
  justify-content: space-between;
  padding: 1.2rem clamp(1rem, 4vw, 3rem);
  font: 600 0.85rem "Unbounded", sans-serif;
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 clamp(1rem, 4vw, 3rem);
               /* the fan is positioned outside the hero */
}

.block {
  position: absolute;
  left: 50%;
  top: 0;
  width: clamp(70px, 11vw, 150px);
  height: 46%;
  background: var(--blush);
  transform: translateX(-50%);
}

.title {
  position: relative;          /* the outline layer positions against this */
  margin-top: clamp(2rem, 9vh, 6rem);
  font: 800 clamp(2.6rem, 13vw, 12rem) / 0.95 "Unbounded", sans-serif;
  text-align: center;
  letter-spacing: -0.03em;
}

.title .l {
  display: block;
  color: var(--ink);
}

.title .o {
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  transform-origin: 50% 50%;
  transform: translateY(var(--dy, 0)) skewX(var(--sk, 0deg)) scaleY(var(--sy, 1));
  pointer-events: none;
}

.title.intro .o {
  animation: wob 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 1;
}

@keyframes wob {
  0%   { transform: translateY(-0.25em) skewX(-24deg) scaleY(1.35); }
  60%  { transform: translateY(0.06em) skewX(8deg) scaleY(0.92); }
  100% { transform: none; }
}

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

.meta {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--mute);
  position: relative;
}

.fan {
  position: relative;
  height: clamp(260px, 44vw, 420px);
  margin-top: auto;            /* pushes the fan to the bottom of the hero */
}

.fan .c {
  position: absolute;
  left: 50%;
  bottom: -100px;              /* lets the bottom of each card hang below the hero */
  width: clamp(120px, 18vw, 200px);
  aspect-ratio: 3 / 4.3;
  border-radius: 14px;
  padding: 0.8rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  font: 800 1rem / 1.1 "Unbounded", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  transform-origin: 50% 120%;
transform: translateX(-50%) rotate(calc((var(--i) - 1.5) * var(--a, 18deg)));
transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.c-oak  { background: #F5EBDD; color: #2B1D14; }
.c-red { background: var(--blush); color: #231F1C; }
.c-line { background: var(--bg); color: var(--ink); border: 2px dashed var(--ink); }
.c-ink  { background: var(--ink); color: var(--bg); }
.c small { font: 600 0.68rem "Unbounded", sans-serif; }
.c b     { font: 800 1.05rem / 1.1 "Unbounded", sans-serif; }

.fan .c {
  /* keep everything you have, and add: */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.c small { font: 600 0.68rem "Unbounded", sans-serif; }
.c b     { font: 800 1.05rem / 1.1 "Unbounded", sans-serif; }

/* Oakline card: looks like a mini version of the real site */
.c-oak .bar {
  display: block;
  margin: -0.8rem -0.8rem 0;      /* cancels the card padding so the bar touches the edges */
  padding: 0.9rem 0.8rem 1.2rem;
  background: #2F4A3A;            /* Oakline's forest green */
  color: #F5EBDD;                 /* cream */
  font: 800 1.05rem / 1.1 "Unbounded", sans-serif;
}

.c-oak em {
  margin-top: 0.7rem;
  padding: 0 0.8rem;              /* lines the text up with the padding of the other cards */
  font: 600 0.68rem "Unbounded", sans-serif;   /* same font as the "Next sample" labels */
  font-style: normal;
  letter-spacing: 0.02em;
  color: #5E6B3F;                 /* olive green */
}

.fan:hover {
  --a: 26deg;                  /* the whole fan opens wider */
}

.fan .c:hover,
.fan .c:focus-visible {
  transform: translateX(-50%)
             rotate(calc((var(--i) - 1.5) * var(--a, 18deg)))
             translateY(-28px) scale(1.06);
  z-index: 5;                  /* sits on top of its neighbours */
}


section {
  padding: clamp(3rem, 9vw, 7rem) clamp(1rem, 4vw, 3rem);
  border-top: 2px solid var(--ink);
}

h2 {
  font: 800 clamp(1.8rem, 5vw, 4rem) / 1.05 "Unbounded", sans-serif;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin: 0;
}

.cs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  margin-top: 2rem;
}

section p {
  max-width: 60ch;
  color: var(--mute);
}

dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1.5rem;
  align-content: start;
  margin: 0;
}

dt {
  font: 600 0.8rem "Unbounded", sans-serif;
}

dd {
  margin: 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--ink);
}

.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 1.6rem;
  background: var(--accent);
  color: #F9F2EA;
  font: 600 0.9rem "Unbounded", sans-serif;
  border-radius: 99px;
  text-decoration: none;
  transition: transform 0.2s;
}

.btn:hover { transform: translateY(-3px); }

.team {
  display: flex;
  gap: clamp(1.5rem, 5vw, 4rem);
  margin-top: 2rem;
}

.team b {
  font: 800 clamp(2rem, 6vw, 4rem) / 1 "Unbounded", sans-serif;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  font-size: 0.85rem;
  color: var(--mute);
  border-top: 2px solid var(--ink);
}

.footer-logo {
  display: block;
  height: 96px;
  width: auto;
  max-width: none;
}

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

  .fan .c {
    width: clamp(220px, 17vw, 300px);
    border-radius: 18px;
  }

  .c small { font-size: 0.8rem; }
  .c b,
  .c-oak .bar { font-size: 1.35rem; }
  .c-oak em { font-size: 0.85rem; }

  @media (max-width: 720px) {
  /* header: stop the two texts running together */
  header { gap: 1rem; }
  header span:last-child { text-align: right; }

  /* hero: no forced height, so the gap closes */
  main .hero { min-height: 0; padding-bottom: 0; }
  .meta span { max-width: 40%; }
  .meta span:last-child { text-align: right; }

  /* fan: taller cards, more of each one showing */
  .hero .fan { margin-top: 2.5rem; height: 62vw; --a: 16deg; }
  .hero .fan:hover { --a: 20deg; }
  .hero .fan .c { width: 40vw; bottom: -20px; }

  /* team: names wrap instead of running off the screen */
  section .team { flex-wrap: wrap; gap: 0.4rem 1.5rem; }
  section .team b { font-size: 1.6rem; }
}