/* Page & Salt — pageandsalt.com
   Ledger identity. Ink blue on linen, Fraunces for display, spine caps for labels. */

:root {
  --ink: #31506E;
  --ink-soft: #5A7290;
  --linen: #F2EFE6;
  --ground: #F2ECDC;
  --rule: #D8D1BE;
  --bordeaux: #8A3338;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #DCE4EE;
    --ink-soft: #97A6B8;
    --linen: #1C1815;
    --ground: #1C1815;
    --rule: #3A342E;
    --bordeaux: #C8737A;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 4rem 1.75rem 6rem;
}

/* The binding — a 1px blind rule down the left of the column, echoing the plain binding */
.bound {
  border-left: 1px solid var(--rule);
  padding-left: 1.75rem;
}

/* Spine caps — Fraunces at optical size 9, the app's label register */
.spine {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 9, "wght" 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
  display: block;
}

.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 96, "wght" 600;
  font-size: clamp(2.1rem, 7vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
}

.tagline {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 32, "wght" 300;
  font-style: italic;
  font-size: clamp(1.05rem, 3.5vw, 1.3rem);
  color: var(--ink-soft);
  margin: 0 0 3rem;
}

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 72, "wght" 600;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}

h2 {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 24, "wght" 600;
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 3rem 0 0.75rem;
}

h3 {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 18, "wght" 600;
  font-size: 1.05rem;
  margin: 2rem 0 0.5rem;
}

p { margin: 0 0 1.1rem; }

ul {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
}

li { margin-bottom: 0.6rem; }

a {
  color: var(--ink);
  text-decoration-color: var(--ink-soft);
  text-underline-offset: 0.2em;
}

a:hover { text-decoration-color: var(--ink); }

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

strong { font-weight: 600; }

.lede {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 2.5rem;
}

.meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

/* A quiet card for the plain-language summary */
.plain {
  background: var(--linen);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.5rem 1.6rem 0.6rem;
  margin: 0 0 2.5rem;
}

@media (prefers-color-scheme: dark) {
  .plain { background: rgba(255, 255, 255, 0.035); }
}

.plain p:last-child { margin-bottom: 1.1rem; }

/* Onward links on the holding page */
.doors {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  border-top: 1px solid var(--rule);
}

.doors li {
  margin: 0;
  border-bottom: 1px solid var(--rule);
}

.doors a {
  display: block;
  padding: 1.1rem 0;
  text-decoration: none;
}

.doors .door-title {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 18, "wght" 600;
  font-size: 1.05rem;
  display: block;
}

.doors .door-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: block;
}

.doors a:hover .door-title { text-decoration: underline; text-underline-offset: 0.2em; }

footer {
  margin-top: 4.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

footer a { color: var(--ink-soft); }

.placeholder {
  color: var(--bordeaux);
  font-weight: 600;
}

@media (max-width: 34rem) {
  .page { padding: 2.75rem 1.25rem 4rem; }
  .bound { padding-left: 1.25rem; }
}
