/* Guardian website, v3 look (1 Dec 2026): the apps' design language on the web.
 *
 * Loaded AFTER site.css, only by the pages that have moved to it (/guardian, /beta, /support;
 * docs/website-design.md). Everything else keeps site.css alone, so the guardian dashboard
 * (/circle) and the legal pages are untouched.
 *
 * The rules are the apps' (docs/mobile-design-language.md): dark only, near-black page,
 * monochrome white text with two greys, ONE gold glow, glass cards (faint white, a fine light
 * edge, a sheen in one corner), Urbanist used light, white rounded buttons. Gold stays the
 * colour of the mark, the glow and small labels, which is why --primary is left gold here and
 * buttons get their own white.
 */

@font-face { font-family: "Urbanist"; font-weight: 200; font-display: swap; src: url("fonts/Urbanist-ExtraLight.ttf") format("truetype"); }
@font-face { font-family: "Urbanist"; font-weight: 300; font-display: swap; src: url("fonts/Urbanist-Light.ttf") format("truetype"); }
@font-face { font-family: "Urbanist"; font-weight: 400; font-display: swap; src: url("fonts/Urbanist-Regular.ttf") format("truetype"); }
@font-face { font-family: "Urbanist"; font-weight: 500; font-display: swap; src: url("fonts/Urbanist-Medium.ttf") format("truetype"); }

:root, :root.force-dark {
  --bg: #0A0B0D;
  --card: rgba(255, 255, 255, 0.045);
  --inset: rgba(255, 255, 255, 0.065);
  --text: #F4F3EF;
  --text2: #A1A6AE;
  --text3: #6F757E;
  --gold: #CFB881;
  --primary: #CFB881;
  --white: #F4F3EF;
  --hair: rgba(255, 255, 255, 0.08);
  --edge: rgba(255, 255, 255, 0.1125);
  --r-card: 26px;
  --head: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

body { background: var(--bg); font-family: var(--body); font-weight: 400; }
h1, h2, h3 { font-family: var(--head); font-weight: 300; letter-spacing: -.015em; }
.lead { font-weight: 300; }

/* ---- buttons: white and fully round; secondary is glass ----------------------------- */
.btn { border-radius: 999px; background: var(--white); border-color: var(--white); color: #0A0B0D;
       font-family: var(--body); font-weight: 500; }
.btn.secondary { background: var(--card); border-color: var(--edge); color: var(--text); }
.btn.text { background: transparent; border-color: transparent; color: var(--text); }
.nav a:not(.btn) { color: var(--text2); font-family: var(--body); font-size: 16px; font-weight: 400; }
.nav a:not(.btn):hover { color: var(--text); }

/* ---- glass ------------------------------------------------------------------------- */
.card, .glass {
  background-color: var(--card);
  background-image: radial-gradient(farthest-corner at 0 0, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 85%);
  border: 1px solid var(--edge); border-radius: var(--r-card);
}
.note { background: var(--card); border: 1px solid var(--edge); border-radius: 20px; }

/* The up-right arrow the apps use for "there's more behind this". */
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--text2); text-decoration: none; }
.more::after { content: ""; width: 9px; height: 9px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
               transform: translateY(1px); clip-path: none; }
.more:hover { color: var(--text); }

/* ---- the one glow: gold, behind the top of the page, breathing ----------------------- */
.page-glow { position: fixed; left: 50%; top: -28vh; width: 120vmax; height: 90vmax; transform: translateX(-50%);
             background: radial-gradient(closest-side, rgba(207, 184, 129, .16), rgba(207, 184, 129, 0) 70%);
             pointer-events: none; z-index: -1; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .86; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.07); } }

/* ---- segmented control: a glass track and a white capsule --------------------------- */
.seg { background: var(--card); border: 1px solid var(--edge); border-radius: 999px; padding: 5px; gap: 4px; }
.seg button { border-radius: 999px; height: 44px; font-family: var(--body); font-weight: 400; color: var(--text2); }
.seg button[aria-selected="true"] { background: var(--white); border-color: var(--white); color: #0A0B0D; font-weight: 500; }
.seg button .tick { display: none; }
.seg button { transition: color .3s var(--ease); }
.seg.glide .seg-pill { background: var(--white); border-color: var(--white); border-radius: 999px; }
.seg.glide button[aria-selected="true"] { background: transparent; border-color: transparent; }
.seg button svg { width: 18px; height: 18px; }

/* ---- app screenshots ---------------------------------------------------------------- */
.shot { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--edge);
        background: #0A0B0D; box-shadow: 0 30px 80px -30px rgba(207, 184, 129, .18); }

/* ---- small labels and footers ------------------------------------------------------- */
.eyebrow, .kicker { color: var(--gold); font-family: var(--body); font-weight: 500; }
.site-foot { border-top-color: var(--hair); }
.site-head { border-bottom-color: var(--hair); }

@media (prefers-reduced-motion: reduce) { .page-glow { animation: none; } }

/* Small phones: the header's brand and sign-in button must fit side by side. */
@media (max-width: 440px) {
  .site-head .btn.small { padding: 0 13px; font-size: 14px; height: 40px; }
  .site-head .nav { gap: 6px; }
}

/* ---- forms, rows, tiles, pills, banners (the guardian dashboard and its sign-in; 1 Dec 2026)
   The apps' versions: fields are inset glass with a fine edge that turns white on focus; list
   rows sit in one glass card with hairlines between; icon tiles are round; pills are quiet
   glass with a fine edge (clay still means "someone needs to act"). */
label, .label { font-family: var(--body); font-weight: 500; }
.field { background-color: var(--inset); border: 1px solid var(--edge); border-radius: 16px; font-family: var(--body); }
.field::placeholder { color: var(--text3); }
.field:focus { border-width: 1px; border-color: rgba(255, 255, 255, .55); box-shadow: 0 0 0 3px rgba(255, 255, 255, .06); }
select.field option { background: #15171A; color: var(--text); }
.list > * + * { border-top-color: var(--hair); }
.tile { border-radius: 50%; background: var(--inset); border: 1px solid var(--edge); color: var(--text); }
.item-title, .section-title { font-weight: 500; }
.pill { border: 1px solid var(--edge); background: var(--card); font-weight: 500; }
.pill.solid { border-color: var(--attention); background: var(--attention); }
.pill.dashed, .pill.soon { border: 1px dashed var(--edge); }
.banner { background: var(--card); border: 1px solid var(--edge); border-radius: 18px; }
.banner.attention { border-color: var(--attention); }
.err { color: var(--danger); }
.btn.small { height: 42px; }
.btn.secondary:hover, .btn.text:hover { opacity: 1; background: rgba(255, 255, 255, .07); }
