/* wildsitecreations.co.uk
   Two looks on one stylesheet. The WildSite Creations brand is the default (:root); each app's
   section switches the tokens with a [data-theme] block, so components below never name a colour.
   The header and footer read the --ws-* and --ink-* tokens, which no app block touches: they stay
   WildSite on every page. */

:root {
  /* WildSite brand, from the logo pack: ink, white, the green dot and the slate of "CREATIONS". */
  --ws-bg: #FFFFFF;
  --ws-fg: #111111;
  --ws-soft: #5A6170;
  --ws-line: #E3E5E9;
  --ws-dot: #1E8F4E;

  /* The ink band behind the hero and the footer: the logo-on-dark colours in both schemes. */
  --ink-bg: #111111;
  --ink-fg: #F3F4F6;
  --ink-title: #FFFFFF;
  --ink-soft: #A3A9B5;
  --ink-line: #2A2C31;
  --ink-dot: #3DDC84;
  --ink-dot-hover: #6BE7A3;
  --ink-dot-fg: #111111;

  /* Page tokens; an app's [data-theme] block replaces these. */
  --bg: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-band: #F4F5F7;
  --fg: #111111;
  --fg-soft: #5A6170;
  --line: #E3E5E9;
  --link: #17753F; /* the logo's #1E8F4E is just under 4.5:1 on white, so text links go a step darker */
  --accent: #1E8F4E;
  --accent-fg: #FFFFFF;
  --solid: #111111;
  --solid-fg: #FFFFFF;
  --focus: #3DDC84;
  --hero-bg: var(--ink-bg);
  --hero-fg: var(--ink-fg);
  --hero-title: var(--ink-title);
  --hero-soft: var(--ink-soft);
  --hero-accent: var(--ink-dot);
  --hero-accent-fg: var(--ink-dot-fg);
  --hero-accent-hover: var(--ink-dot-hover);
  --frame: #000000;
  --frame-line: #2E3035;

  --radius: 14px;
  --wrap: 1080px;
  --narrow: 720px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ws-bg: #0C0D0E;
    --ws-fg: #F3F4F6;
    --ws-soft: #A3A9B5;
    --ws-line: #232529;
    --ws-dot: #3DDC84;
    --ink-bg: #16171A;
    --ink-line: #2E3035;
    --bg: #0C0D0E;
    --bg-card: #151619;
    --bg-band: #111214;
    --fg: #F3F4F6;
    --fg-soft: #A3A9B5;
    --line: #24262B;
    --link: #3DDC84;
    --accent: #3DDC84;
    --accent-fg: #111111;
    --solid: #F3F4F6;
    --solid-fg: #111111;
  }
}

/* Dram Notes: the app's own palette (app/src/main/java/.../ui/theme/Theme.kt). */
[data-theme="dram-notes"] {
  --bg: #FBF5EA;
  --bg-card: #FFF9EF;
  --bg-band: #EFE3CF;
  --fg: #2A1A10;
  --fg-soft: #5E4A38;
  --line: #D9C9B0;
  --link: #9A4E0C;
  --accent: #C9701F;
  --accent-fg: #FFFFFF;
  --solid: #2A1A10;
  --solid-fg: #FFF9EF;
  --focus: #F0B04A;
  --hero-bg: #3B2112;
  --hero-fg: #F5E6C8;
  --hero-title: #FFFFFF;
  --hero-soft: #D9C9B0;
  --hero-accent: #F0B04A;
  --hero-accent-fg: #1E120A;
  --hero-accent-hover: #F6C06A;
  --frame: #1E120A;
  --frame-line: #4A3220;
}

@media (prefers-color-scheme: dark) {
  [data-theme="dram-notes"] {
    --bg: #1E120A;
    --bg-card: #2A1A10;
    --bg-band: #241509;
    --fg: #F5E6C8;
    --fg-soft: #D9C9B0;
    --line: #4A3220;
    --link: #F0B04A;
    --accent: #F0B04A;
    --accent-fg: #1E120A;
    --solid: #F5E6C8;
    --solid-fg: #1E120A;
    --hero-bg: #2A1A10;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; margin-top: 1.5em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(var(--narrow), 100% - 32px); }

.skip {
  position: absolute; left: 16px; top: -100px;
  background: var(--solid); color: var(--solid-fg);
  padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 16px; }

/* Brand devices from the logo.
   .dot is the green full stop: once at the end of a main heading, in the section's accent.
   .eyebrow is the "CREATIONS" line: wide-tracked capitals in slate. */

.dot { display: inline-block; width: 0.19em; height: 0.19em; border-radius: 50%; background: var(--accent); margin-left: 0.07em; }
.hero .dot { background: var(--hero-accent); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.75rem; font-weight: 500; color: var(--fg-soft); margin: 0 0 14px; }
.hero .eyebrow { color: var(--hero-soft); }

/* Header, app bar, footer */

.site-header { background: var(--ws-bg); border-bottom: 1px solid var(--ws-line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 68px; padding-block: 10px; }
.brand { display: block; line-height: 0; border-radius: 4px; }
.brand img { width: 124px; height: auto; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-header nav a { color: var(--ws-soft); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--ws-fg); border-color: var(--ws-dot); }

.app-nav { background: var(--bg-band); border-bottom: 1px solid var(--line); }
.app-nav .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; min-height: 52px; padding-block: 6px; }
.app-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--fg); text-decoration: none; }
.app-brand img { border-radius: 7px; }
.app-nav .links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.app-nav .links a { color: var(--fg-soft); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.app-nav .links a:hover, .app-nav .links a[aria-current] { color: var(--fg); border-color: var(--accent); }

.site-footer { background: var(--ink-bg); color: var(--ink-soft); margin-top: 64px; padding-block: 48px 40px; font-size: 0.95rem; }
.site-footer .wrap { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer .wrap > div { min-width: 0; }
.site-footer .logo { width: 220px; }
.site-footer h2 { margin: 0 0 10px; color: var(--ink-fg); font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink-fg); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--ink-dot); }
.site-footer a:focus-visible { outline-color: var(--ink-dot); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--ink-line); padding-top: 20px; margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Hero */

.hero { background: var(--hero-bg); color: var(--hero-fg); padding-block: clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.25fr 1fr; } }
.hero .wrap > div { min-width: 0; }
/* The logo's weight contrast: <b> carries the heavy half of a headline, the rest stays light. */
.hero h1 { color: var(--hero-title); font-size: clamp(2.6rem, 6.4vw, 4.6rem); letter-spacing: -0.04em; line-height: 1.02; font-weight: 300; }
.hero h1 b { font-weight: 850; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--hero-soft); max-width: 38ch; }
.hero .icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.35); margin-bottom: 24px; display: block; }
.hero .meta { color: var(--hero-soft); font-size: 0.95rem; margin-top: 18px; }
.hero a:not(.button):not(.featured) { color: var(--hero-accent); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--hero-soft); color: var(--hero-fg); background: transparent;
}
.button:hover { border-color: var(--hero-fg); }
.button.primary { background: var(--hero-accent); border-color: var(--hero-accent); color: var(--hero-accent-fg); }
.button.primary:hover { background: var(--hero-accent-hover); border-color: var(--hero-accent-hover); }
.button.disabled { opacity: 0.85; cursor: default; }
.section .button { border-color: var(--line); color: var(--fg); }
.section .button.primary { background: var(--solid); border-color: var(--solid); color: var(--solid-fg); }

/* The featured app under the hero's phone, on the home page. */
.feature-col { display: grid; justify-items: center; gap: 18px; }
.featured {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px;
  border: 1px solid var(--frame-line); border-radius: 999px;
  color: var(--hero-fg); text-decoration: none; font-weight: 600; line-height: 1.2;
}
.featured:hover { border-color: var(--hero-soft); }
.featured img { border-radius: 9px; }
.featured small { display: block; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--hero-soft); margin-bottom: 2px; }

/* Screenshots: a phone frame in the hero, and a swipeable strip further down. */

.phone {
  justify-self: center;
  width: min(290px, 100%);
  aspect-ratio: 1080 / 2424;
  background: var(--frame);
  border-radius: 36px;
  padding: 11px;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.45), inset 0 0 0 2px var(--frame-line);
}
.phone .shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px; }

.shots {
  list-style: none; margin: 32px 0 0; padding: 4px 0 16px;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(240px, 66vw); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--accent) transparent;
}
.shots li { scroll-snap-align: start; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgb(0 0 0 / 0.16); }
.shots figcaption { margin-top: 12px; color: var(--fg-soft); font-size: 0.95rem; line-height: 1.4; }

/* Sections and cards */

.section { padding-block: clamp(44px, 6vw, 80px); }
.section.band { background: var(--bg-band); }
.section h2 { margin-top: 0; }
.section .intro { color: var(--fg-soft); max-width: 60ch; font-size: 1.1rem; }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 32px; padding: 0; list-style: none; }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-top: 0; display: flex; align-items: center; gap: 10px; }
.card p { margin: 0; color: var(--fg-soft); }
.card .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--solid); color: var(--solid-fg); font-size: 0.9rem; font-weight: 700; flex: none; }

.pro-badge { display: inline-block; background: var(--accent); color: var(--accent-fg); border-radius: 999px; padding: 2px 10px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; vertical-align: middle; }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.4em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.checklist li::after { content: ""; position: absolute; left: 5px; top: calc(0.4em + 4px); width: 8px; height: 5px; border-left: 2px solid var(--accent-fg); border-bottom: 2px solid var(--accent-fg); transform: rotate(-45deg); }

.two-col { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col > * { min-width: 0; }

/* Articles: the privacy policy, changelog and support pages */

.article { padding-block: clamp(32px, 5vw, 64px); }
.article h1 { margin-bottom: 0.25em; }
.article .lead { color: var(--fg-soft); font-size: 1.15rem; margin-bottom: 2em; }
.article h2 { font-size: 1.4rem; letter-spacing: -0.01em; margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); }
.article ul { padding-left: 1.3em; }
.article li { margin-bottom: 0.5em; }
.article li::marker { color: var(--accent); }

details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); margin-bottom: 12px; }
details summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-weight: 700; }
details[open] summary::after { content: "–"; }
details .answer { padding: 0 18px 16px; color: var(--fg-soft); }
details .answer p:last-child { margin-bottom: 0; }

.notice { border-left: 4px solid var(--accent); background: var(--bg-card); padding: 12px 18px; border-radius: 0 12px 12px 0; }

/* Home: the brand page */

.apps { display: grid; gap: 16px; }
.app-tile { display: grid; gap: 24px; grid-template-columns: 88px 1fr auto; align-items: center; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.app-tile > div { min-width: 0; }
.app-tile img { width: 88px; height: 88px; border-radius: 20px; }
.app-tile h3 { margin: 0 0 0.3em; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.app-tile h3 a { color: var(--fg); text-decoration: none; }
.app-tile h3 a:hover { text-decoration: underline; }
.app-tile p { color: var(--fg-soft); margin-bottom: 0.75em; max-width: 62ch; }
.app-tile .links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.95rem; }
.app-tile .ver { font-family: var(--mono); font-size: 0.8125rem; color: var(--fg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; align-self: start; }
@media (max-width: 640px) {
  .app-tile { grid-template-columns: 1fr; gap: 16px; }
  .app-tile img { width: 64px; height: 64px; border-radius: 15px; }
  .app-tile .ver { justify-self: start; grid-row: 2; }
}

/* Principles: ruled columns rather than boxes. */
.principles { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.principles li { border-top: 2px solid var(--fg); padding-top: 18px; color: var(--fg-soft); }
.principles strong { display: block; margin-bottom: 8px; font-size: 1.1rem; color: var(--fg); letter-spacing: -0.01em; }

.big-404 { font-size: clamp(4rem, 15vw, 8rem); font-weight: 850; letter-spacing: -0.04em; color: var(--fg); line-height: 1; margin: 0; }
.big-404 .dot { background: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .button, .featured, .site-header nav a, .app-nav .links a { transition: background-color 150ms, border-color 150ms, color 150ms; }
}

/* Beta call: numbered steps, used on the overview band and the beta page. */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; color: var(--fg-soft); }
.steps li strong { color: var(--fg); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -0.1em;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--solid); color: var(--solid-fg); font-size: 0.9rem; font-weight: 700;
}
.beta-band .two-col { align-items: center; }
.beta-band .steps { margin-top: 0; }
.article .steps { padding-left: 0; }
.article .steps li { margin-bottom: 0; }
