/* ============================================================
   base.css — @font-face, reset, base elements, layout helpers.
   ============================================================ */

/* ---- Fonts (self-hosted woff2) ---- */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;            /* one variable file covers all weights */
  font-style: normal;
  font-display: swap;
}
@font-face { font-family:"Tomorrow"; src:url("../assets/fonts/Tomorrow-Regular.woff2")  format("woff2"); font-weight:400; font-display:swap; }
@font-face { font-family:"Tomorrow"; src:url("../assets/fonts/Tomorrow-Medium.woff2")   format("woff2"); font-weight:500; font-display:swap; }
@font-face { font-family:"Tomorrow"; src:url("../assets/fonts/Tomorrow-SemiBold.woff2") format("woff2"); font-weight:600; font-display:swap; }
@font-face { font-family:"Tomorrow"; src:url("../assets/fonts/Tomorrow-Bold.woff2")     format("woff2"); font-weight:700; font-display:swap; }

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Page-wide vertical guide lines ---- */
.page-guides {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1120px;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}
.page-guides__line {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--c-line);
}
.page-guides__line--left  { left: 0; }
.page-guides__line--right { right: 0; }
@media (max-width: 1120px) { .page-guides { display: none; } }

/* ---- Base elements ---- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s ease, color .3s ease;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); font-weight: 500; color: var(--c-muted); }
h3 { font-size: var(--fs-h3); letter-spacing: .04em; }

p { color: var(--c-muted); }

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--sp-24); border-top: 1px solid var(--c-line); }
.section--tight { padding-block: var(--sp-8); border-top: 1px solid var(--c-line); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #5d606b;
}
.eyebrow--accent { color: var(--c-accent); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .85em 1.6em;
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn--accent {
  background: radial-gradient(ellipse at center, #ff7300 0%, #f74b0f 100%);
  color: #fff;
  border: 1px solid #ffa600;
  border-radius: 8px;
  box-shadow: inset 0px 4px 14.7px 0px #ff9900;
  font-weight: 600;
  letter-spacing: 0.11em;
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: inset 0px 4px 14.7px 0px #ff9900, var(--shadow-lift); }
.btn--light { background: #fff; color: var(--c-ink); border: 1px solid var(--c-line); }
.btn--light:hover { border-color: var(--c-faint); }
.btn--dark {
  background: radial-gradient(ellipse at center, #181818 0%, #2f2f2f 50%, #454545 100%);
  color: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  box-shadow: inset 0px 4px 14.7px 0px #7b7b7b;
  font-weight: 500;
  letter-spacing: 0.11em;
}
.btn--dark:hover { transform: translateY(-2px); box-shadow: inset 0px 4px 14.7px 0px #7b7b7b, var(--shadow-lift); }

/* ---- Theme toggle button ---- */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: none; border: none;
  border-radius: var(--r-sm); cursor: pointer;
  color: var(--c-muted); font-size: 1rem; line-height: 1;
  transition: color .15s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--c-ink); }
.theme-toggle::before { content: "☾"; }
[data-theme="dark"] .theme-toggle::before { content: "☀"; }

/* ---- Dark mode base overrides ---- */
[data-theme="dark"] .eyebrow { color: var(--c-accent); }

/* ---- Accessibility ---- */
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto; }
}
