/* Rudi Yero Project — Sundown */
:root {
  --bg: #120B07;
  --card: #1E130C;
  --line: #3A2617;
  --field-line: #4A2F1C;
  --text: #F5D9B8;
  --text-soft: #EBCBA6;
  --muted: #C9A27E;
  --accent: #F59E0B;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); }
a:hover { color: #FFE9CF; }

.page {
  max-width: 440px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: flex;
  flex-direction: column;
}

/* ---------- Home header ---------- */
.hero-art {
  display: block;
  width: 280px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.logo {
  margin: 30px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--text);
  font-family: 'Lemon Milk', 'League Spartan', sans-serif;
  text-align: center;
}
.logo-top {
  font-weight: 800;
  font-size: 46px;
  line-height: 0.95;
  letter-spacing: 0.01em;
}
.logo-bottom {
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
}

/* ---------- Cards ---------- */
.card {
  width: 100%;
  margin-top: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card.first { margin-top: 32px; }

.card-title {
  margin: 0;
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  white-space: nowrap;
}

.card-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.card-sub.small { font-size: 13px; }

/* Protocol form */
.signup { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.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;
}
.signup input {
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--field-line);
  background: var(--bg);
  color: var(--text);
  padding: 0 14px;
  font-size: 16px; /* 16px stops iOS from zooming in */
  font-family: inherit;
}
.signup input::placeholder { color: #8F7257; }
.signup input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

.btn-solid, .btn-outline {
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}
.btn-solid { border: none; background: var(--accent); color: var(--bg); }
.btn-solid:hover { filter: brightness(1.08); }
.btn-solid[disabled] { opacity: 0.6; cursor: default; }
.btn-outline { border: 1px solid var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: rgba(245, 158, 11, 0.08); color: var(--accent); }

.form-msg { margin: 0; font-size: 14px; line-height: 1.45; }
.form-msg.ok { color: var(--text); }
.form-msg.err { color: #F7B267; }

/* Gear link card */
.card-link {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  padding: 16px 20px;
  text-decoration: none;
}
.card-link .stack { display: flex; flex-direction: column; gap: 12px; }
.card-link .card-title { font-size: 20px; }
.card-link:hover { border-color: #5A3A22; }
.card-link svg { flex-shrink: 0; }

/* Event card */
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.session {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.session .eyebrow { letter-spacing: 0.14em; }
.session-when { font-size: 16px; font-weight: 600; color: var(--text); }

/* Footer */
.footer {
  margin-top: auto;
  padding-top: 40px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.footer a { text-decoration: none; color: var(--text-soft); }

/* ---------- Gear page ---------- */
.back {
  align-self: flex-start;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.back:hover { border-color: #5A3A22; }

.page-title {
  margin: 20px 0 0;
  font-family: 'Inter Tight', Inter, sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: 0.03em;
}
.page-sub { margin: 12px 0 0; font-size: 16px; line-height: 1.45; color: var(--text-soft); }

.gear-group { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.gear-group h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.gear-item {
  min-height: 64px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.gear-item:hover { border-color: #5A3A22; }
.gear-item .name { display: block; font-size: 16px; font-weight: 600; color: var(--text); }
.gear-item .brand { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.gear-item svg { flex-shrink: 0; }

@media (max-width: 360px) {
  .logo-top { font-size: 40px; }
  .logo-bottom { font-size: 21px; }
}
