/* ==========================================================================
   Daniel Bradford — Audiobook Production & Audio Services
   Design system: editorial print meets the recording booth.
   ========================================================================== */

:root {
  --ink:        #1B2028;
  --ink-soft:   #2C333E;
  --parchment:  #F6F3EC;
  --paper:      #FDFCF9;
  --brass:      #A9814F;
  --brass-dim:  #8A6B41;
  --slate:      #5B6470;
  --line:       #D9D3C6;
  --line-dark:  #3A414C;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Source Serif 4", Georgia, serif;
  --mono:    "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --max: 1180px;
  --pad: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.05; font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; }
h3 { font-size: 1.3rem; line-height: 1.3; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }
p.lede { font-size: 1.2rem; color: var(--ink); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--brass-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass-dim);
  display: inline-block;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand span {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--brass-dim);
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--brass);
}

.nav-cta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 18px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--brass-dim); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  width: 40px;
  height: 36px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 3.5px auto;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(60px, 10vw, 120px) 0 clamp(50px, 8vw, 90px);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lede { max-width: 46ch; }
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Waveform signature */
.waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 64px;
  margin: 34px 0 6px;
}
.waveform i {
  display: block;
  width: 3px;
  background: var(--brass);
  opacity: 0.55;
  border-radius: 1px;
  animation: wf 2.6s ease-in-out infinite;
}
@keyframes wf {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}
.timecode {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--slate);
  letter-spacing: 0.05em;
}

.hero-portrait {
  position: relative;
}
.hero-portrait .frame {
  border: 1px solid var(--line-dark);
  padding: 14px;
  background: var(--paper);
}
.hero-portrait img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: grayscale(15%);
}
.hero-portrait figcaption {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--slate);
  letter-spacing: 0.04em;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 14px 24px;
  border-radius: 2px;
  border: 1px solid var(--ink);
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--brass-dim); border-color: var(--brass-dim); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

/* ---------- Generic sections ---------- */
section { padding: clamp(56px, 9vw, 100px) 0; }
.section-border { border-bottom: 1px solid var(--line); }
.section-dark {
  background: var(--ink);
  color: var(--parchment);
}
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark p { color: #C9CDD4; }
.section-dark .eyebrow { color: var(--brass); }
.section-dark .eyebrow::before { background: var(--brass); }

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 28px;
}
.card .num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--brass-dim);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  display: block;
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Process list ---------- */
.process-list { list-style: none; margin: 0; padding: 0; }
.process-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.process-item:last-child { border-bottom: 1px solid var(--line); }
.process-item .stamp {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--brass-dim);
  padding-top: 4px;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--brass-dim);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding-top: 14px; max-width: 62ch; }

/* ---------- Pricing / service tiers ---------- */
.tier {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
}
.tier.featured { border-color: var(--ink); }
.tier .tier-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--brass-dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tier ul { padding-left: 0; list-style: none; margin: 20px 0 28px; flex-grow: 1; }
.tier li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Contact form ---------- */
.form-grid { display: grid; gap: 22px; max-width: 640px; }
.form-row { display: grid; gap: 8px; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 22px; }
label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
}
input, select, textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 13px 14px;
  border: 1px solid var(--line-dark);
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}
textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: 0.85rem; color: var(--slate); }

#form-confirmation {
  display: none;
  border: 1px solid var(--brass-dim);
  background: rgba(169, 129, 79, 0.08);
  padding: 20px 22px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 0.9rem;
}
#form-confirmation.show { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 50px 0 36px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 26px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.footer-links a { font-size: 0.9rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--slate);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--slate);
  padding: 20px 0 0;
}
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--ink); }

/* ---------- Popup ---------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 32, 40, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}
.popup-overlay.show { display: flex; }
.popup {
  background: var(--paper);
  border: 1px solid var(--line-dark);
  max-width: 440px;
  width: 100%;
  padding: 38px 34px;
  position: relative;
}
.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--slate);
  width: 32px;
  height: 32px;
}
.popup-close:hover { color: var(--ink); }
.popup h3 { margin-bottom: 10px; }
.popup .btn { margin-top: 18px; width: 100%; justify-content: center; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 340px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: var(--parchment);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--pad) 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 12px 0; border-top: 1px solid var(--line); }
  .nav-links li:first-child { border-top: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links .nav-cta-mobile { display: inline-flex; margin-top: 10px; }
  .process-item { grid-template-columns: 1fr; gap: 6px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .waveform i { animation: none; transform: scaleY(0.7); }
  html { scroll-behavior: auto; }
}
