/* dssalumni.org: shared styles (design option B, "structured"). Light only.
   Own palette and typeface on purpose: no dss+ red, aubergine or navy, no plus/cross or diagonal motifs, no Century Gothic. */

/* Manrope (SIL Open Font License), self-hosted: no third-party requests. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/manrope-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f3f5f6;
  --ink: #1c2327;
  --ink-soft: #3a454b;
  --muted: #5c686f;
  --line: #dfe4e7;
  --accent: #0f6b6b;
  --accent-hover: #0b5454;
  --accent-soft: #e5f0ef;
  --error: #a4332a;
  --error-bg: #fbeeec;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem; /* keeps anchored content clear of the sticky top bar */
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
}

main {
  flex: 1;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 60rem) {
  .wrap {
    padding: 0 2rem;
  }
}

:root {
  --section-y: 3.5rem;
}

@media (min-width: 60rem) {
  :root {
    --section-y: 5.5rem;
  }
}

h1,
h2,
h3 {
  font-family: var(--font);
  line-height: 1.2;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.8rem 1.5rem;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font: 700 1rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}

.button[disabled] {
  opacity: 0.65;
  cursor: progress;
}

/* Primary call to action: larger target, a soft lift, an arrow that nudges on hover */
.button-lg {
  min-height: 3.5rem;
  padding: 0 2rem;
  border-radius: 10px;
  font-size: 1.1rem;
  box-shadow: 0 10px 22px -12px rgba(15, 107, 107, 0.7);
}

.button .arrow {
  transition: transform 0.15s ease;
}

.button:hover .arrow {
  transform: translateX(3px);
}

.button.ghost {
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  background: transparent;
  color: var(--accent);
  font-size: 0.92rem;
}

.button.ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand span {
  color: var(--muted);
  font-weight: 500;
}

.brand:hover {
  color: var(--ink);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
}

.topbar nav a {
  display: none;
  color: var(--ink-soft);
  text-decoration: none;
}

.topbar nav a:hover {
  color: var(--accent);
}

@media (min-width: 40rem) {
  .topbar nav a {
    display: inline;
  }
}

/* Hero */

/* Two columns on laptops: the promise on the left, the sign-up card on the right (stacked on phones). */
.hero {
  padding: 2.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 60rem) {
  .hero {
    padding: 5rem 0 5.5rem;
  }
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
    gap: 4rem;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kicker::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 3.7vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 .accent {
  color: var(--accent);
}

.lead {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.6;
}

@media (min-width: 60rem) {
  .lead {
    font-size: 1.25rem;
  }
}

.lead strong {
  color: var(--ink);
  font-weight: 700;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-row span::before {
  content: '✓';
  margin-right: 0.4rem;
  color: var(--accent);
  font-weight: 800;
}

/* The three eras on one line, oldest first, with arrows for the progression (wraps between names on phones) */
.era-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  width: fit-content;
  max-width: 100%;
  margin: 1.1rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.era-line li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

/* The arrow trails each name, so when the line wraps on a phone the arrow stays at the end of the first line */
.era-line li:not(:last-child)::after {
  content: '→';
  color: var(--accent);
  font-weight: 800;
}

/* Section headings */

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0 0 2rem;
  color: var(--muted);
}

/* Sign-up card (right of the hero): "It's early days" teaser, which turns into the form in place */

.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card-sub {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.signup-card .button-lg {
  width: 100%;
}

.steps {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 0.95rem;
}

.steps li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.9rem;
  align-items: center;
  color: var(--ink-soft);
}

.steps b {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.8rem;
}

.card {
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 48px -28px rgba(20, 40, 45, 0.28);
}

@media (min-width: 40rem) {
  .card {
    padding: 2rem;
  }
}

.progress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.progress i {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  transition: background-color 0.3s ease;
}

.progress i.on {
  background: var(--accent);
}

.step-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.step-title {
  margin: 0.2rem 0 1.5rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.step-title:focus {
  outline: none;
}

.field {
  margin: 0 0 1.2rem;
}

.field label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.optional {
  color: var(--muted);
  font-weight: 500;
}

.hint {
  margin: -0.1rem 0 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}

input[type='text'],
input[type='email'],
textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: 500 1.05rem/1.35 var(--font);
}

textarea {
  min-height: 7.5rem;
  line-height: 1.5;
  resize: vertical;
}

input[type='text']:focus,
input[type='email']:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.input-year {
  max-width: 8rem;
  font-variant-numeric: tabular-nums;
}

[aria-invalid='true'] {
  border-color: var(--error) !important;
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.check input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.2rem 0 0;
  accent-color: var(--accent);
}

.card .button[type='submit'] {
  width: 100%;
}

.error {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: var(--error-bg);
  color: var(--error);
  font-size: 0.95rem;
}

.fine {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.notice {
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: var(--accent-soft);
}

.done p {
  color: var(--ink-soft);
}

.done .hint {
  margin: 0 0 1rem;
}

/* Honeypot: off-screen for people, visible to naive bots */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* About */

.about {
  padding: var(--section-y) 0;
}

.qa {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 52rem) {
  .qa {
    grid-template-columns: repeat(3, 1fr);
  }
}

.qa > div {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.qa h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.qa p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Footer */

.site-footer {
  padding: 2rem 0 2.5rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer .wrap {
  display: grid;
  gap: 1rem;
}

@media (min-width: 52rem) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.site-footer p {
  max-width: 46rem;
  margin: 0;
}

/* Plain content pages (privacy, confirm, 404) */

.page {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

/* Readable line length, left-aligned with the logo in the top bar */
.page > * {
  max-width: 48rem;
}

.page h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.page h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page p,
.page li {
  color: var(--ink-soft);
}

.page ul {
  padding-left: 1.25rem;
}

.page li {
  margin: 0 0 0.4rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Stats page */

.page.page-wide > * {
  max-width: none;
}

.page.page-wide > .unlock {
  max-width: 26rem;
}

.unlock {
  max-width: 26rem;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.75rem;
}

.tile {
  padding: 1rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.tile p {
  margin: 0;
}

.stats-page .tile-label {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.35;
}

.stats-page .tile-value {
  margin-top: 0.35rem;
  color: var(--ink);
  font: 800 2rem/1.1 var(--font);
  font-variant-numeric: tabular-nums;
}

.stats-page .tile-note {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.table-wrap {
  overflow-x: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

thead th {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

tbody th {
  color: var(--ink);
  font-weight: 600;
}

tbody tr:last-child > * {
  border-bottom: 0;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.stats-page td.num {
  color: var(--ink);
}

td.empty {
  color: var(--muted);
  text-align: left;
}

.two-col {
  display: grid;
  gap: 0 1.5rem;
}

@media (min-width: 48rem) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

code {
  font-size: 0.9em;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
