/* ==========================================================================
   FAGAS PROJECT — kit.css
   Design tokens for the band's website.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alata&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap');

:root {
  /* ---------- COLOR ---------- */
  /* Paper-cream surfaces — warm, vinyl-sleeve quality */
  --bg:              #EFE9DD;   /* paper (default page bg) */
  --bg-soft:         #E5DDCC;   /* alternate, sidebar */
  --bg-edge:         #D6CCB8;   /* field fill, divider tint */

  /* Ink — true near-black to match logo */
  --ink:             #0E0E0E;   /* primary text & headlines */
  --ink-soft:        #5A544A;   /* meta, captions (warm, not cool grey) */
  --ink-ghost:       #948B7B;   /* tertiary, placeholders */

  /* Accent — ember / signal copper */
  --red:             #C04A1F;   /* primary brand accent ("ember") */
  --red-hover:       #A33C16;   /* deeper, on hover */
  --red-light:       #D97A55;   /* tint for badges (rare) */

  /* Overlay used on hero imagery — heavy ink veil */
  --hero-overlay:    rgba(14, 14, 14, 0.62);

  /* Rules / borders */
  --rule:            #C9BFAB;   /* hairline on paper */
  --rule-strong:     #A89C82;   /* stronger divider */

  /* Semantic aliases */
  --fg-1:            var(--ink);
  --fg-2:            var(--ink-soft);
  --fg-3:            var(--ink-ghost);
  --bg-1:            var(--bg);
  --bg-2:            var(--bg-soft);
  --link:            var(--red);
  --link-hover:      var(--red-hover);

  /* ---------- TYPOGRAPHY ---------- */
  --font-display:    'Alata', 'Avenir Next', 'Trebuchet MS', system-ui, sans-serif;
  --font-ui:         'Alata', 'Avenir Next', 'Trebuchet MS', system-ui, sans-serif;
  --font-body:       'Merriweather', Georgia, 'Times New Roman', serif;

  /* Type scale */
  --fs-hero:         128px;  /* "FAGAS / PROJECT" mega title */
  --fs-h1:           48px;   /* section heads */
  --fs-h2:           32px;   /* sub-section, post titles */
  --fs-h3:           22px;   /* card titles */
  --fs-lead:         19px;   /* lead paragraph */
  --fs-body:         16px;   /* body */
  --fs-meta:         12px;   /* caps meta, nav */
  --fs-tiny:         11px;   /* captions */

  --lh-tight:        1.05;
  --lh-normal:       1.7;
  --lh-poem:         1.9;

  --ls-caps:         0.22em; /* extra-wide caps tracking — band-poster feel */
  --ls-hero:         0.04em;

  /* ---------- SPACING (8px grid) ---------- */
  --space-1:         8px;
  --space-2:         16px;
  --space-3:         24px;
  --space-4:         32px;
  --space-5:         48px;
  --space-6:         64px;
  --space-7:         96px;
  --space-8:         128px;

  /* ---------- LAYOUT ---------- */
  --col-content:     720px;
  --col-wide:        1180px;

  /* ---------- BORDERS & RADII ---------- */
  --radius:          0;      /* hard corners by default */
  --radius-card:     2px;    /* almost-hard corners */

  /* ---------- ELEVATION ---------- */
  --shadow-card:     0 2px 8px rgba(14, 14, 14, .12);
  --shadow-deep:     0 12px 40px rgba(14, 14, 14, .28);

  /* ---------- MOTION ---------- */
  --ease:            cubic-bezier(.2, .6, .2, 1);
  --dur-fast:        120ms;
  --dur-base:        200ms;
}

/* Dark mode — vinyl-at-night */
:root.is-dark {
  --bg:              #14110D;
  --bg-soft:         #1C1812;
  --bg-edge:         #2A2419;
  --ink:             #EFE9DD;
  --ink-soft:        #B0A795;
  --ink-ghost:       #6F6757;
  --rule:            #2A2419;
  --rule-strong:     #3D3527;
  --hero-overlay:    rgba(0, 0, 0, 0.55);
  --shadow-card:     0 2px 8px rgba(0, 0, 0, .5);
}

/* ==========================================================================
   Base
   ========================================================================== */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: 0.06em; }
h4 { font-size: 14px; letter-spacing: var(--ls-caps); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 160px);
  text-transform: uppercase;
  letter-spacing: var(--ls-hero);
  line-height: 0.95;
  color: var(--bg);
  margin: 0;
}

p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--ink);
  margin: 0 0 var(--space-3);
}
p.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink);
}

.meta, .caps {
  font-family: var(--font-ui);
  font-size: var(--fs-meta);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  color: var(--ink-soft);
  font-weight: 400;
}

figcaption, .caption {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--fs-tiny);
  color: var(--ink-soft);
  margin-top: var(--space-1);
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-base) var(--ease);
}
a:hover  { color: var(--link-hover); }
a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--space-6) 0;
}

/* ==========================================================================
   Forms
   ========================================================================== */
input[type="text"], input[type="email"], input[type="url"], textarea {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg-edge);
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  padding: 12px 14px;
  width: 100%;
}
input:focus, textarea:focus {
  outline: 0;
  border-color: var(--ink);
}
input::placeholder, textarea::placeholder { color: var(--ink-ghost); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: var(--fs-meta);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  font-weight: 400;
  background: var(--ink);
  color: var(--bg);
  padding: 14px 22px 12px;
  border: 0;
  border-radius: var(--radius-card);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:hover  { background: var(--red); color: #fff; }

.btn--accent { background: var(--red); color: #fff; }
.btn--accent:hover  { background: var(--red-hover); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 13px 21px 11px;
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

.btn--lg { padding: 18px 28px 16px; font-size: 13px; }

/* ==========================================================================
   Utility
   ========================================================================== */
.wrap     { max-width: var(--col-wide); margin: 0 auto; padding: 0 var(--space-3); }
.wrap-sm  { max-width: var(--col-content); margin: 0 auto; padding: 0 var(--space-3); }
.stack-1  > * + * { margin-top: var(--space-1); }
.stack-2  > * + * { margin-top: var(--space-2); }
.stack-3  > * + * { margin-top: var(--space-3); }
.stack-4  > * + * { margin-top: var(--space-4); }

.rule { display: block; height: 1px; background: var(--rule); border: 0; }
.rule-strong { background: var(--rule-strong); }

/* ==========================================================================
   Cards
   ========================================================================== */
.cover {
  position: relative;
  display: block;
  background: var(--ink);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.cover::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--hero-overlay);
  pointer-events: none;
}
.cover__title {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-3);
  color: #fff;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.05;
  z-index: 1;
  text-wrap: balance;
}

/* ==========================================================================
   Badges / pills
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 5px 9px 4px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
}
.badge--ember { background: var(--red); color: #fff; }
.badge--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
