/* Ironly — site tokens.
   Sampled from the logo artwork (docs/brand/ironly-lockup.png):
   navy #021842, orange #FF6E11, white.

   Contrast, checked against WCAG AA:
     navy on white    17.3:1  ✓ body text
     white on navy    17.3:1  ✓ body text
     orange on navy    6.2:1  ✓ body text
     orange on white   2.8:1  ✗ accents only — never body text or links

   These are deliberately NOT the values in packages/ironly_core/tokens.dart,
   which still carry the blue placeholder theme. When the apps are re-skinned to
   the real brand, these are the numbers to move over. */

:root {
  --navy: #021842;
  --navy-soft: #0b2b5c;
  --orange: #ff6e11;
  --white: #ffffff;

  --ink: var(--navy);
  --ink-muted: #5b6b85;
  --border: #dfe5ee;
  --surface-alt: #f6f8fb;

  --measure: 44rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--navy); }
a:hover { color: var(--orange); }

/* ---------------------------------------------------------------
   Landing — a full-height navy panel. Orange is legible on navy,
   so the accent can carry real weight here.
   --------------------------------------------------------------- */

.holding {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  text-align: center;
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 1.5rem;
}

/* Takes the leftover height so the lockup sits optically centred while the
   status line stays pinned to the bottom of the viewport. */
.holding-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The full lockup — badge, wordmark and tagline in one asset. Its navy
   background was flood-filled to transparent, so it sits on --navy with no
   seam and the panel colour stays changeable in one place. */
.holding .lockup {
  display: block;
  width: min(340px, 76vw);
  height: auto;
  margin: 0 auto;
}

.holding .status {
  font-size: 1rem;
  line-height: 1.6;
  color: #c8d3e4;
  max-width: 30rem;
  margin: 0 auto;
  padding-top: 1.5rem;
}


/* ---------------------------------------------------------------
   Interior pages — white, navy text, orange only as an accent rule.
   --------------------------------------------------------------- */

.site-header { background: var(--navy); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .9rem;
  padding-bottom: .9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.02em;
  color: var(--white);
  text-decoration: none;
}

/* The header badge is cut from the lockup on its own navy, so it sits on the
   navy bar seamlessly and needs no plate behind it. */
.brand img { width: 30px; height: 30px; display: block; }

.site-header nav a { color: #c8d3e4; text-decoration: none; font-size: .95rem; }
.site-header nav a:hover { color: var(--orange); }

main { padding-bottom: 4rem; }

h1 {
  font-size: clamp(1.8rem, 5vw, 2.3rem);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 2.75rem 0 .4rem;
}

h1 + .updated { margin-top: 0; }

h2 {
  font-size: 1.15rem;
  letter-spacing: -.01em;
  margin: 2.5rem 0 .6rem;
  padding-left: .7rem;
  border-left: 3px solid var(--orange);
}

.updated { color: var(--ink-muted); font-size: .9rem; margin-bottom: 2.25rem; }

main ul { padding-left: 1.2rem; }
main li { margin-bottom: .35rem; }

code {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: .1rem .35rem;
  border-radius: 5px;
  font-size: .9em;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  color: var(--ink-muted);
  font-size: .9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  justify-content: space-between;
}

.site-footer a { color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }

/* Links inside the status line (404 page). */
.holding .status a { color: var(--white); border-bottom: 1px solid #3d5580; text-decoration: none; }
.holding .status a:hover { color: var(--orange); border-bottom-color: var(--orange); }

/* The lockup is a link on the 404 page; keep it from picking up link styling. */
.holding-center a { display: block; line-height: 0; }
