/* hiandrea.love — plain CSS, no build step. */

:root {
  color-scheme: light dark;

  --bg: #fbfaf6;
  --ink: #1b1f1c;
  --muted: #5c645e;
  --line: #d9dcd3;
  --accent: #2c7a3f; /* the one accent colour: meadow green */

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1311;
    --ink: #ecefe9;
    --muted: #a3aba4;
    --line: #2a312c;
    --accent: #8fd69a;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  overflow-wrap: break-word;
}

/* ---------- layout ---------- */

.page {
  display: flex;
  flex-direction: column;
  max-width: 65ch;
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(1.25rem, 5vw, 2.5rem) clamp(1.25rem, 5vw, 2rem);
}

main {
  flex: 1;
  padding-block: clamp(4rem, 16vh, 9rem);
}

section {
  margin-top: clamp(3rem, 10vh, 5rem);
}

/* ---------- header / footer strips ---------- */

.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 0.9rem;
}

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

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

.strip .label {
  margin: 0;
}

/* small registration mark before the first label in each strip */
.strip .label:first-child::before {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.75em;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 1px 100% no-repeat;
}

/* ---------- type ---------- */

.label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.numeral {
  margin: 0 0 0.1em -0.04em;
  color: var(--accent);
  font-size: clamp(5.5rem, 30vw, 11rem);
  font-weight: 200;
  letter-spacing: -0.05em;
  line-height: 0.85;
  font-variant-numeric: lining-nums;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 9vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  word-spacing: 0.06em;
  line-height: 1.05;
}

h2.label {
  margin: 0 0 1.25rem;
}

p {
  margin: 0 0 1.25rem;
}

.lede {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.2em;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

/* ---------- meadow divider ---------- */

.meadow {
  display: block;
  width: min(15rem, 100%);
  height: auto;
  margin-top: clamp(2.5rem, 8vh, 4rem);
  fill: var(--accent);
}

.meadow-eye {
  fill: var(--bg);
}

.meadow-stem {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
}

.meadow-ground {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

/* ---------- placeholders (delete once the TODOs are filled in) ---------- */

.todo {
  padding: 0.75rem 1rem;
  border: 1px dashed var(--accent);
  color: var(--muted);
  font-size: 0.9em;
}

.todo-tag {
  margin-right: 0.5em;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---------- skip link ---------- */

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9rem;
  text-decoration: none;
  transform: translateY(-300%);
}

.skip-link:focus {
  transform: none;
}
