/* Agape Ink — black, white and gold from the logo.
   Layout: ink masthead and hero, white reading bands, gold hairlines marking divisions.
   Single brand look by design (same in light and dark device settings). */
:root {
  --ink: #0d0c0a;
  --ink-2: #1b1915;
  --paper: #ffffff;
  --stone: #f1efeb;
  --text: #1d1b18;
  --muted: #5d5850;
  --on-ink: #f4f1ea;
  --on-ink-muted: #b7b0a3;
  --gold: #b8914f;
  --gold-deep: #8c6a30;
  --gold-soft: #d8bd85;
  --line: #e2ddd3;
  --line-ink: #3a352c;
  --display: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .6em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1140px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Masthead */
.mast { background: var(--ink); border-bottom: 1px solid var(--line-ink); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.mast-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand img { width: 168px; height: auto; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--on-ink); text-decoration: none; font-size: .9rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding-block: 6px; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-soft); border-bottom-color: var(--gold); }
.menu-btn { display: none; background: none; border: 1px solid var(--gold); color: var(--on-ink); font: 600 .8rem var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px; border-radius: 2px; cursor: pointer; }
@media (max-width: 1020px) {
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; gap: 0; padding: 8px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line-ink); }
  .site-nav.open { display: flex; }
  .site-nav a { padding-block: 12px; border-bottom: 1px solid var(--line-ink); }
  .brand img { width: 140px; }
}

/* Hero */
.hero { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero-inner { padding-block: clamp(56px, 9vw, 112px); max-width: 1140px; }
.hero h1 { max-width: 17ch; color: var(--paper); }
.lede { font-size: 1.2rem; color: var(--on-ink-muted); max-width: 58ch; margin-top: 1.1em; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.1em; }
.eyebrow.dark { color: var(--gold-deep); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2em; }

/* Buttons */
.btn { display: inline-block; background: var(--gold); color: var(--ink); text-decoration: none; font: 600 .88rem var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 14px 26px; border: 1px solid var(--gold); border-radius: 2px; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--gold-soft); }
.btn-ghost:hover { background: var(--gold); color: var(--ink); }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); color: var(--gold-deep); }

/* Bands */
.band { padding-block: clamp(56px, 8vw, 96px); background: var(--paper); }
.band-stone { background: var(--stone); }
.band-ink { background: var(--ink-2); color: var(--on-ink); }
.band-ink h2 { color: var(--paper); }
.band-ink p { color: var(--on-ink-muted); }
.sec-head { margin-bottom: 36px; max-width: 60ch; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(32px, 6vw, 80px); align-items: start; }
.split > * { min-width: 0; }
.fine { font-size: .88rem; color: var(--muted); }
.band-ink .fine { color: var(--on-ink-muted); }

/* Divisions */
.div-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--gold); }
.div-card { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px 30px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); transition: background .2s; }
.div-card:hover { background: var(--stone); }
.div-card p { color: var(--muted); margin: 0; flex: 1; }
.div-tag { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.more { font-weight: 600; font-size: .9rem; color: var(--gold-deep); }
.more::after { content: " \2192"; }

/* Proof list */
.proof { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-ink); border: 1px solid var(--line-ink); }
.proof li { background: var(--ink-2); padding: 24px 20px; display: flex; flex-direction: column; gap: 6px; }
.proof strong { font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--gold-soft); line-height: 1; }
.proof span { color: var(--on-ink-muted); font-size: .95rem; }

/* Press */
.press { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.press li { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.press strong { font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.press span { color: var(--muted); font-size: .9rem; }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band > div { min-width: 0; max-width: 60ch; }
.cta-band p { color: var(--muted); margin: 0; }

/* About */
.values { margin: 0; display: grid; gap: 4px 0; }
.values dt { font-family: var(--display); font-size: 1.15rem; color: var(--gold-deep); margin-top: 14px; }
.values dd { margin: 0; color: var(--muted); }
.leader { max-width: 70ch; }
.creds { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.creds li { border: 1px solid var(--gold); color: var(--text); padding: 6px 14px; font-size: .9rem; border-radius: 2px; background: var(--paper); }

/* Capabilities */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 24px; }
.svc { border-top: 2px solid var(--gold); padding-top: 18px; min-width: 0; }
.svc ul, .checklist { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.svc li { color: var(--muted); padding-left: 16px; position: relative; }
.svc li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: var(--gold); }
.checklist li { padding-left: 26px; position: relative; color: var(--on-ink); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 5px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.checklist.dark li { color: var(--text); }
.checklist + .btn { margin-top: 24px; }
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.work article { background: var(--stone); padding: 26px; min-width: 0; }
.work p { color: var(--muted); }
.sector { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep) !important; margin: 6px 0 12px; }
.data { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; }
.data dt { font-weight: 600; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
.data dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .data { grid-template-columns: 1fr; gap: 2px; } .data dd { margin-bottom: 10px; } }
.table-wrap { overflow-x: auto; }
.naics { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.naics td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.naics td:first-child { font-weight: 700; color: var(--gold-deep); white-space: nowrap; width: 5.5em; }

/* Publishing */
.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 0; border-top: 1px solid var(--gold); }
.book { padding: 24px 22px 26px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.book p { color: var(--muted); margin: 0; }
.book .sub { font-style: italic; }
.book .text-link { margin-top: 8px; align-self: flex-start; }
.book-top { display: flex; align-items: center; gap: 10px; min-height: 24px; }
.role { font-size: .75rem !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep) !important; }
.badge { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--gold-soft); padding: 3px 8px; border-radius: 2px; }
.review { margin: 0; border-left: 2px solid var(--gold); padding-left: 24px; }
.review p { font-family: var(--display); font-size: 1.45rem; line-height: 1.4; color: var(--text); }
.review cite { font-style: normal; color: var(--muted); font-size: .95rem; }

/* Studios */
.slate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.slate { background: var(--ink); color: var(--on-ink); padding: 34px 30px; border: 1px solid var(--line-ink); min-width: 0; }
.slate h3 { color: var(--paper); font-size: 1.8rem; }
.slate .sub { color: var(--gold-soft); font-style: italic; margin: 6px 0 14px; }
.slate p { color: var(--on-ink-muted); }
.slate-status { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold) !important; border: 1px solid var(--gold); display: inline-block; padding: 3px 10px; margin-bottom: 18px; }

/* Contact form */
.form { display: grid; gap: 16px; background: var(--stone); padding: clamp(20px, 4vw, 34px); min-width: 0; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.form input, .form select, .form textarea { font: 400 1rem var(--body); color: var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 11px 12px; width: 100%; }
.form .btn { justify-self: start; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }

/* Footer */
.foot { background: var(--ink); color: var(--on-ink-muted); padding-top: 56px; border-top: 1px solid var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; }
.foot-grid > div { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.foot h4 { font-family: var(--body); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 4px; }
.foot a { color: var(--on-ink); text-decoration: none; font-size: .95rem; overflow-wrap: anywhere; }
.foot a:hover { color: var(--gold-soft); }
.foot-brand img { width: 160px; margin-bottom: 8px; }
.foot-brand p { font-size: .95rem; max-width: 34ch; }
.partner { margin-top: 10px; font-size: .9rem; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line-ink); padding-block: 18px 24px; font-size: .85rem; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-grid { grid-template-columns: 1fr; } .proof { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* About: vision and division list */
.mt { margin-top: 1.2em; }
.vision { font-family: var(--display); font-size: 1.4rem; line-height: 1.4; color: var(--text); border-left: 2px solid var(--gold); padding-left: 20px; }
.div-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-ink); }
.div-list a { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--line-ink); text-decoration: none; }
.div-list strong { font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--gold-soft); }
.div-list span { color: var(--on-ink-muted); }
.div-list a:hover strong { color: var(--paper); }
@media (max-width: 640px) { .div-list a { grid-template-columns: 1fr; } }
.work-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px 64px; }
.price-group { min-width: 0; }
.price-group h2 { font-size: 1.45rem; border-bottom: 1px solid var(--gold); padding-bottom: 10px; margin-bottom: 4px; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; align-items: baseline; gap: 10px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.pl-name { min-width: 0; }
.pl-dots { flex: 1; border-bottom: 1px dotted var(--gold-soft); transform: translateY(-4px); min-width: 16px; }
.pl-price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--gold-deep); }
@media (max-width: 420px) { .site-nav a { font-size: .85rem; } }

/* Why Agape Ink */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 0; border-top: 1px solid var(--gold); }
.why { padding: 24px 24px 26px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.why h3 { color: var(--gold-deep); margin-bottom: 8px; }
.why p { color: var(--muted); margin: 0; }

/* Publishing: featured original titles */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 40px; }
.feature { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 26px; align-items: start; }
.feature .cover { display: block; box-shadow: 0 14px 30px -12px rgba(13, 12, 10, .45); }
.feature .cover img { width: 100%; height: auto; }
.feature-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.feature-body h3 { font-size: 1.6rem; }
.feature-body p { color: var(--muted); margin: 0; }
.feature-body .btn { margin-top: 10px; }
@media (max-width: 480px) { .feature { grid-template-columns: minmax(0, 130px) minmax(0, 1fr); gap: 18px; } .feature-body h3 { font-size: 1.3rem; } }

/* Client testimonial inside a work entry */
.testimonial { margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--gold); }
.testimonial p { font-family: var(--display); font-size: 1.05rem; line-height: 1.55; color: var(--text) !important; margin: 0 0 12px; }
.testimonial cite { font-style: normal; display: flex; flex-direction: column; font-size: .88rem; color: var(--muted); }
.testimonial cite strong { color: var(--text); font-weight: 600; }
.testimonial .disclosure { font-family: var(--body); font-size: .78rem !important; color: var(--muted) !important; margin: 10px 0 0; font-style: italic; }
.work { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.testimonial-wide { margin-top: 36px; padding: 32px 0 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px 48px; align-items: end; }
.testimonial-wide p:first-child { grid-column: 1 / -1; font-size: 1.4rem; line-height: 1.5; max-width: 62ch; }
.testimonial-wide .disclosure { margin: 0; text-align: right; }
@media (max-width: 700px) { .testimonial-wide { grid-template-columns: 1fr; } .testimonial-wide .disclosure { text-align: left; } .testimonial-wide p:first-child { font-size: 1.15rem; } }
