/* ==========================================================================
   The Hour (theme-3)
   Evening-pass design. Plum, copper, pearl. Not felt-green, not cyan grid.
   ========================================================================== */

:root {
  --plum: #1b1018;
  --wine: #3d1a28;
  --velvet: #2a1620;
  --copper: #e07a3d;
  --copper-deep: #b85a24;
  --candle: #f3d7b5;
  --pearl: #f7efe4;
  --blush: #c9a0a8;
  --muted: #cbb4ae;
  --line: rgba(243, 215, 181, 0.22);
  --display: "Syne", system-ui, sans-serif;
  --serif: "Newsreader", "Times New Roman", serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --wrap: 1120px;
  --bar: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--plum);
  color: var(--pearl);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--copper);
  color: var(--plum);
  font-family: var(--display);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* ---------- bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--bar);
  background: rgba(27, 16, 24, 0.92);
  border-bottom: 1px solid var(--line);
}
.bar.is-tight { --bar: 60px; }
.bar__in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.word {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.word__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: inset -8px -3px 0 0 var(--wine, #1b1018);
  flex-shrink: 0;
}
.word__time {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--copper);
}
.word__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
}
.bar__menu {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.bar__nav {
  display: flex;
  gap: 18px;
}
.bar__nav a {
  text-decoration: none;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.bar__nav a:hover, .bar__nav a[aria-current="page"] { color: var(--pearl); }
.bar__act { display: flex; align-items: center; gap: 14px; }
.bar__login {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  position: relative;
  border-radius: 4px;
  flex-shrink: 0;
  z-index: 2;
  margin-left: auto;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  background: var(--candle);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .bar__menu { display: none; }
  .bar.is-open .bar__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--velvet);
    padding: 12px 20px 20px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
  }
  .bar.is-open .bar__nav { flex-direction: column; gap: 0; }
  .bar.is-open .bar__nav a { min-height: 48px; border-bottom: 1px dashed var(--line); }
}

/* ---------- buttons: pass offers ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.02em;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  transition: transform 180ms var(--ease), background 180ms var(--ease);
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--candle); outline-offset: 3px; }
.btn--copper { background: var(--copper); color: var(--plum); }
.btn--ghost { background: transparent; color: var(--pearl); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- footer ---------- */

.foot {
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
}
.foot h3 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  font-family: var(--mono);
  font-weight: 400;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--pearl); }
.foot__legal {
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}
.foot--slim { padding-top: 24px; }
.foot--slim .foot__legal { border: 0; padding-top: 0; }

@media (max-width: 800px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .foot__grid { grid-template-columns: 1fr; }
  .foot__legal { flex-direction: column; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
