/* Crêperemos: the crêpière ring. Fonts self-hosted (Barlow, Barlow Condensed, SIL OFL). */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 300; font-display: swap; src: url(assets/fonts/barlow-condensed-300.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/barlow-condensed-400.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/barlow-condensed-500.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/barlow-400.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/barlow-500.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/barlow-600.woff2) format('woff2'); }

:root {
  --wine: #84242f;          /* logo field */
  --wine-deep: #6c1c26;
  --wine-ink: #f6dfd9;      /* secondary text on wine, tinted from the hue */
  --cream: #f4ebd8;         /* batter / logo line */
  --cream-2: #ece0c7;
  --iron: #1e1918;          /* cast-iron crêpière */
  --iron-2: #2c2422;
  --ink: #2a1f1c;
  --ink-soft: #5b4a43;
  --gold: #d9a050;          /* browned rim, used sparingly */
  --kraft: #d6bb92;         /* cardboard plate */
  --kraft-rim: #b8976a;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --text: 'Barlow', system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  font-variant-numeric: lining-nums;
}
::selection { background: var(--wine); color: var(--cream); }
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: .01em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--cream); color: var(--ink); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }

/* Header sits on the wine field */
.top { background: var(--wine); color: var(--cream); position: sticky; top: 0; z-index: 5; border-bottom: 1px solid rgb(244 235 216 / .14); }
.top__in { max-width: 72rem; margin: 0 auto; padding: .75rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font: 400 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: .14em; }
.brand__ring { width: 2rem; height: 2rem; fill: none; stroke: var(--cream); stroke-width: 1.6; }
.brand__ring circle + circle { stroke-width: .9; opacity: .7; }
.top ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem 1.25rem; flex-wrap: wrap; }
.top nav a { font-weight: 500; font-size: 1rem; text-decoration: none; padding: .5rem 0; display: inline-block; }
.top nav a:hover { text-decoration: underline; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 0; }
.btn { display: inline-flex; align-items: center; min-height: 3rem; padding: .7rem 1.4rem; border-radius: 4px; font: 500 1.0625rem/1.2 var(--text); text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.btn--cream { background: var(--cream); color: var(--wine-deep); box-shadow: 0 2px 10px rgb(30 25 24 / .25); }
.btn--cream:hover { background: #fff8ea; box-shadow: 0 4px 16px rgb(30 25 24 / .3); }
.btn--line { color: var(--cream); box-shadow: inset 0 0 0 1px rgb(244 235 216 / .7); }
.btn--line:hover { background: rgb(244 235 216 / .1); }
.btn--red { background: var(--wine); color: var(--cream); }
.btn--red:hover { background: var(--wine-deep); }
.btn--line-dark { color: var(--ink); box-shadow: inset 0 0 0 1px rgb(42 31 28 / .45); }
.btn--line-dark:hover { background: rgb(42 31 28 / .06); }

/* Hero: drenched wine, the ring spreads like batter */
.hero { background: var(--wine); color: var(--cream); overflow: hidden; }
.hero__in { max-width: 72rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(3.5rem, 8vw, 6rem); display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .hero__in { grid-template-columns: 1fr 1.05fr; gap: 3rem; } }
.hero h1 { font-size: clamp(2.75rem, 6.4vw, 5.25rem); letter-spacing: -.005em; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--wine-ink); max-width: 34ch; margin-top: 1.5rem; }

.plate-ring { position: relative; width: min(100%, 34rem); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-linecap: round; transform: rotate(-96deg); }
.ring circle { stroke-dasharray: 1 1; }
.ring__a { stroke: var(--cream); stroke-width: 5.5; }
.ring__b { stroke: var(--cream); stroke-width: 2; opacity: .75; stroke-dasharray: .62 .38; }
.ring__c { stroke: var(--cream); stroke-width: 1.4; opacity: .5; stroke-dasharray: .4 .6; stroke-dashoffset: -.45; }
.ring__rim { stroke: var(--gold); stroke-width: 1.2; opacity: .55; stroke-dasharray: .28 .72; stroke-dashoffset: -.1; }
.ring__text { position: relative; text-align: center; width: 66%; }
.ring__text p { margin: 0; }
.ring__where { font: 500 clamp(.8rem, 1.6vw, .95rem)/1.3 var(--text); text-transform: uppercase; letter-spacing: .16em; color: var(--wine-ink); }
.ring__days { font: 300 clamp(3.5rem, 11vw, 6rem)/1 var(--display); letter-spacing: -.01em; margin-top: .3rem !important; font-variant-numeric: tabular-nums; }
.ring__month { font: 400 clamp(1.4rem, 3.4vw, 2rem)/1.1 var(--display); text-transform: uppercase; letter-spacing: .12em; }
.ring__rule { display: block; width: 62%; height: 2px; background: var(--cream); margin: 1rem auto .9rem; border-radius: 2px; }
.ring__stand { font: 500 clamp(.95rem, 1.8vw, 1.1rem)/1.3 var(--text); }

@media (prefers-reduced-motion: no-preference) {
  .ring__a { animation: spread 1.6s var(--ease) .15s both; }
  .ring__b { animation: spread-b 1.9s var(--ease) .35s both; }
  .ring__c { animation: spread-c 2.1s var(--ease) .5s both; }
  .ring__rim { animation: spread-rim 2.4s var(--ease) .7s both; }
  .ring__text { animation: settle 1s var(--ease) .6s both; }
  @keyframes spread { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes spread-b { from { stroke-dasharray: 0 1; } to { stroke-dasharray: .62 .38; } }
  @keyframes spread-c { from { stroke-dasharray: 0 1; } to { stroke-dasharray: .4 .6; } }
  @keyframes spread-rim { from { stroke-dasharray: 0 1; opacity: 0; } to { stroke-dasharray: .28 .72; opacity: .55; } }
  @keyframes settle { from { opacity: 0; filter: blur(6px); transform: scale(.97); } to { opacity: 1; filter: none; transform: none; } }
}

/* Market: cast iron, heavy ruled date grid */
.market { background: var(--iron); color: var(--cream); padding: var(--section) 0; }
.market__in { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 860px) { .market__in { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.market h2 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); margin-bottom: 2rem; }
.days { border-collapse: collapse; width: 100%; max-width: 30rem; }
.days th, .days td { border-top: 1px solid rgb(244 235 216 / .3); padding: .55rem 0; }
.days tr:last-child th, .days tr:last-child td { border-bottom: 1px solid rgb(244 235 216 / .3); }
.days th { text-align: left; font: 400 clamp(1.4rem, 3vw, 1.9rem)/1 var(--display); text-transform: uppercase; letter-spacing: .1em; color: #e3d5bd; }
.days td { text-align: right; font: 300 clamp(3rem, 7vw, 4.75rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.market__month { font: 400 1.35rem/1.3 var(--display); text-transform: uppercase; letter-spacing: .12em; margin-top: 1rem; color: var(--gold); }
.market__where { max-width: 44ch; color: #e3d5bd; margin-top: 1.5rem; }
.market__where strong { color: var(--cream); font-weight: 600; }
.link-arrow { font-weight: 500; }
.link-arrow::after { content: ''; display: inline-block; width: .5em; height: .5em; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); margin-left: .45em; vertical-align: .1em; }

.served { margin: 0; }
.served svg { display: block; width: 100%; max-width: 30rem; height: auto; margin: 0 auto; }
.served__tray { filter: drop-shadow(0 8px 9px rgb(0 0 0 / .4)); }
.served__plate { fill: var(--kraft); }
.served__lip-light { fill: var(--cream); opacity: .24; }
.served__lip-shade { fill: var(--kraft-rim); opacity: .65; }
.served__well { fill: var(--kraft); }
.served__press { fill: none; stroke: var(--kraft-rim); stroke-width: .8; }
.served__lip-edge { fill: none; stroke: var(--cream); stroke-width: .7; opacity: .35; }
.served__rim { fill: none; stroke: var(--kraft-rim); stroke-width: 1; vector-effect: non-scaling-stroke; }
.served__layer { fill: var(--cream); stroke: #a8692a; stroke-width: 1; stroke-linejoin: round; }
.served__layer--middle { fill: #f0cb86; }
.served__crepe { fill: #e9bd72; }
.served__flap { fill: #f0cb86; }
.served__fold, .served__edge { fill: none; stroke: #a8692a; stroke-width: 1.1; stroke-linecap: round; }
.served__fold { opacity: .7; }
.served__fold-light { fill: none; stroke: var(--cream); stroke-width: 1.5; opacity: .7; }
.served__lace { fill: none; stroke: #b9772f; stroke-width: 1.8; stroke-dasharray: 12 3 2 8 5 2 1 9 18 5; stroke-linecap: round; opacity: .28; }
.served__browning { fill: #b9772f; fill-opacity: .2; stroke: #b9772f; stroke-width: 1.1; stroke-opacity: .3; stroke-dasharray: 4 3 1 2; }
.served__toast { fill: none; stroke: #b9772f; stroke-width: 2.5; stroke-linecap: round; opacity: .55; }
.served__sugar { fill: var(--cream); }
/* Night-market band: opens the iron field edge to edge, the photos dissolve into the cast iron below */
.market { padding-top: 0; }
.scenes { display: grid; grid-template-columns: 1fr 1.3fr 1fr; grid-template-rows: 100%; gap: 3px; overflow: hidden; height: clamp(15rem, 38vw, 31rem); margin-bottom: clamp(3rem, 7vw, 5.5rem); -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent); mask-image: linear-gradient(to bottom, #000 88%, transparent); }
.scenes img { width: 100%; height: 100%; min-width: 0; object-fit: cover; }
.scenes img:nth-child(1) { object-position: 50% 100%; }
.scenes img:nth-child(2) { object-position: 40% 58%; }
.scenes img:nth-child(3) { object-position: 55% 62%; }
.served figcaption { text-align: center; font-size: .95rem; color: #cbbba1; margin-top: 1.25rem; }

/* Donations: wine field, one ring per market year */
.donations { background: var(--wine); color: var(--cream); padding: var(--section) 0; }
.donations h2 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); }
.donations__lede { max-width: 50ch; color: var(--wine-ink); font-size: 1.15rem; margin: 1.25rem 0 3.5rem; }
.year { display: grid; gap: 1.5rem 3rem; padding: 2.5rem 0; border-top: 1px solid rgb(244 235 216 / .25); }
@media (min-width: 760px) { .year { grid-template-columns: 13rem 1fr; } }
.year__ring { position: relative; width: 11rem; aspect-ratio: 1; display: grid; place-items: center; }
.year__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; transform: rotate(-90deg); }
.arc { stroke-width: 9; stroke-linecap: round; stroke-dasharray: var(--len) 100; stroke-dashoffset: var(--off); }
.arc--1 { stroke: var(--cream); }
.arc--2 { stroke: var(--gold); }
/* Next market: shares are known, the amount is not yet, so the arcs sit dashed on a faint track */
.year--next .track { stroke: rgb(244 235 216 / .18); stroke-width: 9; }
.year--next .arc { stroke-width: 3; stroke-dasharray: 1.2 1.6; stroke-linecap: butt; }
.year__intro { color: var(--wine-ink); max-width: 50ch; margin-bottom: 1.25rem; }
.year__total { margin: 0; text-align: center; font: 400 1.5rem/1.1 var(--display); letter-spacing: .02em; }
.year__total span { display: block; font: 500 .85rem/1.4 var(--text); letter-spacing: .14em; color: var(--wine-ink); }
.year h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 1.25rem; }
.year--pending h3 { margin-bottom: .75rem; }
.year--pending .year__body p { color: var(--wine-ink); max-width: 50ch; }
.gifts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 1000px) { .gifts { grid-template-columns: 1fr 1fr; } }
/* Each project rests on a cream plate with a printed rim */
.gifts li { background: var(--cream); color: var(--ink); border-radius: 6px; padding: 1.5rem 1.5rem 1.25rem; box-shadow: inset 0 0 0 7px var(--cream), inset 0 0 0 8px rgb(132 36 47 / .22), 0 6px 18px rgb(0 0 0 / .22); }
.gifts li p { margin: 0 0 .75rem; font-size: 1rem; }
.gifts li p:last-child { margin: 0; }
.gift__head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: 1.1rem !important; }
.gift__head strong { font-weight: 600; }
.gift__amount { margin-left: auto; font: 500 1.35rem/1 var(--display); color: var(--wine); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.gift__place { color: var(--ink-soft); font-size: .95rem !important; }
.gifts a { color: var(--wine); font-weight: 500; }
.swatch { width: .8rem; height: .8rem; border-radius: 50%; flex: none; }
.swatch--1 { background: var(--cream-2); box-shadow: inset 0 0 0 1.5px var(--ink-soft); }
.swatch--2 { background: var(--gold); }

/* Join: cream, a kraft tray with the roles */
.join { padding: var(--section) 0; }
.join__in { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 860px) { .join__in { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }
.join h2 { font-size: clamp(2.5rem, 5.2vw, 4rem); color: var(--wine); }
.join__lede { font-size: 1.15rem; max-width: 40ch; margin-top: 1.25rem; }
.join__note { color: var(--ink-soft); margin-top: 1.25rem; }
/* Pressed cardboard plate: the four lip faces meet in mitred creases at the corners */
.tray { background: var(--kraft); border: 1.25rem solid; border-color: #ddc7a3 #c8aa7f #c2a478 #d9c19b; border-radius: 6px; box-shadow: 0 0 0 1px rgb(184 151 106 / .55), 0 10px 26px rgb(42 31 28 / .18); }
.roles { list-style: none; margin: 0; padding: 0 1.25rem; border: 1px solid var(--kraft-rim); border-radius: 2px; }
.roles li { display: grid; gap: .2rem; padding: 1.25rem 0; border-top: 1px solid var(--kraft-rim); }
.roles li:first-child { border-top: 0; }
.roles strong { font: 400 1.75rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.roles span { color: #3f302a; }

/* About */
.about { background: var(--cream-2); padding: var(--section) 0; }
.about__in { display: grid; gap: 2rem 4rem; }
@media (min-width: 860px) { .about__in { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.about__title { font-size: clamp(2.5rem, 5.6vw, 4.5rem); color: var(--wine); }
.about__text { max-width: 46ch; font-size: 1.1rem; }
.about__sign { font: 400 1.35rem/1.3 var(--display); letter-spacing: .04em; color: var(--wine); margin-top: 2rem; }

/* Footer */
.foot { background: var(--iron); color: #d9cbb3; padding: 3.5rem 0 3rem; font-size: .975rem; }
.foot__in { display: grid; gap: 2rem; }
@media (min-width: 760px) { .foot__in { grid-template-columns: 1fr 1fr; } }
.foot p { margin: 0 0 .3rem; }
.foot__brand { font: 400 1.5rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--cream); margin-bottom: .6rem !important; }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; align-content: start; }
.foot__links a { color: var(--cream); }
.foot__draft { grid-column: 1 / -1; border-top: 1px solid rgb(244 235 216 / .16); padding-top: 1.5rem; font-size: .9rem; color: #b9aa92; max-width: 70ch; }
.foot__draft a { color: #e3d5bd; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
