/* ==========================================================================
   Cheers to Good Luck — design system (DARK)
   Executive IT lounge: midnight glass, warm gold, per-drink accents.
   Mobile-first. No build step.
   ========================================================================== */

:root {
  --bg: #0a0e1a;
  --bg-2: #0f1524;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text: #eef2fb;
  --text-dim: #aab3c8;
  --text-faint: #7d8699;

  --gold: #f5b454;
  --gold-soft: #ffd58a;
  --ink: #11161f;           /* dark ink used on accent/gold fills */

  --accent: var(--gold);          /* overridden per-card */

  --radius: 18px;
  --radius-sm: 11px;
  --maxw: 1160px;

  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(245, 180, 84, 0.10), transparent 60%),
    radial-gradient(900px 650px at 12% 6%, rgba(54, 198, 255, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 38%);
  background-attachment: fixed;
  min-height: 100dvh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #1a1206;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { font-size: 1.55rem; filter: drop-shadow(0 3px 8px rgba(245, 180, 84, 0.35)); }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em; }
.brand-sub { font-family: var(--mono); font-size: 0.66rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.16em; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 13px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3ad29f;
  box-shadow: 0 0 0 0 rgba(58, 210, 159, 0.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(58, 210, 159, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(58, 210, 159, 0); }
  100% { box-shadow: 0 0 0 0 rgba(58, 210, 159, 0); }
}

/* ---------- Hero ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

.hero { padding: clamp(48px, 9vw, 104px) 0 clamp(36px, 6vw, 64px); max-width: 760px; }
.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 18px;
}
.hero h1 { font-size: clamp(2.3rem, 7vw, 4.1rem); font-weight: 700; }
.hero h1 .hl {
  background: linear-gradient(120deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { color: var(--text-dim); font-size: clamp(1rem, 2.4vw, 1.18rem); margin: 22px 0 30px; max-width: 620px; }

.cta {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(120deg, var(--gold-soft), var(--gold));
  padding: 13px 26px;
  border-radius: 999px;
  box-shadow: 0 12px 28px -10px rgba(245, 180, 84, 0.6);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(245, 180, 84, 0.7); }
.cta:active { transform: translateY(0); }

/* ---------- Section head ---------- */
.section-head { margin: 8px 0 26px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 600; }
.section-sub { color: var(--text-faint); font-family: var(--mono); font-size: 0.82rem; margin: 0; }

/* ---------- Recipe grid ---------- */
.recipe-grid {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  gap: clamp(14px, 2.4vw, 22px);
  grid-template-columns: 1fr;
}
@media (min-width: 620px)  { .recipe-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .recipe-grid { grid-template-columns: repeat(3, 1fr); } }

.recipe-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  background:
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.recipe-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 75%);
  opacity: 0.9;
}
.recipe-card::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  right: -90px; top: -90px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%);
  pointer-events: none;
}
.recipe-card:hover,
.recipe-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  outline: none;
}
.recipe-card:focus-visible { box-shadow: var(--shadow), 0 0 0 2px color-mix(in srgb, var(--accent) 70%, white); }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-glyph {
  font-size: 1.9rem;
  line-height: 1;
  filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--accent) 45%, transparent));
}
.card-serves {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 9px;
  white-space: nowrap;
}
.card-name { font-family: var(--display); font-size: 1.32rem; font-weight: 600; }
.card-tagline { color: var(--text-dim); font-size: 0.92rem; margin: -4px 0 0; }

.card-team {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--accent) 78%, white);
}
.card-team .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.card-cta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 13px;
}
.card-cta .arrow { transition: transform 0.2s ease; color: var(--accent); }
.recipe-card:hover .card-cta .arrow { transform: translateX(4px); }

.draft-tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px dashed rgba(245, 180, 84, 0.5);
  border-radius: 6px;
  padding: 2px 6px;
}

/* ---------- Modal ---------- */
.recipe-modal {
  width: min(620px, 100%);
  max-height: 92dvh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, #131a2b, #0d121f);
  color: var(--text);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}
.recipe-modal::backdrop { background: rgba(5, 8, 16, 0.72); backdrop-filter: blur(4px); }
.recipe-modal[open] { animation: modal-in 0.22s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: none; } }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.modal-close:hover { background: rgba(0, 0, 0, 0.6); transform: rotate(90deg); }

.modal-body { overflow-y: auto; max-height: 92dvh; }

.modal-hero {
  padding: 34px 30px 24px;
  background:
    radial-gradient(420px 200px at 100% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%);
  border-bottom: 1px solid var(--border);
}
.modal-hero .glyph { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.modal-hero h3 { font-size: clamp(1.6rem, 5vw, 2.1rem); font-weight: 700; }
.modal-hero .tagline { color: var(--text-dim); margin: 8px 0 14px; font-size: 1.02rem; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
}
.chip.team { color: color-mix(in srgb, var(--accent) 80%, white); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

.modal-section { padding: 22px 30px; border-bottom: 1px solid var(--border); }
.modal-section:last-child { border-bottom: 0; }
.modal-section h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.blurb { color: var(--text-dim); margin: 0; }

.ingredients { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ingredients li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
}
.ingredients li:last-child { border-bottom: 0; }
.ing-amount { font-family: var(--mono); color: var(--gold-soft); font-size: 0.86rem; }
.ing-item { color: var(--text); }
.ing-tag { font-family: var(--mono); font-size: 0.66rem; color: var(--text-faint); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 13px; }
.steps li { position: relative; padding-left: 40px; color: var(--text); }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
  color: var(--ink);
  background: var(--accent);
  border-radius: 50%;
}

.protip, .signature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-dim);
  font-size: 0.94rem;
}
.protip strong { color: var(--gold-soft); }

.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notes li { font-family: var(--mono); font-size: 0.85rem; color: var(--text-dim); }

.signature { font-style: italic; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px clamp(16px, 4vw, 40px) 56px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.foot-line { color: var(--text-dim); margin: 0 0 6px; font-size: 0.92rem; }
.foot-fine { color: var(--text-faint); font-family: var(--mono); font-size: 0.72rem; margin: 0; }

/* ---------- Motion / a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
