/* ============================================================
   Mulhern Teaches English — v4
   Modeled EXACTLY on the 2601 Literary Salon stylesheet
   (cream / navy / gold / maroon). Two fonts only:
   Cormorant Garamond (headings) + Lora (body).
   ============================================================ */

:root {
  --bg-page:        #F8F1DD;   /* warm buttery cream */
  --bg-card:        #FFFFFF;
  --bg-notice:      #FBF1CF;
  --navy:           #0F1E3D;
  --navy-soft:      #1B2D55;
  --gold:           #C9A24B;
  --cream-light:    #E9D8A6;   /* light cream for text on navy */
  --maroon:         #7B1F35;
  --maroon-dark:    #621729;
  --text:           #1E2947;
  --muted:          #5A6478;
  --border:         #DBE2EF;
  --shadow:         0 1px 3px rgba(15,30,61,0.08), 0 4px 12px rgba(15,30,61,0.06);
  --radius:         12px;
  --radius-lg:      18px;
  --content-max:    840px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 600px) {
  body { font-size: 17px; }
}

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

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 1.4em 0 0.5em;
  font-weight: 600;
}
h1 { font-size: 2.4rem; font-weight: 700; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; font-weight: 700; }

p { margin: 0 0 1em; }

a {
  color: var(--maroon);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--maroon-dark); }

strong { font-weight: 700; color: var(--navy); }
em { font-style: italic; }

.subtitle, .smallcaps {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--gold);
}
.smallcaps--maroon { color: var(--maroon); }
.smallcaps--muted  { color: var(--muted); }

hr.rule {
  border: 0;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
  margin: 2.4rem 0;
}

blockquote {
  margin: 1.5em 0;
  padding: 0.6em 1.2em;
  border-left: 3px solid var(--maroon);
  background: var(--bg-notice);
  color: var(--text);
  font-style: italic;
  border-radius: 0 6px 6px 0;
}

ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px;
  z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- top nav ---------- */

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.topnav.scrolled { box-shadow: 0 2px 10px rgba(15,30,61,0.07); }
.topnav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
}
.topnav .brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.topnav .links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.topnav .links a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.topnav .links a:hover,
.topnav .links a[aria-current="page"] { color: var(--maroon); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .nav-toggle { display: inline-flex; }
  .topnav .links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding-top: 8px;
  }
  .topnav .links.open { display: flex; }
  .topnav .links a { padding: 8px 0; }
}

/* ---------- layout containers ---------- */

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 28px 24px 64px;
}

/* ---------- notice / announcement bar ---------- */

.notice {
  background: var(--bg-notice);
  border: 1px solid #ECDFA8;
  border-left: 4px solid var(--maroon);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 18px 0 28px;
  box-shadow: var(--shadow);
}
.notice > :first-child { margin-top: 0; }
.notice > :last-child  { margin-bottom: 0; }
.notice .label {
  font-family: "Lora", Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 12px;
}
/* Gold flourish beneath the label — thin rule flanked by a small diamond */
.notice .label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 72px;
  height: 1px;
  background: var(--gold);
}
.notice .label::before {
  content: "\25C6";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  font-size: 0.5rem;
  line-height: 1;
  color: var(--gold);
  background: var(--bg-notice);
  padding: 0 4px;
  z-index: 1;
}
.notice.center .label { text-align: center; }
.notice .date {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}

/* ---------- hero band ---------- */

.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 34px;
  text-align: center;
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
  box-shadow: var(--shadow);
  margin: 0 0 36px;
}
/* SCP-style thin gold double-line frame inset within the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201,162,75,0.55);
  border-radius: 8px;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(201,162,75,0.28);
  border-radius: 6px;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 2.7rem;
  letter-spacing: 0.01em;
}
/* two-tone wordmark: one word tinted maroon-ish (light for contrast on navy) */
.hero h1 .accent { color: var(--gold); }
.hero .subtitle { color: var(--gold); display: block; margin-bottom: 14px; }
.hero .hero-italic {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--cream-light);
  font-size: 1.25rem;
  margin: 0 auto 10px;
  max-width: 560px;
}
.hero p {
  color: var(--cream-light);
  max-width: 560px;
  margin: 0 auto 0;
}
.hero p + .hero-cta,
.hero .hero-cta { margin-top: 24px; }
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- SCP concentric-ring compass emblem ---------- */
.emblem {
  display: block;
  margin: 0 auto 16px;
  width: 52px;
  height: 52px;
  color: var(--gold);
}
.emblem--maroon { color: var(--maroon); }
.emblem-center {
  text-align: center;
  margin: 30px auto;
}
.emblem-center .emblem { margin-bottom: 0; }

/* ---------- cards / sections ---------- */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin: 0 0 24px;
  box-shadow: var(--shadow);
}
.card > :first-child { margin-top: 0; }
.card > :last-child  { margin-bottom: 0; }
.card--center { text-align: center; }

.sec-head { text-align: center; margin-bottom: 22px; }
.sec-head h2 { margin: 0.1em 0 0.3em; color: var(--navy); }
.sec-head .sub { color: var(--muted); margin: 0; font-size: 1rem; }
.sec-head .eyebrow { margin-bottom: 4px; }

/* ---------- buttons ---------- */

/* PRIMARY CTA — AOT pattern: solid maroon + gold bottom underline */
.btn-maroon, a.btn-maroon {
  display: inline-block;
  background: var(--maroon);
  color: #fff !important;
  text-decoration: none;
  text-align: center;
  padding: 15px 30px;
  border-radius: 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid var(--maroon);
  border-bottom: 2px solid var(--gold);
  box-shadow: var(--shadow);
  transition: background 0.18s ease, transform 0.12s ease;
}
.btn-maroon:hover { background: var(--maroon-dark); color: #fff !important; transform: translateY(-1px); }

/* Gold-outline button — on navy backgrounds */
.btn-gold-outline, a.btn-gold-outline {
  display: inline-block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.4rem;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 8px;
  text-decoration: none;
  transition: background 200ms, color 200ms;
  cursor: pointer;
}
.btn-gold-outline:hover, .btn-gold-outline:focus-visible { background: var(--gold); color: var(--navy) !important; outline: none; }

/* SECONDARY — navy fill with gold underline */
.btn-navy, a.btn-navy {
  display: inline-block;
  background: var(--navy);
  color: #fff !important;
  text-decoration: none;
  text-align: center;
  padding: 13px 26px;
  border-radius: 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid #1d3160;
  border-bottom: 2px solid var(--gold);
  transition: transform 0.12s ease, background 0.18s ease;
}
.btn-navy:hover { background: var(--navy-soft); transform: translateY(-1px); }

/* OUTLINE — transparent, maroon border */
.btn-outline, a.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--maroon) !important;
  text-decoration: none;
  text-align: center;
  padding: 12px 26px;
  border-radius: 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid var(--maroon);
  transition: background 0.18s ease, color 0.18s ease;
}
.btn-outline:hover { background: var(--maroon); color: #fff !important; }

/* Gold-outline button — for use ON navy hero cards */
.btn-gold, a.btn-gold {
  display: inline-block;
  background: transparent;
  color: var(--gold) !important;
  text-decoration: none;
  text-align: center;
  padding: 13px 28px;
  border-radius: 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--gold);
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.btn-gold:hover { background: var(--gold); color: var(--navy) !important; transform: translateY(-1px); }

/* text link with arrow, in maroon */
.link-arrow {
  display: inline-block;
  color: var(--maroon);
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  margin-top: 6px;
}
.link-arrow:hover { color: var(--maroon-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- credibility strip ---------- */

.cred {
  text-align: center;
  margin: 0 auto 34px;
}
.cred hr {
  border: 0;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
  width: 200px;
  margin: 0 auto;
}
.cred .cred-line {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 14px auto;
  line-height: 1.9;
}
.cred .cred-line .dot { color: var(--gold); margin: 0 4px; }
.cred .cred-line .cred-item { white-space: nowrap; }
@media (max-width: 480px) {
  .cred .cred-line .dot { display: none; }
  .cred .cred-line .cred-item { display: block; }
}

/* ---------- session-button tiles (category grid) ---------- */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
@media (max-width: 600px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
a.tile {
  display: block;
  background: var(--navy);
  color: #fff !important;
  text-decoration: none;
  text-align: center;
  padding: 20px 12px;
  border-radius: 10px;
  border: 1px solid #1d3160;
  border-bottom: 2px solid var(--gold);
  transition: transform 0.12s ease, background 0.18s ease;
  line-height: 1.25;
}
a.tile:hover { background: var(--navy-soft); transform: translateY(-1px); }
a.tile .tile-name {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
a.tile .tile-sub {
  display: block;
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.62rem;
  color: var(--gold);
  margin-top: 8px;
}

/* Resource link tiles (single column list of navy tiles) */
.tile-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
@media (max-width: 600px) { .tile-list { grid-template-columns: 1fr; } }
a.tile--wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 16px 20px;
}
a.tile--wide .tile-name { font-size: 1.1rem; }
a.tile--wide .arw { color: var(--gold); font-size: 1rem; margin-left: 12px; }

/* ---------- two-way sub-cards ---------- */

.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
@media (max-width: 600px) { .dual { grid-template-columns: 1fr; } }
.subcard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--maroon);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.subcard h3 { margin-top: 0; color: var(--navy); }
.subcard p { color: var(--text); }
.subcard > :last-child { margin-bottom: 0; }

/* ---------- about preview (two-column inside a card) ---------- */

.about-cols {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 30px;
  align-items: center;
}
@media (max-width: 640px) { .about-cols { grid-template-columns: 1fr; gap: 20px; } }
.about-cols img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-cols .about-body h2 { margin-top: 0.2em; }
.about-cols .about-body > :first-child { margin-top: 0; }
.about-cols .about-body > :last-child { margin-bottom: 0; }

/* ---------- post list (blog + essays preview) ---------- */

.post-list .post {
  padding: 4px 0;
}
.post-list .post .meta {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--gold);
  margin: 0 0 4px;
}
.post-list .post h3 { margin: 0 0 0.4em; color: var(--navy); }
.post-list .post p { color: var(--text); margin-bottom: 0.5em; }
.post-list .post.is-soon .meta { color: var(--muted); }
.post-list .post.is-soon h3 { color: var(--muted); }
.post-list .post.is-soon p { color: var(--muted); }
a.block-link { text-decoration: none; color: inherit; display: block; }
a.block-link:hover h3 { color: var(--maroon); }

/* ---------- email capture (navy card) ---------- */

.capture-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.capture-form input[type="email"] {
  flex: 1 1 260px;
  max-width: 340px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-family: "Lora", Georgia, serif;
  font-size: 1rem;
}
.capture-form input[type="email"]::placeholder { color: var(--muted); }

/* ---------- contact grid ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 4px;
}
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-block h3 { margin-top: 0; }
.contact-block > :last-child { margin-bottom: 0; }

/* contact form */
.contact-form { display: grid; gap: 16px; max-width: 560px; margin: 20px auto 0; }
.contact-form label {
  display: block;
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-family: "Lora", Georgia, serif;
  font-size: 1rem;
}
.contact-form textarea { resize: vertical; }

/* ---------- article body (blog post) ---------- */

.article-body { max-width: 640px; margin: 0 auto; }
.article-body h2 {
  border-top: 1px solid var(--gold);
  padding-top: 1.3rem;
  margin-top: 2rem;
}
.article-body h3 { color: var(--navy); }
.article-body .entry-num { color: var(--maroon); font-weight: 700; margin-right: 4px; }
.article-body .seq-list {
  background: var(--bg-notice);
  border: 1px solid #ECDFA8;
  border-radius: var(--radius);
  padding: 6px 6px 6px 0;
  margin: 1.4em 0;
}
.article-body .seq-list ul { margin: 0.6em 0; }
.article-body .bio {
  margin-top: 2rem;
}
.article-body .bio .byline {
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--maroon);
  margin-bottom: 8px;
}

/* ---------- 404 ---------- */

.notfound .big {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin: 0 0 6px;
}

/* ---------- footer ---------- */

footer.footer {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  background: var(--bg-page);
}
.footer-rule {
  max-width: var(--content-max);
  margin: 0 auto;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.footer-cols {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 34px 24px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
@media (max-width: 640px) { .footer-cols { grid-template-columns: 1fr; gap: 22px; } }
.footer-cols .fbrand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 8px;
}
.footer-cols .tagline { color: var(--muted); font-size: 0.92rem; margin: 0 0 8px; }
.footer-cols .copyright { color: var(--muted); font-size: 0.82rem; margin: 0; }
.footer-cols h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0 0 10px;
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 6px; }
.footer-cols a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-cols a:hover { color: var(--maroon); }
.footer-bottom {
  text-align: center;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 24px 40px;
}

/* ---------- reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
[data-reveal].in { opacity: 1; transform: none; }
/* ---------- contributions (Support the Shelf) ---------- */
.shelf-support { margin-top: 2rem; text-align: center; }
.shelf-support > p:not(.subtitle) { text-align: left; }
.shelf-support a:not(.shelf-amount):not(.shelf-monthly) { color: var(--maroon); }
.shelf-amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 1.4rem 0 12px; }
.shelf-amount, .shelf-monthly {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 44px; padding: 12px 8px; border: 1px solid var(--gold); border-radius: var(--radius);
  background: var(--bg-page); color: var(--navy); text-decoration: none; line-height: 1.25;
}
.shelf-amount strong { font-size: 1.25rem; color: var(--maroon); }
.shelf-amount span, .shelf-monthly span { font-size: 0.85rem; color: var(--text); }
.shelf-amount.is-featured { background: var(--maroon); border-color: var(--maroon); }
.shelf-amount.is-featured strong, .shelf-amount.is-featured span { color: #FFFBF2; }
.shelf-amount:hover, .shelf-monthly:hover { border-color: var(--maroon); box-shadow: var(--shadow); }
.shelf-amount:focus-visible, .shelf-monthly:focus-visible { outline: 2px solid var(--maroon); outline-offset: 2px; }
.shelf-monthly strong { color: var(--navy); font-size: 1.02rem; }
.shelf-support-fine { margin-top: 1rem; font-size: 0.86rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 600px) { .shelf-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- print ---------- */
@media print {
  .topnav, .btn-navy, .btn-maroon, .btn-gold, .tile { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .hero, .notice { box-shadow: none; border-color: #888; }
  .hero { background: #fff; color: #000; border: 2px solid #000; }
  .hero h1, .hero .subtitle, .hero p { color: #000 !important; }
}

/* product card opened from a direct link (e.g. a Pinterest pin) */
.product-card.is-target { outline: 3px solid var(--gold); outline-offset: 4px; }
