/* Dap's site in Myles's look (website F, "Day meets night", 2026-11-15): Deep teal on Cool grey,
   Outfit for display and Figtree for everything else, the interlocked rings as the logo. The fonts
   are served from this site (site/fonts, SIL OFL), so there are still no third-party requests. The
   CSP allows no inline styles (site/_headers), so every rule lives here. */
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("/fonts/Outfit_700Bold.ttf") format("truetype"); }
@font-face { font-family: "Outfit"; font-weight: 800; font-display: swap; src: url("/fonts/Outfit_800ExtraBold.ttf") format("truetype"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("/fonts/Figtree_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url("/fonts/Figtree_500Medium.ttf") format("truetype"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("/fonts/Figtree_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("/fonts/Figtree_700Bold.ttf") format("truetype"); }

/* Day: Deep teal's day colours on the Cool grey page. On light, teal text is accent-ink; accent
   itself is only a fill or the logo's line. The home page's left half (.day) is always day. */
:root, .day {
  --bg: #EDEFF2; --surface: #FFFFFF; --sunk: #E6EDEB; --text: #141A19; --muted: #56625F; --line: #D9E2DF;
  --accent: #14A38B; --on-accent: #0F1514; --link: #0B7A67; --link-hover: #075C4E;
}
:root { color-scheme: light dark; }
/* Night: Deep teal's night colours. The home page's right half (.night) is always night; the other
   pages go night with the phone. */
.night {
  --bg: #0F1514; --surface: #18211F; --sunk: #18211F; --text: #EEF4F2; --muted: #98A6A2; --line: rgba(238, 244, 242, 0.08);
  --link: #14A38B; --link-hover: #3DBBA5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1514; --surface: #18211F; --sunk: #18211F; --text: #EEF4F2; --muted: #98A6A2; --line: rgba(238, 244, 242, 0.08);
    --link: #14A38B; --link-hover: #3DBBA5;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/23px "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-text-size-adjust: 100%; }
main { max-width: 680px; margin: 0 auto; padding: 24px 24px 64px; }

/* The logo (two interlocked rings, drawn as one line in accent) beside the wordmark. */
.brand { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 40px; color: var(--text); text-decoration: none; }
.brand .word { font: 800 31px/31px "Outfit", "Figtree", sans-serif; letter-spacing: -0.55px; }
/* As a link (every page but home) it is 45 tall to touch and sits where it did. */
a.brand { padding: 7px 0; margin: -7px 0 33px; }
.logo { display: block; flex: none; }
.logo g { stroke: var(--accent); }

h1 { font: 800 42px/46px "Outfit", "Figtree", sans-serif; letter-spacing: -1px; margin: 0 0 16px; overflow-wrap: break-word; }
h2 { font: 700 24px/28px "Outfit", "Figtree", sans-serif; letter-spacing: -0.4px; margin: 40px 0 8px; }
h3 { font: 700 17px/22px "Figtree", sans-serif; margin: 24px 0 4px; }
p, li { color: var(--text); }
strong { font-weight: 700; }
a { color: var(--link); font-weight: 600; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
.muted { color: var(--muted); font-weight: 500; }

.draft { background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 999px; font-weight: 700; display: inline-block; margin: 0 0 24px; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; line-height: 19px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { font-weight: 700; }
/* A wide table scrolls in its own box on a phone, so the page never scrolls sideways; the table
   keeps display: table, so screen readers still read it as one. */
.table-scroll { overflow-x: auto; margin: 16px 0; }
.table-scroll table { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
code { font-size: 14px; background: var(--sunk); padding: 1px 5px; border-radius: 6px; }

/* The home page: day meets night. Two halves side by side, the words on day and the rings on night;
   on a phone the night half sits under the day half. */
.split { display: flex; flex-wrap: wrap; min-height: 100vh; min-height: 100svh; }
.split > .day, .split > .night { flex: 1 1 420px; min-width: 0; background: var(--bg); color: var(--text); }
.split > .day { display: flex; flex-direction: column; padding: 40px 48px; }
.split > .day .brand { margin: 0; align-self: flex-start; }
.pitch { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 520px; margin: 0; padding: 64px 0; }
.pitch h1 { font-size: 48px; line-height: 52px; letter-spacing: -1.2px; }
.pitch .muted { margin: 0 0 40px; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.steps .n { flex: none; width: 32px; height: 32px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); display: flex; align-items: center; justify-content: center; font: 700 16px/23px "Outfit", "Figtree", sans-serif; }
footer { display: flex; flex-wrap: wrap; gap: 0 20px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; line-height: 19px; }
footer a { padding: 13px 0; min-width: 44px; }
.split > .night { display: flex; align-items: center; justify-content: center; min-height: 360px; padding: 48px; }
.split > .night .logo { width: 300px; max-width: 100%; height: auto; }
@media (max-width: 480px) {
  .split > .day { padding: 28px 24px 16px; }
  .pitch { padding: 48px 0; }
  .pitch h1 { font-size: 40px; line-height: 44px; letter-spacing: -1px; }
  .split > .night { min-height: 300px; padding: 40px 24px; }
  .split > .night .logo { width: 220px; }
}
