/* ==========================================================================
   Prixette — shared stylesheet
   Off-white ground, near-black ink, deep bordeaux accent.
   ========================================================================== */

:root {
  --ground: #FAF7F2;
  --ground-alt: #F3EEE6;
  --ink: #17130F;
  --ink-soft: #4C463F;
  --ink-faint: #8A8378;
  --accent: #7C2231;
  --accent-dark: #5E1A25;
  --rule: #E3DCD0;
  --max: 1080px;
  --serif: "Libre Caslon Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.005em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

.narrow { max-width: 720px; }

/* --- Header / nav ------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--ground);
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding-top: 1.6rem;
  padding-bottom: 1.4rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.wordmark:hover { text-decoration: none; }
.wordmark .dot { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  padding: 6rem 0 5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
  max-width: 18ch;
  margin: 0 auto 1.5rem;
}

.hero .lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 auto;
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* --- Signup -------------------------------------------------------------- */

.signup {
  background: var(--ground-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 3.5rem 0;
  text-align: center;
}

.signup h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.signup p  { color: var(--ink-soft); max-width: 32rem; margin: 0 auto 1.75rem; }

.signup-form {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.signup-form input[type="email"] {
  font: inherit;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rule);
  background: var(--ground);
  color: var(--ink);
  min-width: 17rem;
}
.signup-form input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.btn {
  display: inline-block;
  font: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #FBF6F0;
  border: none;
  padding: 0.8rem 1.75rem;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
a.btn { color: #FBF6F0; }

.signup .fineprint {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin: 1rem auto 0;
}

/* --- Sections ------------------------------------------------------------ */

.section { padding: 4.5rem 0; }

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-head h2 { font-size: 2rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  counter-reset: step;
}

.step { counter-increment: step; }

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 2.25rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.step h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.step p  { color: var(--ink-soft); font-size: 0.98rem; }

/* --- Journal cards ------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  border: 1px solid var(--rule);
  background: var(--ground);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.card .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); text-decoration: none; }
.card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }

.card .more {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Page & article layout ----------------------------------------------- */

.page-head {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); max-width: 24ch; margin-left: auto; margin-right: auto; }
.page-head .lede { color: var(--ink-soft); max-width: 38rem; margin: 1.25rem auto 0; font-size: 1.1rem; }

.prose { padding: 3.5rem 0 5rem; }
.prose h2 { font-size: 1.7rem; margin: 2.75rem 0 1rem; }
.prose h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.prose p  { margin-bottom: 1.25rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem 1.4rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.75rem 0;
  color: var(--ink-soft);
  font-style: italic;
}
.prose strong { font-weight: 600; }
.prose .datestamp {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2rem;
}
.prose hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

.article-nav {
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
  margin-top: 3rem;
  font-size: 0.95rem;
}

/* --- Principles list ------------------------------------------------------ */

.principles { list-style: none; margin: 0; }
.principles li {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0;
  margin: 0;
}
.principles li:last-child { border-bottom: 1px solid var(--rule); }
.principles h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.principles p { color: var(--ink-soft); margin: 0; }

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--ground-alt);
  padding: 3rem 0 2.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.site-footer .cols {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer .wordmark { font-size: 1.35rem; }

.site-footer nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-footer nav a { color: var(--ink-soft); }
.site-footer nav a:hover { color: var(--accent); }

.site-footer .legal-line {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
  line-height: 1.8;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 820px) {
  .steps, .cards { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0 3.5rem; }
  .section { padding: 3.25rem 0; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 1.1rem; }
  .signup-form input[type="email"] { min-width: 0; width: 100%; }
  .signup-form { flex-direction: column; align-items: stretch; }
}
