/* South St. Aug — southstaug.com
   Direction A: Paper & Ink, light. Near-white paper, bone panels,
   ultramarine ink, an old serif for the big moments, Jost for the UI. */

:root {
  --paper: #FCFBF7;      /* page background, just off white */
  --bone: #F3EEE3;       /* panels, bands, cards */
  --bone-2: #EBE4D5;     /* slightly deeper bone for borders on bone */
  --line: #E2D9C6;
  --ink: #1E2433;        /* navy text */
  --muted: #5B6070;
  --blue: #1F3FBF;       /* ultramarine */
  --blue-dark: #172F8F;
  --terra: #C2603E;
  --max: 1080px;
  --measure: 38rem;
}

* { box-sizing: border-box; }
html { font-size: 20px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  line-height: 1.6;
  position: relative;
}
/* paper grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.55;
}
header.site, main, section, article, footer.site, .page-head { position: relative; z-index: 1; }

.serif, h1, .plank-num, .stat b, .logo-text, .big-num {
  font-family: "Cormorant Garamond", "Cormorant", Georgia, serif;
}
h2, h3, h4, .eyebrow, .btn, nav, .label { font-family: "Jost", "Futura", "Avenir Next", sans-serif; }

h1 { font-weight: 500; font-size: 2.9rem; line-height: 1.05; letter-spacing: -0.005em; margin: 0 0 0.5em; }
h1 em { font-style: italic; color: var(--blue); }
h2 { font-weight: 600; font-size: 1.6rem; line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h3 { font-weight: 600; font-size: 1.15rem; line-height: 1.25; margin: 0 0 0.5em; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
ul, ol { max-width: var(--measure); padding-left: 1.3em; }
li { margin-bottom: 0.5em; }
a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
strong { font-weight: 600; }

.eyebrow, .label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1em;
}
.eyebrow .big-num { font-size: 2.2rem; font-weight: 500; letter-spacing: 0; vertical-align: -0.15em; margin-right: 0.6rem; color: var(--blue); }

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

/* Header ------------------------------------------------ */
header.site { background: var(--paper); border-bottom: 1px solid var(--line); z-index: 10; }
header.site .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.8rem 2rem; padding-top: 1.1rem; padding-bottom: 1rem;
}
.logo { text-decoration: none; color: var(--ink); display: block; }
.logo-text { font-weight: 500; font-size: 1.55rem; line-height: 1; letter-spacing: 0.2em; text-transform: uppercase; }
.logo-text small {
  display: block; font-family: "Jost", sans-serif; font-weight: 500;
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--blue); margin-top: 0.45em;
}
nav.main { display: flex; flex-wrap: wrap; gap: 0.1rem 0.3rem; }
nav.main a {
  display: inline-block; padding: 0.5rem 0.7rem;
  font-weight: 500; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--blue); }
nav.main a.here { color: var(--blue); border-bottom-color: var(--blue); }

/* Platform dropdown ------------------------------------- */
nav.main .has-menu { position: relative; display: inline-flex; align-items: center; }
nav.main .has-menu > a { padding-right: 0.2rem; }
.menu-toggle {
  background: none; border: 0; padding: 0.5rem 0.55rem 0.5rem 0.2rem; margin: 0;
  color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; line-height: 1;
}
.menu-toggle svg { transition: transform 0.15s ease; }
.has-menu:hover .menu-toggle, .has-menu.open .menu-toggle, .has-menu:focus-within .menu-toggle { color: var(--blue); }
.has-menu.open .menu-toggle svg { transform: rotate(180deg); }
nav.main .menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 20;
  min-width: 19rem; padding: 0.5rem 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 14px 34px rgba(30, 36, 51, 0.12);
}
nav.main .menu a {
  display: flex; align-items: baseline; gap: 0.7rem;
  padding: 0.6rem 1.1rem; border: 0;
  font-family: "Jost", sans-serif; font-weight: 500; font-size: 0.85rem;
  letter-spacing: 0.02em; text-transform: none; color: var(--ink); text-decoration: none;
}
nav.main .menu a:hover { background: var(--bone); color: var(--blue); border-bottom-color: transparent; }
nav.main .menu a .n { font-family: "Cormorant Garamond", serif; font-size: 1.15rem; font-weight: 500; color: var(--blue); min-width: 1.4rem; }
nav.main .has-menu.open .menu { display: block; }
@media (hover: hover) and (min-width: 821px) {
  nav.main .has-menu:hover .menu, nav.main .has-menu:focus-within .menu { display: block; }
  /* keep the menu reachable while moving the mouse down into it */
  .menu::before { content: ""; position: absolute; left: 0; right: 0; top: -0.6rem; height: 0.6rem; }
}
@media (max-width: 820px) {
  nav.main .has-menu { flex-wrap: wrap; }
  nav.main .menu { position: static; min-width: 0; width: 100%; box-shadow: none; border-left: 2px solid var(--blue); border-radius: 0; margin: 0.2rem 0 0.4rem 0.5rem; }
}

/* Buttons ----------------------------------------------- */
.btn {
  display: inline-block; padding: 0.75rem 1.5rem;
  border-radius: 3px; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.03em;
  text-decoration: none; line-height: 1.2; cursor: pointer;
  background: var(--blue); color: #fff; border: 1.5px solid var(--blue);
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

/* Hero -------------------------------------------------- */
.hero { padding: 4rem 0 3.5rem; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2rem; align-items: end; }
.hero h1 { font-size: 3.3rem; max-width: 11em; }
.hero p.lead { font-size: 1.15rem; max-width: 26em; }
.hero p { max-width: 26em; }
.hero-art { align-self: end; justify-self: end; width: 100%; max-width: 380px; }
.hero-art svg { width: 100%; height: auto; display: block; }

/* Sections ---------------------------------------------- */
section { padding: 3.5rem 0; }
section.bone { background: var(--bone); }
section.rule { border-top: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

/* Plank cards ------------------------------------------- */
.planks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 1.5rem; }
.plank {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: 1.5rem 1.6rem 1.4rem; display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
section.bone .plank { background: var(--paper); }
.plank:hover { border-color: var(--blue); transform: translateY(-2px); color: var(--ink); }
.plank-num { font-size: 2.4rem; font-weight: 500; line-height: 1; color: var(--blue); margin-bottom: 0.6rem; }
.plank h3 { margin-bottom: 0.4em; }
.plank p { margin-bottom: 1em; color: var(--muted); font-size: 0.95rem; }
.plank .more {
  margin-top: auto; font-family: "Jost", sans-serif; font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue);
}

/* Seal -------------------------------------------------- */
.seal { width: 190px; height: 190px; }
.seal-wrap { display: grid; place-items: center; }

/* Article pages ----------------------------------------- */
.page-head { padding: 3.5rem 0 2.5rem; background: var(--bone); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 14em; }
.page-head p.lead { font-size: 1.15rem; margin-bottom: 0; }
article.body { padding: 3rem 0 4rem; }
article.body .wrap { max-width: 860px; }
article.body h2 { margin-top: 2.2rem; }
article.body h3 { margin-top: 1.6rem; }

.photo-slot {
  background: var(--bone); border: 1px dashed var(--bone-2); border-radius: 4px;
  min-height: 260px; display: grid; place-items: center; text-align: center; padding: 1rem;
  margin: 1.5rem 0; color: var(--muted);
  font-family: "Jost", sans-serif; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.8;
}
.photo-slot small { display: block; font-family: "Source Serif 4", serif; font-size: 0.9rem; letter-spacing: 0; text-transform: none; font-style: italic; }

.callout {
  background: var(--bone); border-left: 4px solid var(--blue);
  padding: 1.2rem 1.5rem; margin: 1.8rem 0; border-radius: 0 4px 4px 0;
}
.callout p:last-child { margin-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.8rem 0; }
.stat { background: var(--bone); border-radius: 4px; padding: 1.3rem 1.2rem 1.1rem; text-align: center; }
.stat b { display: block; font-size: 2.6rem; font-weight: 500; color: var(--blue); line-height: 1; margin-bottom: 0.4rem; }
.stat span { font-size: 0.88rem; color: var(--muted); }

.sources { font-size: 0.82rem; color: var(--muted); }
.sources li { margin-bottom: 0.45em; word-break: break-word; }

.next-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin: 1.5rem 0; }
.step { background: var(--bone); border-radius: 4px; padding: 1.3rem 1.4rem; }
.step h3 { margin: 0 0 0.3em; }
.step p { margin: 0; font-size: 0.95rem; }

/* Events ------------------------------------------------ */
.event { display: grid; grid-template-columns: 110px 1fr; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.event:last-child { border-bottom: none; }
.event .date {
  text-align: center; border: 1.5px solid var(--blue); color: var(--blue); border-radius: 4px;
  padding: 0.6rem 0.3rem; font-family: "Cormorant Garamond", serif; line-height: 1.05; align-self: start;
}
.event .date b { display: block; font-size: 2rem; font-weight: 500; }
.event .date span { font-family: "Jost", sans-serif; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; }
.event h3 { margin-bottom: 0.2em; }
.event p { margin: 0; }

/* Form -------------------------------------------------- */
form.join { max-width: 34rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: "Jost", sans-serif; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; margin-bottom: 0.35rem; }
.field label small { font-weight: 400; color: var(--muted); letter-spacing: 0; }
.field input, .field textarea {
  width: 100%; font: inherit; padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-msg { display: none; background: var(--bone); border-left: 4px solid var(--blue); border-radius: 0 4px 4px 0; padding: 1rem 1.2rem; margin-top: 1rem; }
.form-msg.show { display: block; }

/* Footer ------------------------------------------------ */
footer.site { background: var(--bone); border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; font-size: 0.9rem; color: var(--ink); }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
footer.site h4 { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); margin: 0 0 0.8em; }
footer.site .logo-text { font-size: 1.3rem; margin-bottom: 0.8rem; }
footer.site a { color: var(--ink); }
footer.site a:hover { color: var(--blue); }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 0.4em; }
footer.site p { max-width: 26em; }
.fine { color: var(--muted); font-size: 0.78rem; margin-top: 1.5rem; }

/* Mobile ------------------------------------------------ */
@media (max-width: 820px) {
  html { font-size: 18px; }
  h1, .hero h1 { font-size: 2.4rem; }
  h2 { font-size: 1.4rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero .wrap, .two-col, .planks, .next-steps, footer.site .wrap { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 260px; order: 2; }
  .stats { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .event { grid-template-columns: 84px 1fr; }
  nav.main a { padding: 0.4rem 0.5rem; font-size: 0.7rem; }
  nav.main .menu a { font-size: 0.85rem; padding: 0.55rem 0.9rem; }
  .logo-text { font-size: 1.3rem; }
}
