/* =========================================================
   Subtle News — Static Site Stylesheet
   System fonts only
   ========================================================= */

:root {
  --bg:           #F5F1EA;
  --bg-alt:       #EDE7DC;
  --ink:          #1A1612;
  --ink-soft:     #4A4338;
  --ink-muted:    #7A7164;
  --rule:         #D9CFBE;
  --accent:       #3D2A5E;   /* deep aubergine, evolved from the brand purple */
  --accent-soft:  #6B4F8F;
  --gold:         #B8884A;   /* warm metallic for small accents */
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Layout containers ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
h1.brand {
  margin: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}

.site-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--rule);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-weight: 400;
  font-size: 34px;
  letter-spacing: -0.02em;
  font-style: italic;
  color: var(--accent);
}

.brand small {
  display: block;
  font-style: normal;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 2px;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav a:hover { color: var(--accent); }

/* ---------- Masthead / tagline ---------- */
.masthead {
  text-align: center;
  padding: 56px 0 24px;
}

.masthead .date-line {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.masthead .date-line::before,
.masthead .date-line::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--rule);
  vertical-align: middle;
  margin: 0 18px;
}

.masthead h1 {
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.masthead h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.masthead .tagline {
  margin-top: 18px;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 20px;
}

/* ---------- Featured article ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  margin: 64px 0;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--rule);
}

.featured .feature-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-alt);
}

.featured .feature-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}

.featured .feature-image:hover img { transform: scale(1.03); }

.featured .kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 500;
}

.featured h2 {
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.featured h2 a { color: var(--ink); }
.featured h2 a:hover { color: var(--accent); }

.featured .excerpt {
  font-size: 19px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.featured .meta {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Section heading ---------- */
.section-title {
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
  margin: 48px 0 32px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ---------- Article grid ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
  margin-bottom: 72px;
}

.card { display: flex; flex-direction: column; }

.card .card-image {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 18px;
}

.card .card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}

.card:hover .card-image img { transform: scale(1.04); }

.card h3 {
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); }

.card .excerpt {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  line-height: 1.55;
}

.card .meta {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: auto;
}

/* ---------- Pagination ---------- */
.pagination {
  text-align: center;
  margin: 48px 0 72px;
}

.pagination a {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all .25s ease;
}

.pagination a:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ---------- Article page ---------- */
.article-hero {
  text-align: center;
  padding: 56px 0 40px;
}

.article-hero .kicker {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.article-hero h1 {
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 880px;
  margin: 0 auto 24px;
}

.article-hero .byline {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.article-hero .byline strong {
  color: var(--ink-soft);
  font-weight: 500;
}

.lead-image {
  margin: 32px auto 56px;
  max-width: 1180px;
  padding: 0 32px;
}

.lead-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lead-image figcaption {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-muted);
  text-align: center;
  padding-top: 14px;
}

.article-body {
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.article-body p { margin-bottom: 1.5em; }

.article-body p:first-of-type::first-letter {
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-weight: 400;
  font-size: 5.2em;
  line-height: 0.85;
  float: left;
  padding: 0.08em 0.12em 0 0;
  color: var(--accent);
}

.article-body em { color: var(--accent); }
.article-body strong { color: var(--ink); font-weight: 600; }

.article-body figure {
  margin: 40px -40px;
}

.article-body figure img { width: 100%; }

.article-body figcaption {
  font-size: 14px;
  font-style: italic;
  color: var(--ink-muted);
  padding-top: 12px;
}

.article-meta-foot {
  margin: 64px 0;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.article-meta-foot div span:first-child {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  margin-bottom: 6px;
  color: var(--gold);
}

.article-meta-foot div span:last-child {
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.article-meta-foot a { color: var(--ink-soft); }
.article-meta-foot a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 56px 0 32px;
  margin-top: 80px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer .brand {
  color: var(--bg);
}

.site-footer .brand small {
  color: rgba(245, 241, 234, 0.6);
}

.site-footer nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

.site-footer nav a {
  color: rgba(245, 241, 234, 0.75);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-footer nav a:hover { color: var(--gold); }

.site-footer .copyright {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: rgba(245, 241, 234, 0.4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid rgba(245, 241, 234, 0.1);
}

/* ---------- Embedded video (16:9) ---------- */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 32px 0;
  background: var(--bg-alt);
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- Article subheads ---------- */
.article-body h3 {
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  margin: 40px 0 16px;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.article-body h4 {
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: 21px;
  margin: 32px 0 12px;
  color: var(--ink);
}

.article-body h5 {
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: 22px;
  margin: 36px 0 14px;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.article-body ul, .article-body ol {
  margin: 0 0 1.5em 1.5em;
  padding-left: 1em;
}
.article-body li { margin-bottom: 0.4em; }

/* ---------- Invocation / liturgical pre block ---------- */
.invocation {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.75;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 28px 32px;
  margin: 24px 0 32px;
  color: var(--ink-soft);
  white-space: pre-wrap;
  overflow-x: auto;
}

/* ---------- Info table (courses) ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 16px;
}
.info-table th,
.info-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.info-table th {
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  width: 30%;
  white-space: nowrap;
}

/* ---------- Article prev/next nav ---------- */
.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 48px 0;
  padding-top: 32px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.article-nav a {
  color: var(--accent);
}
.article-nav .back-home {
  color: var(--ink-muted);
  font-style: italic;
  letter-spacing: 0.15em;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .featured {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-body figure { margin: 32px 0; }
}

@media (max-width: 600px) {
  .container, .container-narrow { padding: 0 22px; }
  body { font-size: 17px; }
  .nav ul { gap: 18px; }
  .nav a { font-size: 12px; }
  .article-grid { grid-template-columns: 1fr; }
  .site-header .container { justify-content: center; text-align: center; }
  .brand { font-size: 28px; }
  .article-body { font-size: 17px; }
}
