/* trunk.css — variables, reset, fonts, base, utilities */

@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 300 600;
  font-display: swap;
  font-style: normal;
}

:root {
  /* core color tokens — surface-content family */
  --bg: #0C0C0D;
  --surface: #16161A;
  --surface-2: #1C1C22;
  --content: #EDEDED;
  --content-muted: #A8A8AD;
  --brand: #C9CDD2;
  --rule: #2A2A30;
  --rule-soft: #202026;
  --focus: #C9CDD2;

  /* technical (free naming) */
  --ff-display: "Cormorant", Georgia, serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --radius: 2px;
  --ease: cubic-bezier(.4, .0, .2, 1);
  --shadow-1: 0 1px 0 rgba(201,205,210,.04);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--content);
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--content); }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: .01em;
  color: var(--content);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; max-width: 68ch; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .4em; }

button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

::selection { background: rgba(201,205,210,.22); color: #fff; }

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

.a11y-skip {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 300;
  background: var(--surface);
  color: var(--content);
  border: 1px solid var(--rule);
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.a11y-skip:focus { top: 12px; }

.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;
}

.eyebrow {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: .76rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.1rem;
  display: inline-block;
}

/* thin steel rule with a tiny clock-hand tick — themed CSS motif */
.hairline {
  position: relative;
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}
.hairline::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 46px; height: 1px;
  background: var(--brand);
  transform: translateY(-50%);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 50px;
  padding: 0 30px;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: .92rem;
  letter-spacing: .04em;
  border-radius: var(--radius);
  border: 1px solid var(--brand);
  background: transparent;
  color: var(--content);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { background: var(--brand); color: var(--bg); }
.btn--solid {
  background: var(--brand);
  color: var(--bg);
  border-color: var(--brand);
}
.btn--solid:hover { background: #fff; border-color: #fff; }
.btn--ghost { border-color: var(--rule); color: var(--content-muted); }
.btn--ghost:hover { border-color: var(--brand); background: transparent; color: var(--content); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
