/* joinplantel.com — same look as the app (SPEC §8.6): Paper/Night bases, hairlines, mono accents. */

@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/geist-latin-wght-normal.woff2) format("woff2-variations");
  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: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/geist-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}
@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2-variations");
  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;
}

/* Paper (light) by default; Night when the system is dark, unless the visitor picked Paper. */
:root {
  color-scheme: light;
  --bg: #f0eee9;
  --surface: #f5f3ee;
  --surface-2: #ebe8e1;
  --ink: #1a1a18;
  --ink-soft: #3a3a36;
  --muted: #6b6b66;
  --line: #d8d6d0;
  --line-strong: #c4c2bb;
  --heat: #1a1a18;
  /* Brand colours, darkened on Paper so marks and text keep their contrast. */
  --primary: #4f7f22;
  --primary-fg: #ffffff;
  --secondary: #3d6ad1;
  --tertiary: #c25a1c;
  --font-sans: "Geist Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="paper"]) {
    color-scheme: dark;
    --bg: #1a1b26;
    --surface: #1f2230;
    --surface-2: #24283b;
    --ink: #c0caf5;
    --ink-soft: #a9b1d6;
    --muted: #8b93b8;
    --line: #2a2e42;
    --line-strong: #414868;
    --heat: #c0caf5;
    --primary: #9ece6a;
    --primary-fg: #0c0e10;
    --secondary: #7aa2f7;
    --tertiary: #ff9e64;
  }
}

:root[data-theme="night"] {
  color-scheme: dark;
  --bg: #1a1b26;
  --surface: #1f2230;
  --surface-2: #24283b;
  --ink: #c0caf5;
  --ink-soft: #a9b1d6;
  --muted: #8b93b8;
  --line: #2a2e42;
  --line-strong: #414868;
  --heat: #c0caf5;
  --primary: #9ece6a;
  --primary-fg: #0c0e10;
  --secondary: #7aa2f7;
  --tertiary: #ff9e64;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

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

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 32px;
  }
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Header */

.top {
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
}

/* The trio and the lowercase mono name, as in the app's header (frontend/src/components/BrandMark.tsx):
   three of four slots taken, a small group with one place left. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.mark-on {
  fill: var(--primary);
}

.mark-off {
  fill: var(--line-strong);
}

.nav-link,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--ink-soft);
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover,
.icon-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.icon-btn {
  width: 36px;
  padding: 0;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

/* The theme button only works with the script, so it only shows then. */
.icon-btn[hidden] {
  display: none;
}

.icon-sun {
  display: none;
}

:root[data-theme="night"] .icon-sun {
  display: block;
}

:root[data-theme="night"] .icon-moon {
  display: none;
}

/* Hero */

main {
  flex: 1;
}

.hero {
  display: grid;
  gap: 40px;
  padding: 28px 0 48px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 56px;
    padding: 48px 0 80px;
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tertiary);
}

@media (prefers-reduced-motion: no-preference) {
  .status .dot {
    animation: pulse 2.4s ease-in-out infinite;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

h1 {
  margin: 20px 0 16px;
  font-size: clamp(2rem, 6.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 650;
  text-wrap: balance;
}

h1 em {
  font-style: normal;
  color: var(--primary);
}

.lead {
  margin: 0;
  max-width: 34rem;
  font-size: 18px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-weight: 550;
  font-size: 15px;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn-primary:hover {
  color: var(--primary-fg);
  filter: brightness(1.06);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  color: var(--ink);
  background: var(--surface);
}

.cta-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* The week card */

.card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  min-width: 0;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font: 500 11px/1.6 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.card-body {
  padding: 16px;
}

.week {
  display: block;
  width: 100%;
  height: auto;
}

.week .axis,
.week .day {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--muted);
}

.week .day {
  font-weight: 600;
  fill: var(--ink-soft);
}

.week .work {
  fill: var(--surface-2);
  stroke: var(--line);
  stroke-width: 1;
}

.week .heat {
  fill: var(--heat);
}

.week .h1 {
  fill-opacity: 0.05;
}

.week .h2 {
  fill-opacity: 0.11;
}

.week .h3 {
  fill-opacity: 0.18;
}

.week .block {
  fill: url(#hatch);
}

.week .hatch {
  stroke: var(--muted);
  stroke-width: 1.4;
  stroke-opacity: 0.6;
}

.week .session.a {
  fill: var(--primary);
}

.week .session.b {
  fill: var(--secondary);
}

.week .session.c {
  fill: var(--tertiary);
}

.week .session.draft {
  fill-opacity: 0.4;
  stroke-width: 1;
  stroke-dasharray: 3 2;
}

.week .session.a.draft {
  stroke: var(--primary);
}

.week .session.b.draft {
  stroke: var(--secondary);
}

.week .session.c.draft {
  stroke: var(--tertiary);
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.swatch {
  width: 12px;
  height: 8px;
  border-radius: 1px;
  background: var(--primary);
}

.swatch.draft {
  opacity: 0.45;
  outline: 1px dashed var(--primary);
  outline-offset: -1px;
}

.swatch.shade {
  background: var(--heat);
  opacity: 0.15;
}

.fake-btn {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 13px;
  font-weight: 550;
}

/* Steps */

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* Each step is a card, like the week card above. */
.steps li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

@media (min-width: 760px) {
  .steps li {
    padding: 24px;
  }
}

.steps h2 {
  margin: 18px 0 8px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--primary);
}

.step-icon svg {
  width: 22px;
  height: 22px;
}

.steps .num {
  color: var(--primary);
}

/* Footer */

.foot {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 28px;
}

.foot .spacer {
  margin-right: auto;
}

/* Not found */

.nf {
  padding: 96px 0;
}

.nf h1 {
  font-size: 32px;
}
