/* The Principle of Peace theme. Palette sampled from the Crossed Wires series 2 cream cover. */

:root {
    --paper: #F7F2E8;
    --paper-2: #EFE7D8;
    --rule: #D9CFBC;
    --ink: #201D1A;
    --ink-soft: #4A443C;
    --accent: #C24A2E;
    --accent-deep: #A03A22;
    --green: #24405C;
    --green-soft: #A9C1D8;
    --blue: #2E5E8C;
    --gold: #D9A441;
    --cover-cream: #F6EFE1;
    --card: #FCF8F0;
    --ochre: #C99720;
    --sage-tile: #8A9B7E;
    --sh: 0 2px 4px rgba(60,42,30,.08), 0 18px 44px rgba(60,42,30,.16);
    --sh-hover: 0 4px 8px rgba(60,42,30,.10), 0 28px 64px rgba(60,42,30,.24);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--gh-font-body, 'Inter', system-ui, sans-serif);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    font-size: 18px;
}
h1, h2, h3, h4 { font-family: var(--gh-font-heading, 'EB Garamond', Georgia, serif); font-weight: 500; line-height: 1.12; color: var(--ink); }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 740px; }
.center { text-align: center; }

.eyebrow, .cred, .chip, .card .num {
    font-family: var(--gh-font-body, 'Inter', system-ui, sans-serif);
    font-size: 12.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
}
.eyebrow { color: var(--green); margin-bottom: 14px; }
.eyebrow a { color: inherit; text-decoration: none; }
h2 { font-size: 42px; margin-bottom: 20px; }

.btn {
    display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
    font-weight: 600; font-size: 16.5px; padding: 15px 28px; border-radius: 10px; border: none; cursor: pointer;
    box-shadow: 0 3px 6px rgba(160,58,34,.25), 0 12px 28px rgba(160,58,34,.30);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 5px 10px rgba(160,58,34,.28), 0 18px 40px rgba(160,58,34,.36); }
.btn-ghost {
    display: inline-block; background: transparent; color: var(--ink); border: 1.5px solid var(--ink);
    padding: 13.5px 24px; border-radius: 10px; font-weight: 600; font-size: 15.5px; cursor: pointer; text-decoration: none;
}
.btn-ghost:hover { background: rgba(32,29,26,.06); }
.chip { color: var(--green); border: 1px solid var(--rule); padding: 6px 12px; border-radius: 999px; }
.cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247,242,232,.85); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); border-bottom: 1px solid var(--rule); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; gap: 20px; }
.wordmark { font-family: 'EB Garamond', serif; font-size: 25px; font-weight: 600; color: var(--ink); text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .nav { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.site-nav .nav a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.site-nav .nav a:hover { color: var(--accent); }
.navbtn { background: var(--accent); color: #fff !important; padding: 10px 18px; border-radius: 9px; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.navbtn:hover { background: var(--accent-deep); }

/* hero */
.hero { padding: 84px 0 88px; background: linear-gradient(180deg, #F7F2E8 0%, #F1E5CF 100%); }
.cover-wrap::before { content: ""; position: absolute; inset: -60px -80px; background: radial-gradient(closest-side, rgba(217,164,65,.28), rgba(194,74,46,.10) 60%, transparent 75%); z-index: 0; }
.cover-wrap > * { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 400px; gap: 70px; align-items: center; }
.hero-title { font-size: 78px; letter-spacing: -.01em; margin-bottom: 10px; }
.tagline { font-family: 'EB Garamond', serif; font-style: italic; font-size: 26px; color: var(--ink-soft); margin-bottom: 28px; }
.hook { font-family: 'EB Garamond', serif; font-size: 29px; line-height: 1.3; max-width: 600px; margin-bottom: 12px; }
.hook .qm { color: var(--accent); }
.hook-src, .formnote, .audio-meta, .article-meta { font-size: 13.5px; color: var(--ink-soft); }
.hook-src { margin-bottom: 32px; }
.review-line { font-size: 15.5px; color: var(--ink-soft); max-width: 560px; border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 14px; }
.review-text { font-family: 'EB Garamond', serif; font-style: italic; font-size: 18px; color: var(--ink); }

.cover-wrap { position: relative; }
.cover-img { width: 100%; max-width: 400px; display: block; filter: drop-shadow(0 18px 20px rgba(60,42,30,.20)) drop-shadow(0 42px 60px rgba(60,42,30,.24)); transition: transform .25s ease; }
.cover-wrap:hover .cover-img { transform: scale(1.015); }
.cover-standin {
    position: relative; width: 100%; max-width: 360px; aspect-ratio: 2/3; background: var(--cover-cream);
    border: 1px solid var(--rule); border-radius: 3px; overflow: hidden;
    box-shadow: 0 26px 50px rgba(32,29,26,.22), 0 5px 12px rgba(32,29,26,.12);
}
.cw-braid { position: absolute; left: 10%; top: 0; height: 100%; }
.cw-text { position: absolute; right: 9%; top: 36%; text-align: right; }
.cv-title { font-family: 'EB Garamond', serif; font-size: 27px; line-height: 1.35; letter-spacing: .05em; color: #26241F; }
.cv-sub { font-size: 9.5px; font-weight: 600; letter-spacing: .14em; color: var(--accent); margin-top: 18px; line-height: 1.6; }
.cv-author { position: absolute; right: 9%; bottom: 6%; font-size: 11px; letter-spacing: .3em; color: #26241F; font-weight: 500; }

/* sections */
section, .breath-section, .start-section, .about-section { }
.breath-section { padding: 84px 0; }
.breath { max-width: 680px; }
.breath p { margin-bottom: 20px; font-size: 19px; }
.breath .lead { font-size: 19px; }

.formula-band { background: linear-gradient(165deg, #2B4E71 0%, #1C3A57 100%); color: var(--paper); padding: 84px 0; }
.formula-band h2 { color: var(--paper); }
.formula-band .eyebrow { color: var(--green-soft); }
.formula-visual { margin: 38px auto 32px; display: block; max-width: 780px; width: 100%; }
.stages { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.stage { font-family: 'EB Garamond', serif; font-size: 40px; color: #fff; }
.stage span { color: var(--gold); }
.terms { text-align: center; font-size: 13px; letter-spacing: .24em; color: var(--green-soft); text-transform: uppercase; margin-bottom: 28px; }
.framing { max-width: 660px; margin: 0 auto; text-align: center; font-size: 17.5px; color: #E6EDF5; }
.formula-band .link-line { text-align: center; margin-top: 26px; }
.formula-band .link-line a { color: var(--green-soft); font-weight: 500; }

.start-section { padding: 84px 0; }
.start-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 34px; }
.card {
    background: var(--card); border: 1px solid rgba(217,207,188,.6); border-radius: 16px; padding: 26px 24px;
    text-decoration: none; color: var(--ink); box-shadow: var(--sh); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-hover); }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.card .num { color: var(--accent); margin-bottom: 12px; }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--ink-soft); }

.essays-band { background: linear-gradient(180deg, #F3ECDC 0%, #EBDFC6 100%); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 84px 0; }
.essays-head p { color: var(--ink-soft); max-width: 520px; }
.essay-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; }
.ecard {
    background: var(--card); border-radius: 16px; overflow: hidden; border: 1px solid rgba(217,207,188,.35);
    text-decoration: none; color: var(--ink); box-shadow: var(--sh); transition: transform .18s ease, box-shadow .18s ease; display: block;
}
.ecard:hover { transform: translateY(-3px); box-shadow: var(--sh-hover); }
.ecard:hover h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.efeatured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; min-height: 300px; }
.efeatured .ftile { position: relative; background: #B85834; overflow: hidden; min-height: 260px; }
.efeatured .ftile svg, .efeatured .ftile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.audio-card {
    position: absolute; left: 20px; right: 20px; bottom: 18px; background: rgba(252,248,240,.96);
    border-radius: 12px; box-shadow: 0 2px 6px rgba(60,42,30,.14), 0 14px 30px rgba(60,42,30,.22);
    padding: 12px 16px; display: flex; align-items: center; gap: 12px;
}
.play-dot { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); flex: none; position: relative; }
.play-dot::after { content: ""; position: absolute; left: 15px; top: 11px; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.audio-meta { line-height: 1.35; }
.audio-meta b { display: block; color: var(--ink); }
.efeatured .ecard-body-lg { padding: 30px 32px; display: flex; flex-direction: column; justify-content: center; }
.efeatured h3 { font-size: 30px; margin-bottom: 10px; }
.efeatured p { font-size: 16px; color: var(--ink-soft); margin-bottom: 16px; }
.tile, .tile-img { height: 170px; display: block; width: 100%; object-fit: cover; }
.tile-img { filter: saturate(.92) contrast(1.03); }
.tile { background-color: #31567E; background-repeat: no-repeat; background-position: center; background-size: cover; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 150' fill='none'%3E%3Cpath d='M20 75 C90 30 150 120 220 75 C270 45 330 75 380 75' stroke='%23F6EFE1' stroke-width='7'/%3E%3Ccircle cx='384' cy='75' r='8' fill='%23D9A441'/%3E%3C/svg%3E"); }
.tile-1 { background-color: #B85834; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 150' fill='none'%3E%3Cpath d='M-10 95 C90 95 130 45 230 45 C330 45 350 95 410 95' stroke='%23F6EFE1' stroke-width='8'/%3E%3Cpath d='M-10 45 C90 45 130 95 230 95 C330 95 350 45 410 45' stroke='%232E5E8C' stroke-width='8' opacity='.85'/%3E%3Ccircle cx='360' cy='70' r='10' fill='%23D9A441'/%3E%3C/svg%3E"); background-size: cover; }
.tile-2 { background-color: #31567E; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 150' fill='none'%3E%3Cline x1='40' y1='112' x2='180' y2='38' stroke='%23F6EFE1' stroke-width='7'/%3E%3Cline x1='220' y1='38' x2='360' y2='112' stroke='%2326241F' stroke-width='7' opacity='.6'/%3E%3Ccircle cx='200' cy='75' r='27' stroke='%23D9A441' stroke-width='6'/%3E%3C/svg%3E"); background-size: cover; }
.tile-3 { background-color: #C99720; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 150' fill='none'%3E%3Cpath d='M50 115 q75 -85 150 0 t150 0' stroke='%23F6EFE1' stroke-width='7'/%3E%3Ccircle cx='200' cy='70' r='15' fill='%23C24A2E'/%3E%3Ccircle cx='330' cy='45' r='30' stroke='%2326241F' stroke-width='5' opacity='.4'/%3E%3C/svg%3E"); background-size: cover; }
.tile-0 { background-color: #2E5E8C; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 150' fill='none'%3E%3Cpath d='M20 75 C90 30 150 120 220 75 C270 45 330 75 380 75' stroke='%23F6EFE1' stroke-width='7'/%3E%3Ccircle cx='384' cy='75' r='8' fill='%23D9A441'/%3E%3C/svg%3E"); background-size: cover; }
.ecard-body { padding: 22px 24px 26px; }
.ecard h3 { font-size: 23px; margin-bottom: 8px; }
.ecard p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 14px; }
.emeta { display: flex; align-items: center; gap: 14px; }
.readmore { font-size: 14px; font-weight: 600; color: var(--accent); }
.audio-chip {
    display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em;
    color: var(--green); border: 1px solid var(--rule); border-radius: 999px; padding: 4px 12px 4px 24px;
    background: var(--paper); position: relative;
}
.audio-chip::before {
    content: ""; position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    width: 0; height: 0; border-left: 8px solid var(--green); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.ecard-text { padding: 30px 32px; border-top: 4px solid var(--gold); }
.ecard-text h3 { font-size: 24px; margin-bottom: 10px; }
.ecard-text p { font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; }
.efeatured-text { grid-column: 1 / -1; }
.efeatured-text h3 { font-size: 31px; }
.efeatured-text p { font-size: 16.5px; max-width: 760px; }
.essays-all { margin-top: 26px; }
.essays-all a { font-weight: 600; }

.about-section { padding: 84px 0; }
.about-grid { display: grid; grid-template-columns: 270px 1fr; gap: 56px; align-items: center; }
.author-photo { width: 100%; border-radius: 16px; box-shadow: 0 6px 12px rgba(60,42,30,.14), 0 26px 54px rgba(60,42,30,.26); }
.about-grid p { max-width: 580px; margin-bottom: 16px; }

.signup-band { background: linear-gradient(165deg, #2B4E71 0%, #1C3A57 100%); color: var(--paper); padding: 84px 0; }
.signup-band h2 { color: var(--paper); }
.signup-band .eyebrow { color: var(--green-soft); }
.signup-band p { max-width: 540px; margin-bottom: 22px; color: #E6EDF5; }
.capture-form { display: flex; gap: 12px; flex-wrap: wrap; max-width: 540px; }
.capture-form input {
    flex: 1; min-width: 220px; padding: 14px 16px; border: none; border-radius: 10px;
    font-size: 15.5px; font-family: inherit; background: #FBF7EE; color: var(--ink);
}
.formnote { color: var(--green-soft); margin-top: 10px; }
.form-success, .form-error { display: none; }
.capture-form.success ~ .form-success { display: block; color: #fff; }
.capture-form.error ~ .form-error { display: block; color: #F0B9A8; }
.capture-form.loading button { opacity: .6; pointer-events: none; }

/* footer */
.site-footer { background: var(--ink); color: #B8B0A4; padding: 42px 0; font-size: 14px; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot-mark { font-family: 'EB Garamond', serif; font-size: 20px; color: var(--paper); }
.foot-nav .nav { display: flex; gap: 22px; list-style: none; }
.foot-nav .nav a { color: var(--paper-2); text-decoration: none; }

/* listing */
.listing { padding: 72px 0 96px; }
.listing-head h1 { font-size: 52px; margin-bottom: 12px; }
.listing-sub { color: var(--ink-soft); }
.listing-grid { margin-top: 40px; }
.pagination { display: flex; justify-content: space-between; margin-top: 48px; font-weight: 600; }
.pagination .page-number { color: var(--ink-soft); font-weight: 400; }

/* article */
.article-header { padding: 72px 0 24px; }
.article-title { font-size: 52px; margin-bottom: 16px; }
.article-excerpt { font-size: 20px; color: var(--ink-soft); margin-bottom: 16px; }
.article-meta { }
.article-image { margin: 24px auto; }
.article-image img { border-radius: 12px; }
.gh-content { padding: 24px 28px 40px; font-size: 19px; }
.gh-content > * + * { margin-top: 22px; }
.gh-content h2 { font-size: 32px; margin-top: 44px; }
.gh-content h3 { font-size: 25px; margin-top: 36px; }
.gh-content blockquote {
    border-left: 3px solid var(--accent); padding-left: 20px;
    font-family: 'EB Garamond', serif; font-size: 22px; font-style: italic; color: var(--ink-soft);
}
.gh-content hr { border: none; border-top: 1px solid var(--rule); margin: 40px 0; }
.gh-content a { color: var(--accent); }
.gh-content figcaption { font-size: 13.5px; color: var(--ink-soft); text-align: center; margin-top: 8px; }
.article-cta { padding-bottom: 88px; }
.article-cta-inner { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 16px; padding: 32px; }
.cta-lead { font-size: 18px; margin-bottom: 18px; }

/* koenig width helpers */
.kg-width-wide { position: relative; width: min(1120px, calc(100vw - 56px)); margin-left: 50%; transform: translateX(-50%); }
.kg-width-full { position: relative; width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.kg-width-full img { width: 100%; }

/* responsive */
@media (max-width: 900px) {
    .hero { padding: 52px 0 56px; }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .cover-wrap { order: -1; }
    .cover-standin, .cover-img { margin: 0 auto; max-width: 280px; display: block; }
    .hero-title { font-size: 44px; }
    .hook { font-size: 24px; }
    h2 { font-size: 32px; }
    .start-cards { grid-template-columns: 1fr 1fr; }
    .essay-cards { grid-template-columns: 1fr; }
    .efeatured { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .author-photo { max-width: 240px; margin: 0 auto; }
    .about-grid p { margin-left: auto; margin-right: auto; }
    .site-nav .nav { display: none; }
    .article-title, .listing-head h1 { font-size: 36px; }
    .cta-row { justify-content: flex-start; }
}
@media (max-width: 560px) {
    .start-cards { grid-template-columns: 1fr; }
}

/* ---- buy block (book live, Aug 2026) ---- */
.buyrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 10px; }
.buynotes { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 6px; }
.buynotes .kunote { display: block; }
.buynotes .intronote { display: block; }
.chapterlink { margin-top: 10px; font-size: 14.5px; }
.buycards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 920px; margin: 34px auto 0; }
.buycard { background: var(--card); border-radius: 16px; padding: 30px 28px; text-align: center;
  box-shadow: 0 2px 4px rgba(60,42,30,.08), 0 18px 44px rgba(60,42,30,.16); }
.buycard.featured { border-top: 4px solid var(--accent); }
.buycard .fmt { font-family: Inter, sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--navy-deep, #1C3A57); margin-bottom: 8px; }
.buycard .price { font-family: 'EB Garamond', serif; font-size: 40px; color: var(--ink); margin-bottom: 10px; }
.buycard .fmtnote { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 8px; }
.buycard .fmtnote.intro { color: var(--ink); }
.buycard .btn, .buycard .btn-ghost { margin-top: 10px; display: inline-block; }
.buy-section { padding: 70px 0 80px; }
.bookdetails-section { padding: 60px 0 80px; }
.bookdetails { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; max-width: 760px; margin-top: 22px; }
.bookdetails .dt { font-family: Inter, sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--navy-deep, #1C3A57); display: block; margin-bottom: 2px; }
.bookdetails .dd { font-size: 15.5px; }
.reviewask { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 15.5px; color: var(--ink-soft); max-width: 560px; }
@media (max-width: 900px) {
  .buycards { grid-template-columns: 1fr; max-width: 380px; }
  .bookdetails { grid-template-columns: 1fr; }
  .buyrow { justify-content: center; }
  .buynotes, .chapterlink { text-align: center; }
}

/* formula stages on light backgrounds (book page) */
.breath-section .stages { margin-top: 26px; }
.breath-section .stage { color: var(--ink); }
.breath-section .stage span { color: var(--gold, #D9A441); }
.breath-section .terms { color: var(--ink-soft); }

/* breathing room between the book-page hero lead and the buy row */
.book-hero .lead { margin-bottom: 34px; }
