/* Theopneustos — shared styles */
:root {
  --deep-pine: #14332A;
  --spruce: #1E4A3C;
  --mid-fir: #2F5D45;
  --muted-sage: #8B9A7E;
  --parchment: #F4EFE4;
  --ivory: #FAF6ED;
  --bark: #5A3E2B;
  --ink: #141C18;
  --measure: 40rem;
  --font-body: "EB Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
}

* { box-sizing: border-box; }

html {
  font-size: 18px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* —— Header —— */
.masthead {
  background: var(--deep-pine);
  color: var(--ivory);
  text-align: center;
  padding: 2.75rem 1.5rem 2.4rem;
}

.masthead-home {
  display: block;
  color: inherit;
  text-decoration: none;
}

.masthead-home:hover,
.masthead-home:focus {
  color: inherit;
  text-decoration: none;
}

.masthead-home:focus-visible {
  outline: 2px solid var(--muted-sage);
  outline-offset: 6px;
}

.mark {
  width: 28px;
  height: 34px;
  margin: 0 auto 1.15rem;
  display: block;
  color: var(--muted-sage);
}

.site-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.2rem, 8.4vw, 3.85rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
  color: var(--ivory);
}

.site-title .dot {
  font-style: italic;
  font-weight: 700;
  padding: 0 0.04em;
}

.site-pos {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--muted-sage);
}

.site-pos .pos {
  font-style: italic;
}

.site-pos .gloss {
  font-style: normal;
}

.site-sub {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  line-height: 1.35;
  color: var(--ivory);
}

.site-ref {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-sage);
}

.masthead-rule {
  width: 6.5rem;
  height: 0;
  margin: 1.2rem auto 0;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--ivory) 48%, var(--muted-sage));
}

/* —— Page layout —— */
main {
  flex: 1;
  width: min(48rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3rem 0 3.5rem;
}

.prose {
  width: min(var(--measure), 100%);
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--deep-pine);
  line-height: 1.15;
  letter-spacing: 0.005em;
}

h1 {
  font-size: clamp(1.85rem, 5vw, 2.45rem);
  margin: 0 0 1.15rem;
}

p {
  margin: 0 0 1rem;
}

.body-copy {
  font-size: 1.05rem;
  line-height: 1.75;
}

blockquote {
  margin: 1.75rem 0 0;
  padding: 1.05rem 1.2rem 1.1rem 1.25rem;
  background: var(--ivory);
  border-left: 3px solid var(--mid-fir);
  color: var(--ink);
}

blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.55;
  margin: 0;
}

blockquote cite {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-fir);
}

a {
  color: var(--mid-fir);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--deep-pine);
}

a:focus-visible {
  outline: 2px solid var(--mid-fir);
  outline-offset: 3px;
}

/* —— Footer —— */
footer {
  border-top: 1px solid color-mix(in srgb, var(--muted-sage) 50%, var(--parchment));
  text-align: center;
  padding: 1.3rem 1.5rem 2rem;
}

footer p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bark);
}

@media (max-width: 640px) {
  html { font-size: 17px; }
  .masthead { padding: 2.1rem 1.15rem 1.9rem; }
  main { width: min(48rem, calc(100% - 2rem)); padding: 2.25rem 0 2.75rem; }
  blockquote { padding: 0.95rem 1rem 1rem 1.05rem; }
  blockquote p { font-size: 1.08rem; }
}
