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

/* ── Colour tokens ── */
:root {
  --bg: #fff;
  --text: #111;
  --text-muted: #555;
  --rule: #ddd;
  --link: #111;
  --link-hover: #444;
  --focus-ring: #0066cc;
  --toggle-bg: transparent;
  --toggle-border: #ccc;
  --toggle-color: #555;
  --toggle-hover-bg: #f0f0f0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111;
    --text: #e8e8e8;
    --text-muted: #999;
    --rule: #333;
    --link: #e8e8e8;
    --link-hover: #fff;
    --toggle-border: #444;
    --toggle-color: #999;
    --toggle-hover-bg: #222;
  }
}

[data-theme="light"] {
  --bg: #fff;
  --text: #111;
  --text-muted: #555;
  --rule: #ddd;
  --link: #111;
  --link-hover: #444;
  --toggle-border: #ccc;
  --toggle-color: #555;
  --toggle-hover-bg: #f0f0f0;
}

[data-theme="dark"] {
  --bg: #111;
  --text: #e8e8e8;
  --text-muted: #999;
  --rule: #333;
  --link: #e8e8e8;
  --link-hover: #fff;
  --toggle-border: #444;
  --toggle-color: #999;
  --toggle-hover-bg: #222;
}

/* ── Base ── */
html {
  font-size: 18px;
  color-scheme: light dark;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  background: var(--bg);
  color: var(--text);
  padding: 0.5rem 1rem;
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 1rem;
}

/* ── Layout ── */
main {
  max-width: 650px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

/* ── Headings ── */
h1, h2, h3 {
  font-weight: normal;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Body copy ── */
p {
  margin: 0.75rem 0;
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* ── Links ── */
a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Theme toggle ── */
.theme-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--toggle-bg);
  border: 1px solid var(--toggle-border);
  border-radius: 50%;
  color: var(--toggle-color);
  font-size: 0.95rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: background 0.15s, border-color 0.15s;
}

.theme-toggle:hover {
  background: var(--toggle-hover-bg);
}

/* ── Connect links ── */
.connect-links {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.connect-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.connect-links a:hover {
  color: var(--link-hover);
}

.connect-links svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* ── Garden list ── */
.garden-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.garden-list a {
  text-decoration: none;
  color: var(--text);
}

.garden-list a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Calendly embed ── */
.calendly-inline-widget {
  min-width: 320px;
  height: 700px;
}

/* ── Back link ── */
.back-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--text);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  html {
    font-size: 17px;
  }

  main {
    padding: 2rem 1rem 4rem;
  }

  .theme-toggle {
    top: 0.75rem;
    right: 0.75rem;
  }
}
