/* Ellarn homepage, Option B: "Your Module, Your Rules"
   Built strictly to Ellarn Brand Guidelines v1.0 (November 2026).
   Palette: Bottle, Chalk, Copper, Sage, Slate. No gradients, glows or shadows. */

:root {
  --bottle: #17352e;
  --chalk: #f2f1eb;
  --copper: #b0623a;
  --sage: #9dae98;
  --slate: #3a3f3c;

  --rule-sage-soft: rgba(157, 174, 152, 0.45);
  --gutter: clamp(20px, 5vw, 80px);
  --maxw: 1440px;

  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  background: var(--chalk);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--bottle); }
a:hover { color: var(--slate); }

:focus-visible { outline: 3px solid var(--bottle); outline-offset: 3px; }
.on-dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--chalk); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  background: var(--bottle);
  color: var(--chalk);
  padding: 12px 20px;
  font-weight: 600;
  z-index: 10;
}
.skip-link:focus { top: 16px; color: var(--chalk); }

/* Layout */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding-block: 96px; }
.section--rule { border-top: 1.5px solid var(--bottle); }
.section--sage { background: var(--sage); color: var(--bottle); }
.section--bottle { background: var(--bottle); color: var(--chalk); }
.stack { display: flex; flex-direction: column; }
.split { display: flex; flex-wrap: wrap; gap: 56px; }

/* Type */
.overline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bottle);
}
.overline::before {
  content: "";
  display: block;
  width: 24px;
  height: 3px;
  background: var(--copper);
  flex: none;
}
.on-dark .overline { color: var(--sage); }
.section--sage .overline { color: var(--bottle); }

.display {
  margin: 0;
  max-width: 640px;
  font-size: clamp(38px, 4.4vw, 56px);
  line-height: 1.07;
  font-weight: 600;
  color: var(--bottle);
}
.h1 { margin: 0; font-size: 40px; line-height: 46px; font-weight: 600; }
.h3 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; }
.lead { margin: 0; font-size: 18px; line-height: 28px; }
.note { margin: 0; font-size: 14px; line-height: 20px; }
.todo { font-style: italic; }

@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .h1 { font-size: 32px; line-height: 38px; }
}

/* Buttons */
.btn {
  display: inline-block;
  font: inherit;
  font-size: 19px;
  line-height: 24px;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 28px;
  border: 0;
  cursor: pointer;
}
.btn--copper { background: var(--copper); color: var(--chalk); }
.btn--copper:hover { background: var(--copper); color: var(--chalk); text-decoration: underline; text-underline-offset: 4px; }
.btn--outline {
  font-size: 16px;
  font-weight: 600;
  padding: 12px 20px;
  border: 1.5px solid var(--bottle);
  color: var(--bottle);
}
.btn--outline-dark {
  font-size: 16px;
  font-weight: 600;
  padding: 14px 22px;
  border: 1.5px solid var(--chalk);
  color: var(--chalk);
}
.link-quiet { font-size: 16px; font-weight: 600; padding: 12px 0; }

/* Header */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}
.site-header .logo img { height: 44px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 16px; }
.nav a { text-decoration: none; padding: 12px 0; color: var(--bottle); }
.nav a.btn--outline { padding: 12px 20px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .nav__muted { color: var(--slate); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero__arc {
  position: absolute;
  right: -380px;
  top: -120px;
  width: 760px;
  height: 760px;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-block: 56px 88px;
}
.hero__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__copy .lead { max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__panelwrap { flex: 1 1 420px; min-width: 0; max-width: 540px; display: flex; flex-direction: column; gap: 12px; }

/* Cohort panel */
.panel {
  background: var(--bottle);
  color: var(--chalk);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.panel__title {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}
.panel__list { margin: 0; border-top: 1px solid var(--rule-sage-soft); }
.panel__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-sage-soft);
}
.panel__row dt { color: var(--sage); }
.panel__row dd { margin: 0; font-weight: 700; text-align: right; }
.weighting { display: flex; flex-direction: column; gap: 10px; }
.weighting__label { color: var(--sage); }
.weighting__bar { display: flex; gap: 4px; height: 14px; }
.weighting__bar i { flex: 1; display: block; }
.weighting__bar .w-eco { border: 2px solid var(--chalk); }
.weighting__bar .w-env { background: var(--sage); }
.weighting__bar .w-peo { background: var(--copper); }
.weighting__names { display: flex; justify-content: space-between; font-size: 14px; line-height: 20px; }

/* Timeline */
.timeline-scroll { overflow-x: auto; }
.timeline { min-width: 960px; }
.timeline__weeks {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-bottom: 1.5px solid var(--bottle);
}
.timeline__weeks span {
  padding: 0 0 10px 8px;
  border-left: 1px solid var(--bottle);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--bottle);
}
.timeline__label {
  margin: 20px 0 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bottle);
}
.timeline__label--teams { margin-top: 24px; }
.timeline__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.seg { padding: 14px 16px; font-size: 15px; line-height: 20px; font-weight: 600; }
.seg--you { background: var(--bottle); color: var(--chalk); }
.seg--team { background: var(--sage); color: var(--bottle); }
.c-1-2 { grid-column: 1 / span 2; }
.c-3-2 { grid-column: 3 / span 2; }
.c-3-8 { grid-column: 3 / span 8; }
.c-5-6 { grid-column: 5 / span 6; }
.c-11-2 { grid-column: 11 / span 2; }

/* Tables */
.table-scroll { overflow-x: auto; }
.table { border-collapse: collapse; width: 100%; color: var(--bottle); }
.table--control { min-width: 560px; }
.table--score { min-width: 380px; }
.table th {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 16px;
}
.table td { padding: 16px; vertical-align: top; }
.table thead tr { border-bottom: 1.5px solid var(--bottle); }
.table tbody tr { border-bottom: 1px solid var(--bottle); }
.section:not(.section--sage) .table tbody tr { border-bottom-color: var(--sage); }
.table .flush { padding-left: 0; }
.table .col-half { width: 50%; }

/* Definition rows (label + answer) */
.rows { margin: 0; display: flex; flex-direction: column; border-top: 1.5px solid var(--bottle); }
.rows__item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--sage);
}
.rows__item dt { flex: 1 1 180px; font-weight: 700; color: var(--bottle); }
.rows__item dd { flex: 3 1 320px; margin: 0; }
.rows--dark { border-top-color: var(--sage); }
.rows--dark .rows__item { border-bottom-color: var(--rule-sage-soft); }
.rows--dark .rows__item dt { color: var(--chalk); }
.rows--dark .rows__item dd { color: var(--sage); }
.rows--dark .rows__item dd.plain { color: var(--chalk); }

/* Student mocks */
.mock {
  border: 1.5px solid var(--sage);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.mock__title {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bottle);
}
.feed { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--sage); }
.feed li {
  padding: 16px 0;
  border-bottom: 1px solid var(--sage);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feed__who { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--bottle); }
.feed__voice { font-family: var(--font-serif); font-size: 18px; line-height: 28px; color: var(--bottle); }
.mockcol { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* Briefing form */
.form { flex: 1 1 420px; min-width: 0; max-width: 560px; display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--half { flex: 1 1 200px; }
.field label { font-size: 16px; font-weight: 600; color: var(--bottle); }
.field input {
  font: inherit;
  font-size: 16px;
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--bottle);
  background: var(--chalk);
  color: var(--slate);
  border-radius: 0;
}
.field-row { display: flex; flex-wrap: wrap; gap: 20px; }
.form__status { margin: 0; min-height: 24px; font-weight: 600; color: var(--bottle); }
.form .btn { align-self: flex-start; }

/* Footer */
.site-footer { background: var(--bottle); color: var(--chalk); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; padding-block: 56px 24px; }
.site-footer .logo img { height: 44px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer nav a { color: var(--chalk); padding: 8px 0; }
.site-footer__legal { padding-block: 0 40px; font-size: 14px; line-height: 20px; color: var(--sage); }

/* Helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.table tbody th[scope="row"] {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding-block: 16px;
}
