/* cellarworks.dev. Fonts are self-hosted, so no data goes to third parties and no cookie banner is needed.
   Colours, fonts and radii come from tokens.css (generated from brand/tokens/tokens.json – see brand/README.md).
   Base styles taken from the Market Mate website (DerDachs/event-map-app, website/style.css). */
@import url("tokens.css");

@font-face {
  font-family: "Bebas Neue";
  src: url("assets/fonts/bebas-neue-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --card: var(--white);
  --radius: var(--radius-md);
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

/* cellarworks colours: ink as primary, gold only as a spark. Marktrot belongs to Market Mate. */
a {
  color: var(--ink);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--ink); text-decoration-color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand img { height: 36px; width: auto; }
.nav { display: flex; gap: 6px; }
.nav a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}
.nav a:hover { background: var(--sand); color: var(--ink); }

/* Hero */
.hero { padding: 88px 0 72px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 12px;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.8rem); text-transform: uppercase; }
h1, h2 { overflow-wrap: break-word; hyphens: auto; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); text-transform: uppercase; }
h3 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--ink);
}
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn, .btn:hover { text-decoration: none; }

/* Sections */
section { padding: 56px 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 40em; margin-bottom: 32px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card p { margin: 0 0 20px; color: var(--ink-soft); }

/* Product card */
.product { display: flex; flex-direction: column; align-items: flex-start; }
.product .logo { height: 40px; width: auto; margin-bottom: 16px; }
.product .btn { margin-top: auto; }

/* Legal pages */
.legal { max-width: 46em; padding: 48px 20px 64px; }
.legal h1 { font-size: 2.4rem; }
.legal h2 { font-size: 1.5rem; margin-top: 32px; }
.todo {
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 0.92rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 4px 0; }
.site-footer a { color: var(--ink-soft); }
/* Separator after each item (inline-block, so it is not underlined with the link) */
.site-footer .wrap > *:not(:last-child)::after { content: "·"; display: inline-block; margin: 0 8px; }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .brand img { height: 32px; }
  .nav a { padding: 7px 10px; font-size: 0.88rem; }
}
