/* Olive and cream: shared by the sign-up page and the kit */
@font-face { font-family: 'Zaslia'; src: url('assets/zaslia.otf') format('opentype'); font-display: swap; }
/* Components set display (.cta, the form grid), which would otherwise beat the hidden attribute */
[hidden] { display: none !important; }
/* Olive and cream, after an evening invitation */
body {
  --olive: #3d4023;
  --olive-deep: #2e3118;
  --cream: #efe9d8;
  --on-cream: #3d4023;
  --on-cream-muted: #6a6b4c;
  --on-olive-muted: rgb(239 233 216 / .72);
  --display: 'Instrument Serif', 'Didot', serif;
  --head: 'Zaslia', 'Bodoni Moda', serif;
  --script: 'Great Vibes', cursive;
  --sans: 'Jost', system-ui, sans-serif;
  --bg: var(--cream);
  --ink: var(--on-cream);
  --muted: var(--on-cream-muted);
  --line: rgb(61 64 35 / .28);
  --frame: rgb(61 64 35 / .55);
  /* Paper: lit fibre noise, multiplied onto the colour */
  --tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='p' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.032' numOctaves='6' seed='4' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='3.2' diffuseConstant='1'%3E%3CfeDistantLight azimuth='45' elevation='58'/%3E%3C/feDiffuseLighting%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='.34' intercept='.7'/%3E%3CfeFuncG type='linear' slope='.34' intercept='.7'/%3E%3CfeFuncB type='linear' slope='.34' intercept='.7'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  background: var(--tex), var(--cream);
  background-blend-mode: multiply;
  color: var(--on-cream);
  font: 300 .9375rem/1.65 var(--sans);
}
.olive {
  --bg: var(--olive);
  --ink: var(--cream);
  --muted: var(--on-olive-muted);
  --line: rgb(239 233 216 / .32);
  background: var(--tex), var(--olive);
  background-blend-mode: multiply;
  color: var(--cream);
}

/* Double-rule frame from the invitation card; every section sits inside it */
.frame {
  margin: .875rem;
  border: 1px solid var(--frame);
  outline: 1px solid var(--frame);
  outline-offset: 5px;
}

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
.script { font: 400 clamp(1.5rem, 5.5vw, 1.85rem)/1 var(--script); margin: 0; }
.tiny {
  font: 400 .6875rem/1.5 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
h2 {
  font: 400 clamp(1.4rem, 5.5vw, 2rem)/1.05 var(--head);
  text-transform: uppercase;
  letter-spacing: .01em;
  text-wrap: balance;
  margin: 0;
}
.lede {
  font: 300 .9375rem/1.65 var(--sans);
  color: var(--muted);
  margin: .6rem auto 0;
  max-width: 26rem;
  text-wrap: pretty;
}

/* Buttons: hairline, near-square corners */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  min-width: 13rem;
  padding: .65rem 1.75rem;
  border: 1px solid currentColor;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font: italic 400 1.05rem/1 var(--display);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s, color .3s, transform .2s var(--ease);
}
.cta:active { transform: scale(.97); }
@media (hover: hover) { .cta:hover { background: var(--ink); color: var(--bg); } }
.cta.small { min-width: 0; min-height: 2.5rem; padding: .45rem 1.1rem; font-size: .95rem; }

/* Hero */
.hero {
  position: relative;
  padding: 4.25rem 1.25rem 2rem;
  text-align: center;
  overflow: hidden;
  background: var(--tex),
    radial-gradient(ellipse 70% 45% at 18% 22%, rgb(104 108 58 / .55), transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 75%, rgb(28 30 14 / .65), transparent 70%),
    radial-gradient(ellipse 50% 35% at 65% 12%, rgb(126 116 66 / .3), transparent 70%),
    radial-gradient(ellipse 80% 40% at 40% 95%, rgb(36 38 18 / .55), transparent 70%),
    var(--olive);
  background-blend-mode: multiply, normal, normal, normal, normal;
}
.topbar {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}
.mark { display: inline-flex; align-items: center; gap: .6rem; font: 400 1rem/1 var(--display); letter-spacing: .14em; text-decoration: none; }
.logo { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; padding: .3rem; border-radius: 6px; background: #f7f3ea; }
.logo img { width: 100%; height: auto; }
/* Overlapping lockup from the card: small caps, big caps, script crossing them */
.hero .lockup { --size: clamp(2.5rem, 12.5vw, 4.25rem); margin: .75rem 0 1rem; }
.hero .lockup .l1, .hero .lockup .l2 { font-family: var(--head); }
.hero .lede { margin-top: 0; max-width: 24rem; }
.hero-cta { margin-top: 1.25rem; }

footer { background: var(--tex), var(--olive-deep); background-blend-mode: multiply; color: var(--on-olive-muted); text-align: center; padding: 1.1rem 1.25rem; }
footer a { text-underline-offset: 3px; }
@media (min-width: 48rem) {
  .frame { margin: 1.5rem max(1.5rem, calc((100% - 76rem) / 2)); }
}
@media (min-width: 64rem) {
  .topbar { padding: 1.25rem 2.5rem; }
}
