/* smg.myers.uk — one-page holding site. No build step; this file is served as-is. */

:root {
  --bg: #0b0b0e;
  --ink: #f4f3f0;
  --muted: rgba(244, 243, 240, 0.62);
  --faint: rgba(244, 243, 240, 0.40);
  --line: rgba(255, 255, 255, 0.14);
  --card: rgba(255, 255, 255, 0.028);
  --card-hi: rgba(255, 255, 255, 0.055);
  --live: #4fd18b;
  --soon: #f2b33d;
  --gap: 28px;
  --rise: 34px;
  --leafgap: 12px;
  --stub: 16px;
  --stub-y: 25px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(60rem 28rem at 50% -8rem, rgba(94, 200, 229, 0.10), transparent 70%),
    radial-gradient(40rem 22rem at 88% 2rem, rgba(231, 26, 122, 0.07), transparent 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 400 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

/* ---------- hero ---------- */

.hero {
  padding: 72px 0 52px;
}

.mark {
  margin: 0 0 40px;
  font-family: Sora, Inter, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Sora, Inter, sans-serif;
  font-weight: 700;
  font-size: clamp(2.3rem, 6.4vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--faint);
}

.lede {
  max-width: 46ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

/* ---------- tree ---------- */

.tree { padding: 18px 0 0; }

.root {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: max-content;
  margin: 0 auto;
  padding: 16px 30px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-hi);
}

.root-mark {
  font-family: Sora, Inter, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.22em;
  padding-left: 0.22em;
}

.root-note {
  color: var(--faint);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.trunk {
  width: 1px;
  height: 38px;
  margin: 0 auto;
  background: var(--line);
}

.branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  padding-top: var(--rise);
}

/* the drop from the rail into each branch */
.branch::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--rise));
  left: 50%;
  width: 1px;
  height: var(--rise);
  background: var(--line);
}

/* the rail itself, drawn in segments so it crosses the grid gaps */
.branch::after {
  content: "";
  position: absolute;
  top: calc(-1 * var(--rise));
  height: 1px;
  background: var(--line);
}
.branch:first-child::after { left: 50%; right: calc(-1 * var(--gap) / 2); }
.branch:last-child::after { left: calc(-1 * var(--gap) / 2); right: 50%; }
.branch:not(:first-child):not(:last-child)::after {
  left: calc(-1 * var(--gap) / 2);
  right: calc(-1 * var(--gap) / 2);
}

.branch { position: relative; }

.branch-head {
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card-hi);
  font-family: Sora, Inter, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.branch-head span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--accent, var(--ink));
  vertical-align: 0.08em;
}

/* ---------- leaves ---------- */

.leaves {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 14px 0 0 22px;
}

.leaf { position: relative; }
.leaf + .leaf { margin-top: var(--leafgap); }

/* vertical spine */
.leaf::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 0;
  width: 1px;
  height: calc(100% + var(--leafgap));
  background: var(--line);
}
.leaf:first-child::before {
  top: -14px;
  height: calc(100% + var(--leafgap) + 14px);
}
.leaf:last-child::before { height: var(--stub-y); }
.leaf:first-child:last-child::before { top: -14px; height: calc(var(--stub-y) + 14px); }

/* horizontal stub into the card */
.leaf::after {
  content: "";
  position: absolute;
  left: -22px;
  top: var(--stub-y);
  width: var(--stub);
  height: 1px;
  background: var(--line);
}

.leaf > a,
.leaf > div {
  display: block;
  padding: 13px 15px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  text-decoration: none;
}

.leaf > a {
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.leaf > a:hover,
.leaf > a:focus-visible {
  background: var(--card-hi);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  transform: translateY(-1px);
}

.leaf > a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.leaf-name {
  display: block;
  font-family: Sora, Inter, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.leaf-desc {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.leaf-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  color: var(--faint);
  font-size: 0.775rem;
  letter-spacing: 0.01em;
}

.leaf > a .leaf-meta { color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--faint);
}
.dot[data-state="live"] { background: var(--live); }
.dot[data-state="soon"] { background: var(--soon); }
.dot[data-state="building"] { background: rgba(255, 255, 255, 0.34); }

/* ---------- key + footer ---------- */

.key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 34px 0 0;
  color: var(--faint);
  font-size: 0.775rem;
}
.key > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.foot {
  margin-top: 64px;
  padding: 28px 0 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.foot-contact {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--muted);
}
.foot-contact a { color: var(--ink); }

.foot-legal {
  max-width: 78ch;
  margin: 0;
  color: rgba(244, 243, 240, 0.34);
  font-size: 0.75rem;
  line-height: 1.6;
}

/* ---------- narrow screens ---------- */

@media (max-width: 860px) {
  .branches {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-top: 0;
  }
  .branch::before,
  .branch::after { display: none; }
  .trunk { height: 26px; }
  .branch + .branch { padding-top: 4px; }
}

@media (max-width: 520px) {
  .hero { padding: 48px 0 36px; }
  .mark { margin-bottom: 30px; }
  .wrap { padding: 0 16px; }
  .leaves { padding-left: 18px; }
  .leaf::before,
  .leaf::after { left: -18px; }
}

@media (prefers-reduced-motion: reduce) {
  .leaf > a { transition: none; }
  .leaf > a:hover { transform: none; }
}
