/* ── Reset & Base ──────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #1a1a1a;
  background: #faf7f2;
}

/* ── Typography ───────────────────────────────── */

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: #111;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

p {
  max-width: 38em;
}

a {
  color: #8b3a2a;
}

/* ── Eyebrow Labels ──────────────────────────── */

.eyebrow {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b3a2a;
  margin-bottom: 0.75rem;
}

.eyebrow-light {
  color: rgba(201, 182, 167, 0.9);
}

.accent-rule {
  border: none;
  width: 48px;
  height: 1px;
  background: #8b3a2a;
  margin-bottom: 1rem;
}

.the-box .accent-rule {
  background: rgba(200, 160, 130, 0.6);
}

/* ── Layout ───────────────────────────────────── */

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* ── Bands ────────────────────────────────────── */

.band-a {
  background: #faf7f2;
}

.band-b {
  background: #ebe4d7;
}

/* ── Hero ─────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 70vh;
  background: url("images/desk.png") center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top right,
    rgba(20, 15, 10, 0.8),
    rgba(20, 15, 10, 0.35)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 3rem 1.5rem;
}

.hero-text {
  max-width: 640px;
}

.hero h1 {
  color: #faf7f2;
  margin-bottom: 1.25rem;
}

.hero .eyebrow {
  color: #c0785a;
}

.subhead {
  font-size: 1.0625rem;
  color: rgba(250, 247, 242, 0.82);
  margin-bottom: 2rem;
  max-width: 36em;
}

.hero .cta-button {
  font-size: 1.0625rem;
  padding: 1rem 2.5rem;
}

/* ── Hero Stats Strip ─────────────────────────── */

.hero-stats {
  display: flex;
  gap: 0;
  align-self: flex-end;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.25rem;
  border-right: 1px solid rgba(250, 247, 242, 0.2);
}

.stat:last-child {
  border-right: none;
  padding-right: 0;
}

.stat:first-child {
  padding-left: 0;
}

.stat-value {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #faf7f2;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.55);
  margin-top: 0.15rem;
}

@media (min-width: 768px) {
  .hero {
    min-height: 85vh;
  }

  .hero-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 8rem 6rem;
  }

  .hero-stats {
    flex-shrink: 0;
  }
}

/* ── CTA Button ───────────────────────────────── */

.cta-button {
  display: inline-block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #faf7f2;
  background: #8b3a2a;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  background: #6e2d20;
}

.cta-button:focus-visible {
  outline: 2px solid #8b3a2a;
  outline-offset: 3px;
}

/* ── Who's Running This ──────────────────────── */

.who-running p {
  margin-bottom: 1rem;
  color: #333;
}

.who-running p:last-child {
  margin-bottom: 0;
}

.who-running .linkedin-link {
  margin-top: 1.25rem;
  font-weight: 600;
}

/* ── The Idea ─────────────────────────────────── */

.idea p {
  margin-bottom: 1.25rem;
  color: #333;
}

.idea p:last-child {
  margin-bottom: 0;
}

/* ── How It Works ─────────────────────────────── */

.how-it-works ol {
  list-style: none;
  counter-reset: steps;
  padding: 0;
}

.how-it-works li {
  counter-increment: steps;
  padding-left: 2.25rem;
  position: relative;
  margin-bottom: 0.75rem;
  color: #333;
}

.how-it-works li::before {
  content: counter(steps) ".";
  position: absolute;
  left: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  color: #8b3a2a;
}

/* ── Who This Is For ──────────────────────────── */

.columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.col p {
  color: #333;
}

.col h3 {
  color: #8b3a2a;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

@media (min-width: 540px) {
  .columns {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* ── The Box — full-bleed background ──────────── */

.the-box {
  position: relative;
  background: url("images/box.png") center / cover no-repeat;
  padding: 5rem 0;
}

.the-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(35, 15, 10, 0.6);
}

.the-box .container {
  position: relative;
  z-index: 1;
}

.the-box h2 {
  color: #faf7f2;
}

.the-box p {
  color: rgba(250, 247, 242, 0.85);
  margin-bottom: 1rem;
}

.the-box p:last-child {
  margin-bottom: 0;
}

/* ── Application Form ─────────────────────────── */

.apply {
  padding-bottom: 5rem;
}

.form-intro {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.5;
  color: #333;
  margin-bottom: 2.5rem;
}

.hidden {
  display: none !important;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 2rem;
}

@media (min-width: 540px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.5rem;
}

.hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #999;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.6rem 0;
  border: none;
  border-bottom: 1px solid #c5bfb5;
  border-radius: 0;
  background: transparent;
  color: #1a1a1a;
  transition:
    border-color 0.15s ease,
    border-width 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom: 2px solid #8b3a2a;
  padding-bottom: calc(0.6rem - 1px);
}

.form-group textarea {
  resize: vertical;
  background: #f5f0e6;
  padding: 0.75rem;
  border: 1px solid transparent;
  border-bottom: 1px solid #c5bfb5;
  border-radius: 4px 4px 0 0;
}

.form-group textarea:focus {
  border: 1px solid transparent;
  border-bottom: 2px solid #8b3a2a;
  padding-bottom: calc(0.75rem - 1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

/* ── Pill Buttons (Hours) ─────────────────────── */

.pills-group > label:first-child {
  margin-bottom: 0.65rem;
}

.pills {
  display: flex;
  gap: 0;
}

.pills input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pills label {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #555;
  padding: 0.55rem 1.5rem;
  border: 1px solid #c5bfb5;
  border-right-width: 0;
  cursor: pointer;
  transition:
    background 0.12s ease,
    color 0.12s ease;
  text-align: center;
}

.pills label:first-of-type {
  border-radius: 4px 0 0 4px;
}

.pills label:last-of-type {
  border-right-width: 1px;
  border-radius: 0 4px 4px 0;
}

.pills label:hover {
  background: #f0ebe2;
}

.pills input[type="radio"]:checked + label {
  background: #8b3a2a;
  border-color: #8b3a2a;
  color: #faf7f2;
}

.pills input[type="radio"]:checked + label + input + label {
  border-left-color: #8b3a2a;
}

.pills input[type="radio"]:focus-visible + label {
  outline: 2px solid #8b3a2a;
  outline-offset: 2px;
}

/* ── LinkedIn Prefix Field ────────────────────── */

.linkedin-field {
  display: flex;
  align-items: baseline;
  gap: 0;
  border-bottom: 1px solid #c5bfb5;
  transition: border-color 0.15s ease;
}

.linkedin-field:focus-within {
  border-bottom: 2px solid #8b3a2a;
}

.linkedin-prefix {
  font-size: 1rem;
  color: #777;
  white-space: nowrap;
  padding: 0.6rem 0;
  user-select: none;
  cursor: text;
}

.linkedin-field:focus-within .linkedin-prefix {
  padding-bottom: calc(0.6rem - 1px);
}

.linkedin-group input[type="text"] {
  border-bottom: none !important;
  padding-left: 0;
  flex: 1;
  min-width: 0;
}

.linkedin-group input[type="text"]:focus {
  border-bottom: none !important;
  padding-bottom: 0.6rem;
}

/* ── Privacy Statement ───────────────────────── */

.form-privacy {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #888;
  max-width: 36em;
}

/* ── Submit Button ────────────────────────────── */

.submit-button {
  margin-top: 1rem;
  width: 100%;
  max-width: 320px;
  font-size: 1.0625rem;
  padding: 1rem 2rem;
  text-align: center;
}

/* ── Footer ───────────────────────────────────── */

footer {
  padding: 3rem 0;
  background: #464440;
  border-top: 1px solid #ddd;
}

footer p {
  font-size: 0.9rem;
  color: #c5bfb5;
}
