/* ==========================================================================
   Fashion Tech Week — Inaugural Conference
   Design language: cool editorial. Silver-grey paper ground (#eff2f7), near-black
   ink, white + mist bands, two dark moments. Zero radius, hairline rules.
   Type: Bodoni Moda (headings + mid-display) · Geist (body) · DM Mono (labels)
         ZT Bros Oskon 90s (italic) — the accent word only
   ========================================================================== */

@font-face {
  font-family: 'Oskon 90s';
  src: url('/fonts/ZTBrosOskon90s-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Oskon 90s';
  src: url('/fonts/ZTBrosOskon90s-Light.otf') format('opentype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Oskon 90s';
  src: url('/fonts/ZTBrosOskon90s-Italic.otf') format('opentype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Oskon 90s';
  src: url('/fonts/ZTBrosOskon90s-LightItalic.otf') format('opentype');
  font-weight: 300; font-style: italic; font-display: swap;
}

:root {
  --paper:     #EFF2F7;   /* dominant cool light grey — the graphic's ground */
  --surface:   #FFFFFF;   /* white — hero panel, alternating bands, cards */
  --mist:      #E2E8F1;   /* deeper cool grey — one band, tier + hover fills */
  --ink:       #14171D;   /* near-black, cool */
  --ink-2:     #1C2029;   /* dark band background, lifted a touch off pure ink */
  --on-dark:   #EFF2F7;   /* text on dark */
  --accent:    #2F43D1;   /* cool cobalt — focus + a whisper of interaction only */

  --rule:         rgba(20, 23, 29, 0.14);
  --ink-soft:     rgba(20, 23, 29, 0.60);
  --on-dark-soft: rgba(239, 242, 247, 0.62);
  --on-dark-line: rgba(239, 242, 247, 0.16);

  --display: 'Bodoni Moda', Georgia, serif;
  --osk:     'Oskon 90s', 'Bodoni Moda', Georgia, serif;
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SFMono-Regular', monospace;

  --nav-h: 64px;
  --bar-h: 44px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: var(--bar-h);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--on-dark); padding: .75rem 1.25rem;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------ primitives */

.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

/* Section headers — Bodoni Moda. */
.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 18ch;
  margin-bottom: 2.5rem;
  text-wrap: balance;
}

.display-sm { font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 20ch; }

/* The *asterisk* accent word — ZT Bros Oskon 90s italic, a flowing counterpoint
   to the Bodoni headline. This is the only place Oskon appears in a heading. */
.display em {
  font-family: var(--osk);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  line-height: .9;
  letter-spacing: 0;
  text-transform: none;
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  max-width: 46ch;
  margin-bottom: 1.5rem;
}

p + p { margin-top: 1.1rem; }

.note {
  font-family: var(--mono);
  font-size: .8rem;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--ink-soft);
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: .95rem 2.25rem;
  background: var(--ink);
  color: var(--on-dark);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s ease, color .25s ease;
}
.btn:hover, .btn:focus-visible { background: transparent; color: var(--ink); }

.btn-sm { margin-top: 0; padding: .6rem 1.4rem; font-size: .7rem; }

.btn-invert { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn-invert:hover, .btn-invert:focus-visible { background: transparent; color: var(--on-dark); }

.btn-ghost { background: transparent; color: var(--on-dark); border-color: var(--on-dark-line); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--on-dark); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-row .btn { margin-top: 2rem; }

/* -------------------------------------------------------------- wordmark */

/* The logo artwork is solid black on transparent, so it is used as a mask and
   painted in whichever ink the surrounding band needs. */
.wordmark, .nav-mark, .footer-mark {
  background-color: var(--ink);
  -webkit-mask-image: var(--logo);
  mask-image: var(--logo);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-position: left center;
  -webkit-mask-size: contain;
  mask-size: contain;
  aspect-ratio: 749 / 267;
}

.nav-mark { width: 132px; flex: none; }
.hero-panel .wordmark { width: min(100%, 520px); }
.footer-mark { width: 180px; background-color: var(--on-dark); }

/* ------------------------------------------------------------------ nav */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-inline: var(--gutter);
  background: rgba(239, 242, 247, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.nav-links {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .25s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .5rem 1rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 49;
  background: var(--paper);
  padding: 2.5rem var(--gutter);
  flex-direction: column;
  gap: 1.25rem;
}
.mobile-nav.open { display: flex; }

.mobile-nav a:not(.btn) {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: .75rem;
}
.mobile-nav .btn { align-self: flex-start; }

/* ----------------------------------------------------------------- hero */

.hero {
  margin-top: var(--nav-h);
  display: grid;
  min-height: calc(100vh - var(--nav-h));
  /* Same ground as the nav, so the header and hero read as one field. */
  background: var(--paper);
}

.hero-panel {
  padding: clamp(3rem, 6vw, 5.5rem) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* The hero is full-bleed now, so the type is held in a column — otherwise the
     script tucked under the wordmark drifts to the far edge of the page. */
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
}

.hero-panel .eyebrow { margin-bottom: 2rem; }

.hero-script {
  font-family: var(--osk);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  line-height: .95;
  margin-top: .35rem;
  align-self: flex-end;
  padding-right: 8%;
  color: var(--ink-soft);
}

.hero-date {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  margin-top: 1.75rem;
}

.hero-panel .btn { align-self: flex-start; }

.hero-tagline {
  font-size: 1rem;
  line-height: 1.55;
  max-width: 40ch;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------- bands */

.band { padding: clamp(4rem, 9vw, 8rem) 0; }
.band-surface { background: var(--surface); }
.band-paper   { background: var(--paper); }
.band-mist    { background: var(--mist); }
.band-dark    { background: var(--ink-2); color: var(--on-dark); }

.band-dark .eyebrow,
.band-dark .note,
.band-dark .lede { color: var(--on-dark-soft); }
.band-dark .display { color: var(--on-dark); }

/* Plain buttons on a dark band must invert, or they sit dark-on-dark — and their
   default hover (transparent + ink text) would vanish. Ghost/invert opt out. */
.band-dark .btn:not(.btn-invert):not(.btn-ghost) {
  background: var(--on-dark); color: var(--ink); border-color: var(--on-dark);
}
.band-dark .btn:not(.btn-invert):not(.btn-ghost):hover,
.band-dark .btn:not(.btn-invert):not(.btn-ghost):focus-visible {
  background: transparent; color: var(--on-dark);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.split-even { align-items: stretch; }

.band-img { width: 100%; border: 1px solid var(--rule); }

/* Ruled lists — hairline-separated rows. */
.ruled { list-style: none; border-top: 1px solid var(--rule); }
.ruled li {
  display: flex;
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1.02rem;
  line-height: 1.5;
}
.ruled .num {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  padding-top: .35em;
  color: var(--ink-soft);
  flex: none;
}
.band-dark .ruled { border-color: var(--on-dark-line); }
.band-dark .ruled li { border-color: var(--on-dark-line); }
.band-dark .ruled .num { color: var(--on-dark-soft); }

.pillars { list-style: none; display: grid; grid-template-columns: 1fr 1fr; }
.pillars li {
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--rule);
  margin: 0 -1px -1px 0;
}
.pillars .num {
  display: block;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.pillar-name { font-family: var(--display); font-weight: 400; font-size: 1.15rem; line-height: 1.25; hyphens: none; }

/* ------------------------------------------------------------- schedule */

.dateline {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.schedule { border-top: 1px solid var(--rule); }

.slot {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}
.slot-time { font-family: var(--mono); font-size: .85rem; letter-spacing: .04em; }
.slot-body { min-width: 0; }
.slot-title { display: block; font-family: var(--display); font-weight: 400; font-size: 1.3rem; line-height: 1.3; }
.slot-detail {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: .9rem;
  color: var(--ink-soft);
  margin-top: .35rem;
}

/* Panel line-up. The role sits in a fixed mono column so names align down the
   list and an unfilled slot reads as pending rather than missing. */
.slot-people { list-style: none; margin-top: .9rem; }
.slot-people li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: .75rem;
  padding: .3rem 0;
  font-size: .95rem;
  line-height: 1.45;
}
.slot-people .role {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: .3em;
}
/* The single "more to come" line has no role label, so it spans the row. */
.slot-people li.is-pending {
  grid-template-columns: 1fr;
  color: var(--ink-soft);
  font-style: italic;
  padding-top: .55rem;
}

/* ------------------------------------------------------------- speakers */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.card-photo {
  aspect-ratio: 3 / 4;
  background: var(--ink);
  overflow: hidden;
  margin-bottom: .9rem;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo.is-empty {
  background:
    repeating-linear-gradient(135deg, rgba(20,23,29,.10) 0 2px, transparent 2px 12px),
    var(--mist);
  border: 1px solid var(--rule);
}
.card-name { display: block; font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: 1.2; }
.card-role {
  display: block;
  font-family: var(--mono);
  font-size: .72rem;
  line-height: 1.45;
  letter-spacing: .04em;
  color: var(--ink-soft);
  margin-top: .35rem;
}

/* -------------------------------------------------------------- partners */

/* Centred masthead + a single flowing row of partner marks. */
.partners { text-align: center; }
.partners .display { max-width: 22ch; margin-inline: auto; }
.partners .lede { margin-inline: auto; }
.partners .btn { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* Full-bleed responsive tile grid, in the shape of the reference site's
   community-sponsor wall: equal tiles that reflow by available width, each on
   its own tint so the wall reads as a block even with a single partner. */
.partner-grid {
  display: grid;
  /* Fixed-width tracks that wrap and stay centred, so the wall looks composed
     with a single partner and still fills the row once there are many. */
  /* auto-fit collapses the tracks nothing occupies, and the bounded max keeps a
     tile from stretching — so one partner sits centred and many fill the row. */
  grid-template-columns: repeat(auto-fit, minmax(200px, 260px));
  justify-content: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.partner-tile {
  min-height: clamp(180px, 22vw, 260px);
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--rule);
  margin: 0 -1px -1px 0;
  text-align: center;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.2;
  transition: background .25s ease;
}
.partner-tile img { max-height: 84px; max-width: 78%; width: auto; object-fit: contain; }

.partner-tile.t0, .partner-tile.t2 { background: var(--surface); }
.partner-tile.t1, .partner-tile.t3 { background: var(--mist); }

/* Some partner art ships with its own solid background; matching the tile to it
   hides the seam instead of framing a black rectangle on white. */
.partner-tile.is-dark { background: #000; border-color: #000; color: var(--on-dark); padding: 0; }
/* The art carries its own background, so it spans the tile rather than sitting
   inside padding that would only add more of the same black. */
.partner-tile.is-dark img { max-height: none; max-width: none; width: 100%; }
a.partner-tile.is-dark:hover, a.partner-tile.is-dark:focus-visible { background: #000; }
a.partner-tile.is-dark:hover img { opacity: .82; transition: opacity .25s ease; }
a.partner-tile:hover, a.partner-tile:focus-visible { background: var(--ink); color: var(--on-dark); }

/* ------------------------------------------------------- about / events */

.page-head { padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 6rem)); }
.page-lede { font-size: clamp(1.15rem, 1.8vw, 1.45rem); max-width: 54ch; }

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* Three stacked plates — title on paper, square photo, notes on ink. Ported
   from the Threads of Tech card and recoloured to this palette. */
.event {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  background: var(--ink-2);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

/* Fixed height so a two-line title does not push its photo out of line with
   the rest of the row. */
.event-head {
  background: var(--surface);
  padding: 1.1rem 1.25rem;
  min-height: 5.4rem;
  display: grid;
  place-items: center;
}
.event-head h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.2;
  text-align: center;
  color: var(--ink);
}

.event-photo { aspect-ratio: 1 / 1; background: var(--mist); overflow: hidden; }
.event-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.event-photo.is-empty {
  background:
    repeating-linear-gradient(135deg, rgba(20,23,29,.10) 0 2px, transparent 2px 12px),
    var(--mist);
}

.event-body {
  flex: 1;
  padding: 1.1rem 1.25rem 1.25rem;
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.event-body p { font-size: .95rem; line-height: 1.5; }

.event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
  margin-top: auto;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.event-go { margin-left: auto; font-size: .95rem; }

.event.is-link:hover .event-photo img,
.event.is-link:focus-visible .event-photo img { transform: scale(1.04); }
.event.is-link:hover, .event.is-link:focus-visible { border-color: var(--ink); }
.event.is-link:hover .event-go { color: var(--on-dark); }

/* --------------------------------------------------------------- closing */

.closing { text-align: center; }
.closing .display { max-width: 22ch; margin-inline: auto; }
.closing .lede { margin-inline: auto; }
.closing .btn-row { justify-content: center; }

/* ---------------------------------------------------------------- footer */

footer.band { padding: clamp(3rem, 5vw, 4.5rem) 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
  font-size: .9rem;
}
.footer-info { color: var(--on-dark-soft); }
.footer-links { text-align: right; }
.footer-links a { color: var(--on-dark-soft); text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--on-dark); }

/* ------------------------------------------------------------- ticketbar */

.ticketbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  height: var(--bar-h);
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s ease, color .25s ease;
}
.ticketbar:hover, .ticketbar:focus-visible { background: var(--accent); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .nav-links, .nav .btn-sm { display: none; }
  .nav-toggle { display: block; }

  .hero { min-height: 0; }

  .split { grid-template-columns: 1fr; }
  .slot { grid-template-columns: 1fr; gap: .3rem; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .footer-links { text-align: left; }
}

@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .hero-script { padding-right: 0; align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.band-dark a:focus-visible, .band-dark button:focus-visible,
.ticketbar:focus-visible {
  outline-color: var(--on-dark);
}
