/* alpaltan.com layout and type. Brand colours come only from brand.css (Wada #190, generated). */
/* Self-hosted latin subsets (Fontsource 5.3.0, SIL OFL 1.1; licences in /fonts). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--brand-surface);
  color: var(--brand-text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

/* Links: text colour, underlined. */
a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 0.18em; }
a:hover { color: var(--brand-text); text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.on-dark a:not(.btn) { color: var(--brand-surface); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--brand-text); color: var(--brand-surface); font-weight: 500;
}
.skip:focus { top: 16px; color: var(--brand-surface); }

h1, h2, h3 { font-family: "Space Grotesk", sans-serif; font-weight: 500; }
.mono { font-family: "IBM Plex Mono", monospace; }
.eyebrow { margin: 0 0 12px; font-family: "IBM Plex Mono", monospace; font-size: 14px; letter-spacing: 0.04em; }
.on-dark .eyebrow, .on-dark .num { color: var(--brand-accent); }

.inner { max-width: 1200px; margin: 0 auto; padding: 88px 32px; }

/* Buttons: accent fills, or outlined in text colour. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  font-weight: 500; text-decoration: none; border-radius: 4px;
}
.btn:hover { text-decoration: none; }
.btn-accent { background: var(--brand-accent); color: var(--brand-text); }
.btn-outline { border: 1.5px solid var(--brand-text); color: var(--brand-text); }
.btn-dark { background: var(--brand-text); color: var(--brand-surface); }
.btn-dark:hover { color: var(--brand-surface); }

/* Header */
.site-header {
  max-width: 1200px; margin: 0 auto; padding: 24px 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.wordmark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: "Space Grotesk", sans-serif; font-size: 22px; font-weight: 500; text-decoration: none;
}
.site-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-nav .btn { min-height: 44px; padding: 0 18px; }

/* Hero */
.hero { max-width: 1200px; margin: 0 auto; padding: 72px 32px 88px; }
.hero .eyebrow { margin-bottom: 16px; }
.hero h1 { margin: 0; max-width: 900px; font-size: clamp(40px, 8vw, 64px); line-height: 1.05; }
.lede { margin: 24px 0 0; max-width: 680px; font-size: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.stats {
  display: flex; flex-wrap: wrap; gap: 32px 48px; margin: 72px 0 0; padding: 32px 0 0;
  border-top: 1.5px solid var(--brand-text);
}
.stats div { min-width: 180px; }
.stats dt { font-family: "IBM Plex Mono", monospace; font-size: 40px; font-weight: 500; line-height: 1.3; }
.stats dd { margin: 4px 0 0; font-size: 15px; }

/* Black sections */
.on-dark { background: var(--brand-text); color: var(--brand-surface); }

/* Ivory sections: black text and headings; accent is never text here (2.4:1 on ivory). */
.on-light { background: var(--brand-surface); color: var(--brand-text); }
.on-dark h2, .on-light h2 { margin: 0 0 48px; max-width: 760px; font-size: clamp(32px, 6vw, 44px); line-height: 1.1; }

.trade-list { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.trade-list li { flex: 1 1 260px; padding: 28px 28px 28px 0; border-top: 1px solid var(--brand-surface); }
.trade-list .num { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: 14px; }
.trade-list h3 { margin: 8px 0; font-size: 24px; }
.trade-list p:last-child { margin: 0; }

.rules { display: flex; flex-wrap: wrap; gap: 32px; margin: 0; padding: 0; list-style: none; }
.rules li { flex: 1 1 240px; }
.rules h3 { margin: 0 0 8px; font-size: 22px; }
.rules p { margin: 0; }

/* Contact: accent block */
.contact { background: var(--brand-accent); color: var(--brand-text); }
.contact .inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.contact-copy { flex: 1 1 520px; }
.contact h2 { margin: 0 0 16px; font-size: clamp(34px, 6.5vw, 48px); line-height: 1.1; }
.contact-copy p { margin: 0; font-size: 19px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; flex: 0 1 340px; }
.contact-links .btn { min-height: 52px; padding: 0 16px; text-align: center; }
.contact-links .vcard { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 500; }

/* Footer */
.site-footer .inner {
  padding: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px;
}
.site-footer p { margin: 0; }

@media (max-width: 600px) {
  .site-header, .hero { padding-left: 20px; padding-right: 20px; }
  .inner { padding: 64px 20px; }
  .site-footer .inner { padding: 32px 20px; }
  .hero { padding-top: 40px; padding-bottom: 64px; }
  .stats { margin-top: 56px; }
  .stats dt { font-size: 34px; }
  .contact-copy, .contact-links { flex-basis: 100%; }
  .trade-list li { padding-right: 0; }
}
