/* PriceDrift — shared sub-page skin.
   Applies the editorial design system (cream + ink + Newsreader, drifting Drift
   wordmark) on top of app.css to the chrome (masthead, footer, prose) of
   privacy, impressum, dashboard, and any other sub-page.

   Loaded AFTER app.css so its tokens win for the surface it cares about.
   The dashboard's inner UI (cards, buttons) keeps the app.css look — that
   skin is tuned for that view, and the chrome only is unified here. */

:root {
  color-scheme: light;

  --cream: #f4f0e6;
  --paper: #faf7ed;
  --ink: #1a1a17;
  --ink-soft: #2e2b24;
  --muted: #6b6759;
  --red: #a23a24;
  --r1: #1a1a17;
  --r2: #c6c3b5;

  --d-bg: #1a1a17;
  --d-text: #e8e3d6;
  --d-soft: #a8a497;

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --zA: 1.45fr;
  --zB: 6fr;
  --zC: 4.4fr;
  --gut: 36px;
  --measure: 488px;
}

/* ---------- reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/27px var(--text);
  font-variation-settings: "opsz" 16;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
hr {
  border: 0;
  margin: 0;
}
.r0 {
  border-top: 1px solid var(--r1);
}
.r1 {
  border-top: 1px solid var(--r1);
}
.r2 {
  border-top: 1px solid var(--r2);
}

/* ---------- wordmark ----------
   The drifting letters of Drift step a little further off the baseline.
   Same lockup as the landing page masthead and footer. */
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 22;
  font-size: 25px;
  line-height: 24px;
  letter-spacing: -0.034em;
  text-decoration: none;
  white-space: nowrap;
  margin-left: -2px;
  color: var(--ink);
}
.wordmark .wd span {
  position: relative;
  display: inline-block;
}
.wordmark .wd span:nth-child(2) {
  top: 0.025em;
}
.wordmark .wd span:nth-child(3) {
  top: 0.05em;
}
.wordmark .wd span:nth-child(4) {
  top: 0.075em;
}
.wordmark .wd span:nth-child(5) {
  top: 0.1em;
}

/* ---------- masthead ----------
   Same three-zone grid as the landing page: wordmark on the rail, nav on
   cols 2-3. On wide screens the nav hugs the right edge; on narrow it
   drops under the wordmark. */
.mast {
  display: grid;
  align-items: baseline;
  padding: 34px 0 22px;
  grid-template-columns: minmax(0, var(--zA)) minmax(0, var(--zB)) minmax(
      0,
      var(--zC)
    );
}
.mast .links {
  grid-column: 2/-1;
  padding-left: var(--gut);
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 30px;
  font: 400 15px/24px var(--text);
  letter-spacing: 0;
  color: var(--ink-soft);
}
.mast .links a {
  text-decoration: none;
  white-space: nowrap;
}
.mast .links a:hover {
  color: var(--red);
}
.mast .links a.login {
  color: var(--ink-soft);
}
.mast .links a.login:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mast .links a.start {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* a small rail status, e.g. dashboard's "last sync" caption.
   Lives outside the masthead so the 3-col grid stays clean. */
.status {
  font: 400 11px/22px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 8px;
  min-height: 22px;
}
.status:empty {
  display: none;
}

/* ---------- prose (legal / dashboard text) ---------- */
.doc h1 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 72;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 24px 0 6px -2px;
  color: var(--ink);
  text-wrap: balance;
}
.doc .dateline {
  font: 400 11px/18px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 56px;
}
.doc h2 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 36;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 56px 0 14px;
  color: var(--ink);
}
.doc h2:first-of-type {
  margin-top: 32px;
}
.doc p {
  font: 400 17px/27px var(--text);
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.doc p a,
.doc li a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--r2);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.doc p a:hover,
.doc li a:hover {
  border-bottom-color: var(--red);
  color: var(--red);
}
.doc ul,
.doc ol {
  padding-left: 22px;
  margin: 0 0 18px;
}
.doc li {
  font: 400 17px/27px var(--text);
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.doc li b {
  color: var(--ink);
  font-weight: 500;
}
.doc address {
  font: 400 17px/27px var(--text);
  color: var(--ink-soft);
  font-style: normal;
  margin: 0 0 18px;
}

/* ---------- section-sign eyebrow ----------
   Reskin of the old orange/green eyebrow to a small mono caps line —
   same role as the landing page's rail labels. */
.section-sign {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
  font: 400 10px/16px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-sign .num {
  color: var(--red);
  font-weight: 500;
}
.section-sign .rule {
  flex: 1;
  height: 1px;
  background: var(--r2);
  align-self: center;
  margin-left: 6px;
}
.section-sign.center {
  justify-content: center;
}
.section-sign.center .rule {
  display: none;
}

/* ---------- footer ---------- */
.site-foot {
  padding: 32px 0 48px;
  margin-top: 80px;
  border-top: 1px solid var(--r1);
}
.site-foot .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font: 400 14px/22px var(--text);
  color: var(--muted);
}
.site-foot .links {
  display: flex;
  gap: 22px;
}
.site-foot .links a,
.site-foot a[href^="mailto:"] {
  color: var(--ink-soft);
  text-decoration: none;
}
.site-foot .links a:hover,
.site-foot a[href^="mailto:"]:hover {
  color: var(--red);
}

/* ---------- dashboard chrome only ----------
   The dashboard's main area (#dash-root) keeps its own app.css skin.
   We only restyle the page background and a couple of utilities that
   dashboard.js doesn't touch. */
main {
  position: relative;
  z-index: 1;
}
#dash-root {
  margin-top: 24px;
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .mast .links {
    gap: 24px;
  }
}
@media (max-width: 1080px) {
  :root {
    --gut: 28px;
  }
  .mast .links {
    gap: 22px;
  }
}
@media (max-width: 900px) {
  .mast {
    display: flex;
    flex-wrap: wrap;
    row-gap: 14px;
    padding: 26px 0 18px;
  }
  .mast .links {
    width: 100%;
    padding-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 22px;
  }
  .doc h1 {
    margin-top: 18px;
  }
  .doc .dateline {
    margin-bottom: 36px;
  }
  .doc h2 {
    margin-top: 36px;
  }
}
@media (max-width: 620px) {
  .wrap {
    padding: 0 22px;
  }
  .mast {
    padding: 22px 0 16px;
  }
  .wordmark {
    font-size: 22px;
  }
  .mast .links {
    gap: 12px 18px;
    font-size: 14px;
  }
  .doc h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .doc h2 {
    font-size: 22px;
  }
  .site-foot {
    margin-top: 56px;
    padding: 24px 0 40px;
  }
  .site-foot .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
