/* Resume Master — the site.
 *
 * ⭐ A68 (owner, 10-03): the OLD Resume Master site's look — the last build before the rebrand
 * (draft 75ce355, 09-21; the look since 05-30): the white boxed STAMP logo, the night sky, the glass
 * bar and cards, DM Sans body, Barlow Condensed display, Instrument Serif numerals. Two changes the
 * owner asked for: the sky is STATIC (the old one was a looping video hotlinked from a third-party
 * host — public/sky.svg is generated here, scripts/site/sky.mjs), and the accent is ONE variable
 * the owner picks (the old site drew one at random per visit).
 *
 * ⛔ Fonts are self-hosted (public/fonts, OFL — licences beside them). A font CDN would send every
 * visitor's address to a third party the privacy page does not name.
 */
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/dm-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("/fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url("/fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }

:root {
  /* THE ACCENT — the owner's pick (A68, 10-03): Sky Blue. The old site's four, as it offered them:
       Sky Blue #A8D8EA · Lemon Yellow #F0EF8A · Celtic Green #88C87A · Sunset Orange #FFB07A
     Every one is a light fill with dark text on it, and ≥ 9:1 as text on the night.
     Chosen: Sky Blue. Changing it is this one line. */
  --accent: #A8D8EA;
  --on-accent: #0f0f0f;

  /* the night — the old site's hsl(201 100% 13%) */
  --night: #002842;
  --night-deep: #00131f;
  --ink: #f5f5f5;              /* text on night: 15.6:1 */
  --ink-muted: #c3ccd3;        /* 11.0:1 */
  --ink-faint: #93a3ae;        /* 6.6:1 */
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.10);
  --glass-edge: rgba(255, 255, 255, 0.10);
  --bar: rgba(0, 40, 66, 0.64);   /* the fixed bar: the night at 64 %, blurred */
  --good: #7ddba3;
  --warn: #f5c35b;
  --bad: #ff9a8b;
  --radius: 12px;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "DM Sans", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  /* type scale (1.25) */
  --t-xs: 0.8rem; --t-sm: 0.875rem; --t-md: 1rem; --t-lg: 1.25rem; --t-xl: 1.563rem; --t-2xl: 2rem; --t-3xl: 3rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: 72px; }
body {
  font-family: var(--font-body); font-size: var(--t-md); line-height: 1.55; color: var(--ink);
  background: var(--night-deep); min-height: 100vh;
}
/* The night sky — static: a ground, the star field (public/sky.svg), and a low warm glow where the old
   film's lamp-lit field sat. One local image; no video; nothing from another origin. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("/sky.svg") center top / cover no-repeat,
    radial-gradient(120% 60% at 50% 115%, rgba(255, 196, 120, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse at 50% -10%, #00466e 0%, var(--night) 45%, var(--night-deep) 100%);
}
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 76px 16px 0; }

/* ── the stamp: the old site's logo — a white box, a black border, tilted 2°, Barlow Condensed 800
   italic capitals; "esume" and "aster" fold away to leave RM ── */
.stamp { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.stamp__box {
  display: inline-flex; align-items: center; overflow: hidden;
  background: #ffffff; border: 2.5px solid #0f0f0f; border-radius: 2px; transform: rotate(-2deg);
  padding: 3px 10px; color: #0f0f0f;
  font: italic 800 15px/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
.stamp__fold {
  display: inline-block; overflow: hidden; vertical-align: bottom; max-width: 5em; opacity: 1;
  transition: max-width 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 350ms ease;
}
.stamp--lg .stamp__box { font-size: 20px; padding: 5px 14px; }
.nav--scrolled .stamp__fold { max-width: 0; opacity: 0; }

/* ── the bar ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 56px;
  display: flex; align-items: center; gap: 1.5rem; padding: 0 1.5rem;
  background: var(--bar); border-bottom: 1px solid var(--glass-edge);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.nav__links { display: flex; gap: 0.25rem; flex: 1; }
.nav__link {
  padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: var(--t-sm); font-weight: 500;
  color: var(--ink-muted); text-decoration: none; white-space: nowrap;
}
.nav__link:hover, .nav__link--active { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav__account { display: flex; align-items: center; gap: 0.5rem; font-size: var(--t-sm); }
.nav__menu { display: none; position: relative; }
.nav__menu summary { list-style: none; cursor: pointer; font-size: var(--t-sm); font-weight: 700; color: var(--ink);
  padding: 6px 12px; border: 1px solid var(--glass-edge); border-radius: 999px; }
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu-panel { position: absolute; top: calc(100% + 8px); left: 0; min-width: 190px; padding: 6px;
  display: flex; flex-direction: column; background: rgba(0, 30, 50, 0.92); }
.nav__menu-panel a { color: var(--ink); text-decoration: none; padding: 9px 12px; border-radius: 8px; font-size: var(--t-sm); }
.nav__menu-panel a:hover { background: rgba(255, 255, 255, 0.08); }
.account-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.balance { font-weight: 700; color: var(--accent); }

/* ── the hero: the stamp, large, over the sky ── */
.hero { min-height: 46vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 1rem; padding: 48px 0 32px; animation: fade-rise .8s ease-out both; }
.hero__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 6vw, var(--t-3xl));
  letter-spacing: -0.02em; line-height: 1.05; margin: 0.5rem 0 0; }
.hero--small { min-height: 0; padding: 32px 0 20px; }
.hero--small h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 6vw, var(--t-3xl));
  letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
.hero__tagline { color: var(--ink-muted); max-width: 60ch; margin: 0; }
.hero__cta {
  margin-top: 0.5rem; padding: 10px 24px; border-radius: 999px; font-weight: 700; font-size: var(--t-sm);
  color: var(--ink); text-decoration: none; border: 1px solid var(--glass-edge); background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.hero__cta:hover { background: rgba(255, 255, 255, 0.1); }
.crumbs { font-size: var(--t-sm); color: var(--ink-faint); margin: 16px 0 0; }
.crumbs a { color: var(--ink-muted); }

/* ── glass ── */
.glass {
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 12px; }
.tab { border: 1px solid var(--glass-edge); background: rgba(255, 255, 255, 0.04); color: var(--ink-muted); border-radius: 999px;
  padding: 7px 14px; font: inherit; font-size: var(--t-sm); font-weight: 700; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tab .tag { font-size: var(--t-xs); font-weight: 500; opacity: 0.75; margin-left: 6px; }

.panel { padding: 22px; margin-bottom: 18px; animation: fade-rise .6s ease-out both; }
.panel h2, .display { font-family: var(--font-display); font-weight: 800; font-size: var(--t-2xl); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 6px; }
.panel h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--t-lg); margin: 18px 0 6px; }
.panel .lede { color: var(--ink-muted); margin: 0 0 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: var(--t-sm); color: var(--ink-muted); }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  font: inherit; font-size: var(--t-sm); color: var(--ink); background: rgba(0, 10, 18, .45); color-scheme: dark;
  border: 1px solid var(--glass-edge); border-radius: 10px; padding: 9px 11px; width: 100%;
}
textarea { min-height: 160px; resize: vertical; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.btn { font: inherit; font-size: var(--t-sm); font-weight: 700; border-radius: 999px; padding: 8px 18px; cursor: pointer;
  border: 1px solid var(--glass-edge); background: var(--glass-strong); color: var(--ink); text-decoration: none; display: inline-block; }
.btn.ghost { background: transparent; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.note { font-size: var(--t-xs); color: var(--ink-faint); }
.msg { font-size: var(--t-sm); margin-top: 10px; }
.msg.bad { color: var(--bad); }
.msg.good { color: var(--good); }

.band { display: inline-block; font-weight: 700; border-radius: 999px; padding: 4px 12px; font-size: var(--t-sm); }
.band.strong { background: rgba(125, 219, 163, .16); color: var(--good); }
.band.moderate { background: rgba(245, 195, 91, .16); color: var(--warn); }
.band.weak { background: rgba(255, 154, 139, .14); color: var(--bad); }
.band.nosignal { border: 1px dashed var(--glass-edge); color: var(--ink-muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.chip { font-size: var(--t-xs); padding: 2px 8px; border-radius: 999px; background: var(--glass-strong); }
.chip.miss { color: var(--bad); }
.result { margin-top: 16px; padding: 16px; }
iframe.preview { width: 100%; height: 560px; border: 0; border-radius: 10px; background: #fff; }
table.ledger { width: 100%; border-collapse: collapse; font-size: var(--t-xs); }
table.ledger td, table.ledger th { padding: 6px 8px; border-top: 1px solid var(--glass-edge); text-align: left; }
.docs li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--glass-edge); }
.docs { list-style: none; padding: 0; margin: 0; }
.doc h2, .doc h3, .doc h4 { font-family: var(--font-display); font-weight: 800; }

/* ── the old site's numbered cards: a serif numeral, a short accent rule, a title, a line ── */
.everything { padding: 48px 0 24px; text-align: center; }
.everything__sub { color: var(--ink-muted); font-size: var(--t-sm); margin: 0 0 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; text-align: left; margin-bottom: 24px; }
.cards--four { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card {
  display: flex; flex-direction: column; padding: 24px 22px; border-radius: var(--radius); text-decoration: none; color: var(--ink);
  background: var(--glass); border: 1px solid var(--glass-edge);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: background 180ms ease, transform 180ms ease;
}
.card:hover { background: var(--glass-strong); transform: translateY(-2px); }
.card__num { font-family: var(--font-serif); font-size: 28px; line-height: 1; letter-spacing: -0.02em; color: var(--accent); margin-bottom: 4px; }
.card__rule { width: 24px; height: 1.5px; background: var(--accent); opacity: 0.5; margin-bottom: 14px; }
.card__title { font-weight: 700; font-size: var(--t-sm); margin-bottom: 6px; }
.card__desc { font-size: var(--t-xs); color: var(--ink-muted); line-height: 1.6; }

.steps { margin: 0 0 16px; padding-left: 1.3em; color: var(--ink-muted); font-size: var(--t-sm); display: grid; gap: 2px; }
.notes p { color: var(--ink-muted); }
.more { padding: 8px 0 24px; }
.more h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--t-xl); margin: 0 0 6px; }
.more__links { color: var(--ink-faint); font-size: var(--t-sm); line-height: 2; }

.foot { border-top: 1px solid var(--glass-edge); margin-top: 32px; padding: 28px 16px 40px; text-align: center;
  color: var(--ink-faint); font-size: var(--t-xs); background: rgba(0, 19, 31, 0.5); }
.foot p { max-width: 640px; margin: 12px auto 0; }
.foot__links a { color: var(--ink-muted); }
[hidden] { display: none !important; }

/* the PDF toolkit on the night (src/pdf-toolkit/styles.css carries its structure) */
.pdf-tools {
  --pt-host-surface: var(--glass-strong); --pt-host-text: var(--ink); --pt-host-muted: var(--ink-muted);
  --pt-host-border: var(--glass-edge); --pt-host-accent: var(--accent); --pt-host-on-accent: var(--on-accent);
  --pt-host-good: var(--good); --pt-host-bad: var(--bad); --pt-host-radius: var(--radius);
}
.pdf-tools .pt-text, .pdf-tools .pt-file, .pdf-tools select { color-scheme: dark; }

@keyframes fade-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero, .panel { animation: none; } .stamp__fold, .card { transition: none; } }
@media (max-width: 720px) {
  .nav { gap: 0.75rem; padding: 0 0.75rem; }
  .nav__links { display: none; }
  .nav__menu { display: block; }
  .nav .stamp__fold { max-width: 0; opacity: 0; }   /* RM in the bar on a phone, as the old site did */
  .nav__account { margin-left: auto; }
  #acct-signed-in #acct-email { display: none; }
}
@media (max-width: 520px) { .panel { padding: 14px; } iframe.preview { height: 420px; } .btn { padding: 7px 14px; } }
