/* =========================================================
   Trace Paths — global styles
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #1A0E0B;
  --surface: #23150F;
  --raised: #2C1B15;
  --border: #3A261F;
  --text: #F5EDE9;
  --muted: #A6938C;
  --accent: #FFFFFF;
  --head-h: 68px;
}

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

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { font-weight: 400; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }

/* ---------- Wrapper ---------- */
.trl {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--accent); color: var(--bg); text-decoration: none; }
.btn svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
.btn-sm { padding: 9px 16px; font-size: 13px; gap: 7px; }
.btn-sm svg { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(26, 14, 11, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.top-in {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--head-h);
}

.logo img { height: 30px; width: auto; }

.nav {
  display: none;
  position: absolute;
  top: var(--head-h);
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 8px 0 16px;
}
.nav.open { display: block; }

.nav-in a {
  display: block;
  padding: 12px 20px;
  color: var(--muted);
  font-size: 15px;
}
.nav-in a:hover, .nav-in a.on { color: var(--accent); text-decoration: none; }

.top-right { display: flex; align-items: center; gap: 10px; }

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.burger span { display: block; height: 1px; background: var(--text); }

/* ---------- Hero (typographic opener) ---------- */
.opener {
  padding-top: 96px;
  padding-bottom: 88px;
  min-height: min(72vh, 680px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 28px;
}

.opener h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 300;
  line-height: 1.08;
  max-width: 14ch;
}

.opener h1 em { font-style: normal; color: var(--muted); }

.opener .lede {
  margin-top: 28px;
  max-width: 34rem;
  font-size: 17px;
  color: var(--muted);
}

.opener .btn { margin-top: 40px; align-self: flex-start; }

/* ---------- Photo band ---------- */
.band-img {
  position: relative;
  height: min(62vh, 620px);
  min-height: 360px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.band-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.band-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(26, 14, 11, 0) 22%, rgba(26, 14, 11, 0) 70%, var(--bg) 100%);
}
.band-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  z-index: 1;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
}

/* ---------- Section heading ---------- */
.sect { padding-top: 96px; padding-bottom: 96px; }
.sect-head { margin-bottom: 56px; max-width: 36rem; }
.sect-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 300; line-height: 1.2; }
.sect-head p { margin-top: 14px; color: var(--muted); }

/* ---------- Numbered feature list ---------- */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px 20px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.steps .num {
  font-size: 40px;
  font-weight: 200;
  line-height: 1;
  color: var(--border);
}
.steps h3 { font-size: 19px; font-weight: 400; margin-bottom: 6px; }
.steps p { grid-column: 2; color: var(--muted); font-size: 15px; }

/* ---------- Log entry mock ---------- */
.entry-wrap { display: grid; gap: 48px; align-items: center; }
.entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
}
.entry-top { display: flex; justify-content: space-between; align-items: baseline; }
.entry-place { font-size: 18px; font-weight: 400; }
.entry-date { font-size: 12px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.entry-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.entry-stat {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.entry-stat b { display: block; font-size: 20px; font-weight: 400; }
.entry-stat span { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.entry-note { margin-top: 18px; color: var(--muted); font-size: 14px; font-style: italic; }

.week { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-top: 24px; }
.week i {
  flex: 1;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 4px 4px 0 0;
}
.week i.hi { background: var(--accent); border-color: var(--accent); }
.week-lbl { display: flex; gap: 8px; margin-top: 8px; }
.week-lbl span { flex: 1; text-align: center; font-size: 10px; color: var(--muted); }

.entry-copy h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 300; line-height: 1.2; }
.entry-copy p { margin-top: 16px; color: var(--muted); }

/* ---------- Closing statement ---------- */
.closing {
  padding-top: 120px;
  padding-bottom: 120px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.closing p.big {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 300;
  line-height: 1.3;
  max-width: 22ch;
  margin: 0 auto;
}
.closing p.small {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Inner pages ---------- */
.page-head { padding-top: 72px; padding-bottom: 40px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 300; line-height: 1.15; }
.page-head p { margin-top: 14px; color: var(--muted); max-width: 36rem; }

.cards { display: grid; gap: 16px; padding-bottom: 32px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
}
.card h2 { font-size: 18px; font-weight: 400; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card p + p { margin-top: 10px; }
.card .sec-n {
  display: block;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

.duo { display: grid; gap: 16px; padding-bottom: 80px; }
.duo .card { background: var(--raised); }
.duo .card a { font-size: 17px; }

.legal-note { padding-bottom: 80px; color: var(--muted); font-size: 13px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--border); padding-top: 40px; padding-bottom: 40px; }
.foot-in { display: flex; flex-direction: column; gap: 18px; }
.foot-in img { height: 24px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--muted); font-size: 14px; }
.foot small { color: var(--muted); font-size: 12px; }

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
  .trl { padding-left: 32px; padding-right: 32px; }

  .nav {
    display: block;
    position: static;
    border: none;
    background: transparent;
    padding: 0;
    margin-left: auto;
    margin-right: 22px;
  }
  .nav-in { display: flex; gap: 26px; }
  .nav-in a { padding: 0; font-size: 14px; }
  .burger { display: none; }

  .opener { padding-top: 120px; padding-bottom: 120px; }

  .steps li { grid-template-columns: 110px 1fr 1.2fr; align-items: baseline; padding: 40px 0; }
  .steps .num { font-size: 56px; }
  .steps h3 { margin-bottom: 0; }
  .steps p { grid-column: auto; }

  .entry-wrap { grid-template-columns: 1fr 1fr; gap: 72px; }

  .cards { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr 1fr; }

  .foot-in { flex-direction: row; align-items: center; justify-content: space-between; }
}
