/*
Theme Name: Augustana 500
Theme URI: https://augustana500.info/
Author: Augustana 500
Description: A scholarly commemorative theme for the five-hundredth anniversary of the Augsburg Confession.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: augustana500
*/

:root {
  --ink: #211b18;
  --oxblood: #641f29;
  --oxblood-dark: #351016;
  --red: #8b2d37;
  --gold: #b58a42;
  --paper: #f3ead7;
  --paper-light: #fcf8ef;
  --paper-deep: #e7d6b8;
  --muted: #6b5c51;
  --line: rgba(53, 16, 22, .22);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-light);
  font: 18px/1.66 var(--serif);
  text-rendering: optimizeLegibility;
}
a { color: var(--oxblood); text-underline-offset: .18em; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-wrap {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 0, rgba(255,255,255,.86), transparent 34rem),
    linear-gradient(90deg, rgba(71,48,33,.025) 1px, transparent 1px),
    var(--paper-light);
  background-size: auto, 8px 8px, auto;
}
.header-inner, .site-main, .footer-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { border-top: 7px solid var(--oxblood-dark); border-bottom: 1px solid var(--line); background: rgba(252,248,239,.96); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 1.35rem; align-items: center; min-height: 112px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid var(--gold);
  outline: 1px solid rgba(181,138,66,.42);
  outline-offset: -6px;
  background: var(--oxblood-dark);
  color: #efd38e;
  text-decoration: none;
  font: 700 1.45rem/1 var(--serif);
  letter-spacing: -.06em;
}
.brand-copy { color: var(--ink); text-decoration: none; }
.site-title { display: block; font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.04; letter-spacing: .01em; }
.site-tagline { display: block; margin-top: .42rem; color: var(--muted); font: 700 .72rem/1.35 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.menu-toggle { display: none; }
.primary-menu { display: flex; gap: 1.05rem; align-items: center; list-style: none; margin: 0; padding: 0; font: 700 .72rem/1.2 var(--sans); letter-spacing: .055em; text-transform: uppercase; }
.primary-menu a { color: var(--ink); text-decoration: none; padding: .65rem .08rem; }
.primary-menu a:hover { color: var(--red); }

.site-main { padding: 3.5rem 0 5rem; }
.a5-hero { display: grid; grid-template-columns: minmax(250px, 390px) minmax(0, 1fr); gap: clamp(2.25rem, 6vw, 6rem); align-items: center; min-height: 560px; padding: clamp(2.2rem, 6vw, 5rem) 0; }
.a5-date-mark { position: relative; display: grid; place-items: center; min-height: 390px; color: #efd38e; background: var(--oxblood-dark); border: 1px solid var(--gold); outline: 1px solid rgba(100,31,41,.28); outline-offset: 12px; box-shadow: 0 25px 55px rgba(53,16,22,.2); overflow: hidden; }
.a5-date-mark::before, .a5-date-mark::after { content: ""; position: absolute; left: 12%; right: 12%; height: 1px; background: rgba(239,211,142,.55); }
.a5-date-mark::before { top: 25%; }
.a5-date-mark::after { bottom: 25%; }
.a5-date-mark span { display: block; text-align: center; }
.a5-date-mark .a5-ac { font: 700 clamp(5.4rem, 13vw, 9.5rem)/.86 var(--serif); letter-spacing: -.08em; }
.a5-date-mark .a5-years { margin-top: .8rem; font: 700 .78rem/1 var(--sans); letter-spacing: .22em; }
.a5-kicker { margin: 0 0 .7rem; color: var(--red); font: 800 .74rem/1.4 var(--sans); letter-spacing: .15em; text-transform: uppercase; }
.a5-hero h1 { max-width: 760px; margin: .1rem 0 1.25rem; font-size: clamp(3.25rem, 7.2vw, 7rem); line-height: .9; letter-spacing: -.045em; }
.a5-lead { max-width: 720px; margin: .5rem 0; font-size: clamp(1.25rem, 2.4vw, 1.72rem); line-height: 1.38; }
.a5-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 1.8rem; }
.a5-button { display: inline-block; padding: .88rem 1.2rem; color: #fff8ea; background: var(--oxblood); text-decoration: none; font: 800 .76rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; }
.a5-button:hover { color: #fff; background: var(--red); }
.a5-text-link { font-weight: 700; }

.a5-section { padding: 4.8rem 0; border-top: 1px solid var(--line); }
.a5-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2rem; }
.a5-section-heading h2 { margin: 0; font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: .98; letter-spacing: -.035em; }
.a5-section-heading p { max-width: 540px; margin: 0; color: var(--muted); }
.a5-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.a5-path { min-height: 250px; padding: 2rem; background: var(--paper); }
.a5-path-number { color: var(--red); font: 800 .74rem/1 var(--sans); letter-spacing: .14em; }
.a5-path h3 { margin: 1rem 0 .65rem; font-size: 1.6rem; line-height: 1.15; }
.a5-path p { color: var(--muted); }
.a5-path a { font-weight: 700; }
.a5-quotation { max-width: 960px; margin: 0 auto; padding: 3rem clamp(1rem, 6vw, 5rem); text-align: center; }
.a5-quotation blockquote { margin: 0; font-size: clamp(1.45rem, 3vw, 2.3rem); line-height: 1.35; }
.a5-quotation cite { display: block; margin-top: 1.2rem; color: var(--muted); font: 700 .72rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; }

.page-header { max-width: 900px; margin: 0 0 3rem; }
.page-title, .entry-title { margin: .15rem 0 1rem; font-size: clamp(2.7rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -.04em; }
.entry-content { max-width: 880px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2.5rem; font-size: 2.1rem; line-height: 1.2; }
.entry-content h3 { margin-top: 2rem; font-size: 1.45rem; line-height: 1.25; }
.entry-content li + li { margin-top: .45rem; }
.a5-wide { max-width: none; }

.a5-timeline { position: relative; margin: 2rem 0; }
.a5-timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 105px; width: 1px; background: var(--gold); }
.a5-event { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 3.2rem; position: relative; padding: 0 0 2.4rem; }
.a5-event-year { color: var(--oxblood); font: 800 1rem/1.3 var(--sans); }
.a5-event-copy { padding: 0 0 0 .2rem; }
.a5-event-copy::before { content: ""; position: absolute; left: 99px; top: .35rem; width: 13px; height: 13px; border-radius: 50%; background: var(--oxblood); border: 3px solid var(--paper-light); }
.a5-event h3 { margin: 0 0 .35rem; }
.a5-event p { margin: 0; color: var(--muted); }

.a5-article-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 2rem 0; background: var(--line); border: 1px solid var(--line); }
.a5-article { min-height: 150px; padding: 1.4rem; background: var(--paper); }
.a5-article span { color: var(--red); font: 800 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.a5-article h3 { margin: .7rem 0 0; font-size: 1.1rem; line-height: 1.28; }

.a5-book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.a5-book { display: flex; flex-direction: column; min-height: 290px; padding: 1.6rem; border: 1px solid var(--line); background: var(--paper); }
.a5-book-author { margin: 0 0 .75rem; color: var(--red); font: 800 .72rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.a5-book h3 { margin: 0 0 .75rem; font-size: 1.35rem; line-height: 1.25; }
.a5-book p { color: var(--muted); }
.a5-book .a5-book-link { margin-top: auto; font-weight: 700; }
.a5-note { margin: 2rem 0; padding: 1.4rem 1.6rem; border-left: 5px solid var(--gold); background: var(--paper); }

.site-footer { color: #eee0c9; background: var(--oxblood-dark); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; padding: 3rem 0; }
.footer-title { font-size: 1.45rem; }
.footer-copy { max-width: 680px; color: #cdbca4; }
.footer-meta { color: #cdbca4; text-align: right; }
.footer-meta a { color: #eee0c9; }
.footer-bottom { padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.13); font-size: .82rem; }

@media (max-width: 930px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .menu-toggle { display: block; background: none; border: 1px solid var(--line); padding: .55rem; font: 800 .72rem var(--sans); }
  .site-nav { display: none; grid-column: 1 / -1; padding-bottom: 1rem; }
  .site-nav.is-open { display: block; }
  .primary-menu { flex-direction: column; align-items: flex-start; }
  .a5-hero { grid-template-columns: 1fr; min-height: auto; }
  .a5-date-mark { width: min(330px, 78vw); min-height: 330px; }
  .a5-paths, .a5-book-grid { grid-template-columns: 1fr; }
  .a5-article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}

@media (max-width: 580px) {
  body { font-size: 16px; }
  .header-inner, .site-main, .footer-inner { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 92px; gap: .8rem; }
  .brand-mark { width: 58px; height: 58px; font-size: 1.08rem; }
  .site-tagline { font-size: .61rem; }
  .a5-hero { padding: 2rem 0 3.8rem; }
  .a5-section { padding: 3.5rem 0; }
  .a5-section-heading { display: block; }
  .a5-section-heading p { margin-top: 1rem; }
  .a5-article-grid { grid-template-columns: 1fr; }
  .a5-timeline::before { left: 75px; }
  .a5-event { grid-template-columns: 55px minmax(0,1fr); gap: 2.6rem; }
  .a5-event-copy::before { left: 69px; }
}
