/* Typography */

@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/courier-prime-regular.ttf") format("truetype");
}

@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/courier-prime-bold.ttf") format("truetype");
}

/* Design Tokens */

:root {
  --ink: #15110c;
  --muted: #6d655c;
  --paper: #f7f3ed;
  --paper-2: #fffdf9;
  --line: #e3dbcf;
  --gold: #b67a2d;
  --gold-2: #d4a14d;
  --olive: #65734d;
  --olive-2: #87956d;
  --night: #070604;
  --night-2: #1a1008;
  --white: #ffffff;
  --shadow: 0 14px 36px rgba(43, 31, 17, 0.1);
  --radius: 8px;
  --font-body: "Courier Prime", "Courier New", Courier, monospace;
  --font-display: "Courier Prime", "Courier New", Courier, monospace;
}

/* Base Reset */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.security-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.container {
  width: min(1180px, calc(100% - clamp(28px, 5vw, 64px)));
  margin: 0 auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0;
}

/* Header + Navigation */

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - clamp(28px, 5vw, 64px)));
  margin: 0 auto;
  padding: 25px 0;
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 106px;
  min-width: 106px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: clamp(8px, 1vw, 16px);
  position: relative;
  font-size: clamp(8px, 0.72vw, 10px);
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-2);
}

.main-nav .nav-cta {
  padding: 11px 15px;
  color: var(--white);
  background: linear-gradient(135deg, var(--gold), #d39b48);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(182, 122, 45, 0.24);
}

.main-nav .nav-cta:hover {
  color: var(--white);
  background: var(--gold);
}

.nav-account {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.lang-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  min-width: 82px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.lang-switch button {
  min-height: 30px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.lang-switch button.is-active {
  color: var(--white);
  background: rgba(212, 161, 77, 0.28);
}

.nav-account-toggle {
  display: inline-grid;
  min-width: 148px;
  min-height: 40px;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  align-content: center;
  justify-items: start;
  gap: 1px;
}

.nav-account-toggle:hover,
.nav-account-toggle.is-open {
  color: var(--gold-2);
  border-color: rgba(212, 161, 77, 0.38);
  background: rgba(255, 255, 255, 0.1);
}

.nav-account-toggle-label {
  display: block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-account-toggle-meta {
  display: block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 700;
  text-transform: none;
  white-space: nowrap;
}

.nav-account-panel {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  z-index: 20;
  width: min(520px, calc(100vw - 48px));
  padding: 14px;
  background: rgba(255, 253, 249, 0.98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(24, 18, 12, 0.24);
  text-transform: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}


.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 22px;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.15;
  white-space: normal;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, #9a6422, #c68b3a);
  box-shadow: 0 10px 24px rgba(154, 100, 34, 0.18);
}

.button.light {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.button.olive {
  color: var(--white);
  background: linear-gradient(135deg, var(--olive), var(--olive-2));
}

.button.outline {
  color: var(--white);
  background: rgba(13, 9, 4, 0.2);
  border-color: rgba(212, 161, 77, 0.75);
  border-radius: 999px;
}

.button.dark-outline {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}

.button.small {
  min-height: 38px;
  padding-inline: 18px;
  font-size: 11px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 46px;
}

.event-meta div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 180px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.event-meta svg {
  width: 31px;
  height: 31px;
}

/* Shared Sections */

.section {
  padding: 42px 0;
  background: var(--paper-2);
}

.section:nth-of-type(odd) {
  background: var(--paper);
}

.why-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 8px;
  color: #8b6434;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow.center {
  text-align: center;
}

.section-lead h2,
.section h2,
.process h2,
.cta h2 {
  margin-bottom: 17px;
  font-size: clamp(30px, 3.1vw, 43px);
  line-height: 1.02;
}

.section-lead p:last-child {
  color: var(--muted);
  font-size: 14px;
}

/* Footer */

.site-footer {
  padding: 42px 0 18px;
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(100deg, #1b140e, #3c352e);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) minmax(220px, 1fr);
  align-items: start;
  gap: 34px 30px;
  padding-bottom: 28px;
}

.footer-grid > * {
  min-width: 0;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column-brand {
  gap: 14px;
}

.footer-column-contact {
  padding-left: 10px;
}

.footer-brand {
  width: 142px;
  min-width: 142px;
  margin-bottom: 0;
  color: var(--white);
}

.footer-brand .brand-logo {
  width: 100%;
  height: 122px;
}

.footer-copy {
  max-width: 34ch;
  line-height: 1.7;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.footer-title,
.site-footer h3 {
  margin: 0;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-link-list,
.footer-contact-list {
  display: grid;
  gap: 9px;
}

.footer-link-list a {
  width: fit-content;
}

.footer-contact-item {
  display: grid !important;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
}

.footer-contact-item svg {
  width: 14px;
  height: 14px;
  margin-top: 3px;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.socials a {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 34px;
  padding: 0 12px;
  margin: 0;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 900;
}

.socials a svg {
  width: 15px;
  height: 15px;
  margin: 0;
  fill: currentColor;
  stroke: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.64);
  width: 100%;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.site-footer a:hover {
  color: var(--white);
}


/* Responsive Layout */

@media (max-width: 1200px) {
  .main-nav {
    gap: 10px;
    font-size: 8.5px;
  }

  .brand {
    width: 96px;
    min-width: 96px;
  }

  .brand-logo {
    height: 82px;
  }

  .main-nav .nav-cta {
    padding-inline: 12px;
  }

  .nav-account-toggle {
    min-width: 132px;
    padding-inline: 12px;
  }

  .nav-account-toggle-label,
  .nav-account-toggle-meta {
    max-width: 132px;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 28px;
  }

  .footer-column-contact {
    padding-left: 0;
  }

  .feature-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .beans {
    width: 48%;
  }
}

@media (max-width: 940px) and (min-width: 861px) {
  .main-nav {
    gap: 10px;
    font-size: 8px;
  }

  .main-nav .nav-cta {
    padding-inline: 12px;
  }

  .why-grid {
    grid-template-columns: 230px 1fr;
    gap: 32px;
  }

  .feature-grid {
    gap: 12px;
  }

  .feature-card {
    padding-inline: 18px;
  }

  .feature-card h3 {
    font-size: 18px;
  }
}

@media (max-width: 1120px) {
  .site-header {
    position: fixed;
    padding: 10px 0;
  }

  .site-header::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: 76px;
    background: rgba(6, 5, 3, 0.9);
    backdrop-filter: blur(14px);
    z-index: -1;
  }

  .menu-toggle {
    display: block;
  }

  .brand {
    width: 66px;
    min-width: 66px;
  }

  .brand-logo {
    height: 56px;
  }

  .main-nav {
    position: fixed;
    inset: 76px 0 0;
    display: grid;
    align-content: start;
    justify-content: stretch;
    gap: 0;
    padding: 18px 20px 36px;
    background: rgba(8, 6, 4, 0.97);
    transform: translateX(100%);
    transition: transform 220ms ease;
    overflow: auto;
  }

  .menu-open .main-nav {
    transform: translateX(0);
  }

  .main-nav a {
    padding: 17px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
  }

  .nav-account {
    display: grid;
    align-items: stretch;
  }

  .lang-switch {
    width: fit-content;
    margin-top: 12px;
  }

  .nav-account-toggle {
    display: grid;
    min-width: 0;
    gap: 4px;
    padding: 16px 4px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.88);
  }

  .nav-account-panel {
    position: static;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
  }

  .nav-account-toggle-label {
    font-size: 14px;
  }

  .nav-account-toggle-meta {
    display: block;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
  }

  .account-shortcuts {
    grid-template-columns: 1fr;
  }

  .account-current-topline {
    align-items: start;
    flex-direction: column;
  }

  .account-panel {
    padding: 16px 14px;
  }

  .account-panel-head {
    margin-bottom: 12px;
  }

  .account-panel-head h3 {
    font-size: 21px;
    line-height: 1.12;
  }

  .account-tabs {
    gap: 6px;
    margin-bottom: 14px;
    padding: 5px;
  }

  .account-tabs button {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 11px;
  }

  .account-current {
    margin-bottom: 12px;
    padding: 12px;
  }

  .account-current strong {
    font-size: 18px;
  }

  .account-current-subtext,
  .account-form-copy {
    font-size: 12px;
    line-height: 1.5;
  }

  .account-view[data-account-view="guest"] .form-grid,
  .account-view[data-account-view="member"] .form-grid {
    gap: 10px;
  }

  .account-view .form-grid label {
    gap: 6px;
    font-size: 11px;
  }

  .account-view .form-grid input {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 15px;
  }

  .form-actions.compact {
    gap: 10px;
    margin-top: 14px;
  }

  .form-actions.compact .button {
    min-height: 42px;
  }

  .main-nav .nav-cta {
    justify-self: start;
    margin-top: 18px;
    padding: 13px 20px;
    border-bottom: 0;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.73), rgba(0, 0, 0, 0.94)),
      url("assets/hero-coffee.png") center top / cover no-repeat;
    opacity: 0.82;
  }

  .hero-grid {
    min-height: 560px;
    padding-top: 108px;
  }

  .why-grid,
  .awards-grid,
  .sponsor-panel {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 34px 22px;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .sponsor-panel img {
    height: 210px;
  }
}

@media (max-width: 1024px) {
  .program-grid,
  .path-grid {
    grid-template-columns: 1fr;
  }

  .path-card {
    min-height: 220px;
  }

  .footer-grid {
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-row {
    align-items: start;
    flex-direction: column;
  }

  .event-meta {
    gap: 14px;
    margin-top: 24px;
  }

  .event-meta div {
    min-width: 0;
    width: 100%;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .container,
  .site-header {
    width: min(100% - 24px, 1100px);
  }

  .brand {
    width: 64px;
    min-width: 64px;
  }

  .brand-logo {
    height: 54px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    align-items: start;
    padding: 104px 0 38px;
  }

  .hero-copy,
  .intro {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(30px, 8.8vw, 40px);
  }

  .intro {
    font-size: 15px;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .cta-actions {
    gap: 10px;
  }

  .event-meta {
    gap: 16px;
    margin-top: 28px;
  }

  .event-meta div {
    width: 100%;
  }

  .nav-account-panel {
    padding: 8px 0 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .account-panel {
    padding: 14px 12px 12px;
    background: rgba(255, 251, 244, 0.98);
    border: 1px solid rgba(227, 219, 207, 0.88);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(24, 18, 12, 0.18);
  }

  .account-panel-label {
    font-size: 10px;
  }

  .account-panel-head h3,
  .account-form h3,
  .account-summary h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .account-status-pill {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 9px;
  }

  .account-shortcut-card {
    padding: 12px;
  }

  .account-shortcut-card strong {
    font-size: 12px;
  }

  .account-shortcut-card span {
    font-size: 10px;
  }

  .section {
    padding: 34px 0;
  }

  .feature-grid,
  .steps,
  .award-list {
    grid-template-columns: 1fr;
  }

  .program-card {
    grid-template-columns: 1fr;
  }

  .program-card img {
    height: 176px;
  }

  .path-card {
    min-height: 250px;
  }

  .section-row {
    display: grid;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .countdown div {
    min-height: 62px;
  }

  .countdown strong {
    font-size: 23px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .form-tabs {
    grid-template-columns: 1fr;
  }

  .form-tab {
    min-height: 48px;
  }

  .rule-card.intro-rule {
    grid-column: auto;
  }

  .choice-grid.two-col,
  .brand-description {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .sample-form fieldset {
    padding: 20px 16px;
  }

  .sample-form legend {
    font-size: 14px;
    line-height: 1.35;
  }

  .sample-form input,
  .sample-form select,
  .sample-form textarea {
    font-size: 16px;
  }

  .choice-group .with-input {
    grid-template-columns: 18px 1fr;
  }

  .choice-group .with-input input[type="text"] {
    grid-column: 1 / -1;
  }

  .form-heading h2 {
    font-size: 28px;
  }

  .form-actions {
    align-items: stretch;
  }

  .rules-actions {
    display: grid;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .socials {
    flex-wrap: wrap;
  }

  .footer-brand {
    width: 122px;
    min-width: 122px;
  }

  .footer-brand .brand-logo {
    height: 104px;
  }

  .footer-copy {
    max-width: none;
  }

  .footer-bottom {
    gap: 8px;
    padding-top: 12px;
  }

  .site-footer {
    padding-top: 34px;
  }

  .beans {
    width: 100%;
    opacity: 0.32;
  }
}

@media (max-width: 420px) {
  .container,
  .site-header {
    width: min(100% - 20px, 1100px);
  }

  .main-nav {
    inset: 72px 0 0;
    width: 100vw;
    max-width: 100vw;
    padding-inline: 16px;
    overflow-x: hidden;
  }

  .main-nav a,
  .nav-account,
  .nav-account-toggle {
    width: 100%;
    max-width: 100%;
  }

  .hero-grid {
    padding-top: 100px;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom p {
    font-size: 10px;
  }
}
