/* ==========================================================================
   Fortified Press — site styles
   ========================================================================== */

:root {
  --paper: #f7f3ec;
  --paper-deep: #efe9de;
  --ink: #22282f;
  --slate: #26333f;
  --slate-deep: #1c262f;
  --accent: #b07d3c;
  --accent-dark: #93662e;
  --muted: #5d6570;
  --line: #e2dbcd;
  --card: #fffdf9;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(28, 38, 47, 0.08), 0 4px 14px rgba(28, 38, 47, 0.06);
  --shadow-md: 0 6px 24px rgba(28, 38, 47, 0.14);
  --shadow-cover: 0 10px 30px rgba(28, 38, 47, 0.28);
}

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

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 84px; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

a { color: var(--accent-dark); }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--slate);
  color: #f0e6d6;
  display: grid;
  place-items: center;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.brand-tag {
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
  line-height: 1.3;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

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

.site-nav a.active { border-bottom-color: var(--accent); }

.site-nav .btn { border-bottom: none; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid var(--slate);
  color: var(--slate);
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn.light {
  border-color: rgba(240, 230, 214, 0.6);
  color: #f0e6d6;
}

.btn.light:hover { background: rgba(240, 230, 214, 0.12); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(176, 125, 60, 0.28), transparent 60%),
    linear-gradient(160deg, var(--slate) 0%, var(--slate-deep) 100%);
  color: #f4efe6;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  padding: 4.5rem 0 4.5rem;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d8b06a;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  color: #faf6ee;
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: #cfd6dc;
  max-width: 34rem;
  margin-bottom: 1.8rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-media { justify-self: center; }

.hero-media img {
  width: min(300px, 70vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid rgba(240, 230, 214, 0.25);
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   Featured book
   -------------------------------------------------------------------------- */

.featured { padding: 4.5rem 0; }

.featured-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.featured-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-cover);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.6rem;
}

.featured h2 { font-size: 2rem; margin-bottom: 0.35rem; }

.featured .subtitle-line {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.featured p.blurb { color: var(--muted); margin-bottom: 1.6rem; max-width: 40rem; }

/* --------------------------------------------------------------------------
   Books grid
   -------------------------------------------------------------------------- */

.books { padding: 1rem 0 4.5rem; }

.section-head { text-align: center; margin-bottom: 2.5rem; }

.section-head h2 { font-size: 2.1rem; margin-bottom: 0.5rem; }

.section-head p { color: var(--muted); max-width: 38rem; margin-inline: auto; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Covers keep their natural 2:3 book proportions — never cropped. */
.cover-wrap {
  background: var(--paper-deep);
  padding: 1.4rem 1.4rem 0;
}

.cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -2px 18px rgba(28, 38, 47, 0.18);
}

.card-body {
  padding: 1.2rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

.card-body .blurb {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
  flex: 1;
}

.buy-row .btn { width: 100%; text-align: center; }

/* --------------------------------------------------------------------------
   Quote band
   -------------------------------------------------------------------------- */

.quote-band {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
  padding: 3.5rem 0;
  text-align: center;
}

.quote-band blockquote {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-style: italic;
  max-width: 44rem;
  margin-inline: auto;
  color: var(--slate);
}

.quote-band cite {
  display: block;
  margin-top: 1rem;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */

.newsletter {
  background:
    radial-gradient(800px 400px at 15% 110%, rgba(176, 125, 60, 0.25), transparent 60%),
    linear-gradient(160deg, var(--slate) 0%, var(--slate-deep) 100%);
  color: #f4efe6;
  padding: 4rem 0;
}

.news-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.news-copy h2 { font-size: 1.9rem; color: #faf6ee; margin-bottom: 0.7rem; }

.news-copy p { color: #cfd6dc; }

.form { display: grid; gap: 0.8rem; }

.form input {
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(240, 230, 214, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #faf6ee;
  font-family: inherit;
  font-size: 1rem;
}

.form input::placeholder { color: #9aa5ae; }

.form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form .legal { font-size: 0.78rem; color: #9aa5ae; }

.form .status { min-height: 1.4rem; font-size: 0.9rem; color: #d8b06a; }

/* --------------------------------------------------------------------------
   Daily Creed links (home)
   -------------------------------------------------------------------------- */

.creeds {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
  padding: 4rem 0;
}

.creed-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 62rem;
  margin: 2.5rem auto 0;
}

.creed-link {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.creed-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.creed-link-icon {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
}

.creed-link:hover .creed-link-icon { background: var(--accent-dark); }

.creed-link-icon svg { width: 22px; height: 22px; margin-left: 3px; }

.creed-link-body { display: flex; flex-direction: column; }

.creed-link-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.creed-link-sub {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0.35rem 0 0.55rem;
}

.creed-link-cta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.page-hero {
  background: linear-gradient(160deg, var(--slate) 0%, var(--slate-deep) 100%);
  color: #f4efe6;
  padding: 3.5rem 0;
  text-align: center;
}

.page-hero h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); color: #faf6ee; }

.page-hero p { color: #cfd6dc; margin-top: 0.6rem; }

.about { padding: 4rem 0; }

.about-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.about-photo figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.7rem;
}

.about-copy h2 { font-size: 1.8rem; margin-bottom: 1.1rem; }

.about-copy p { margin-bottom: 1.1rem; }

.about-copy p:last-of-type { margin-bottom: 0; }

/* Contact */

.contact { padding: 0 0 4.5rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.contact-card .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.9rem;
  border-radius: 12px;
  background: var(--paper-deep);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
}

.contact-card .icon svg { width: 24px; height: 24px; }

.contact-card h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }

.contact-card p { font-size: 0.88rem; color: var(--muted); word-break: break-word; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--slate-deep);
  color: #9aa5ae;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }

.footer-links a { color: #cfd6dc; text-decoration: none; }

.footer-links a:hover { color: #d8b06a; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 0;
    gap: 2rem;
  }

  .hero .subtitle { margin-inline: auto; }

  .cta-row { justify-content: center; }

  .hero-media { order: -1; }

  .hero-media img { width: min(220px, 60vw); }

  .featured-inner {
    grid-template-columns: 1fr;
    padding: 1.8rem;
    gap: 2rem;
  }

  .featured-cover { max-width: 260px; margin-inline: auto; }

  .featured { text-align: center; }

  .featured p.blurb { margin-inline: auto; }

  .news-inner { grid-template-columns: 1fr; gap: 2rem; }

  .about-inner { grid-template-columns: 1fr; gap: 2rem; }

  .about-photo { max-width: 300px; margin-inline: auto; }
}

@media (max-width: 560px) {
  .brand-tag { display: none; }

  .brand-name { font-size: 1.05rem; }

  .brand-mark { width: 32px; height: 32px; font-size: 1rem; }

  .nav-extra { display: none; }

  /* the brand mark already links home */
  .site-nav a:first-child { display: none; }

  .site-nav { gap: 0.8rem; }

  .site-nav a { font-size: 0.88rem; white-space: nowrap; }

  .site-nav .btn { padding: 0.45rem 0.9rem; font-size: 0.85rem; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.2rem; }

  .cover-wrap { padding: 1rem 1rem 0; }

  .card-body { padding: 1rem 1rem 1.2rem; }
}
