/* Harpeth Court Reporters — the one stylesheet for the whole site.
   Colors and fonts live in the variables below; change them here only. */

:root {
  --red: #8e2a2a;            /* primary accent (buttons, red bands) */
  --red-dark: #5a1a1a;       /* red text on grey backgrounds (keeps AA contrast) */
  --slate: #323e48;          /* secondary accent */
  --text: #2c2c2c;
  --bg: #ffffff;
  --overlay-dark: rgba(50, 62, 72, 0.75); /* "dark" section background */
  --overlay-light: rgba(50, 62, 72, 0.5); /* "light" section background */
  --footer: #3e4953;
  --sand: #f0ede6;           /* services page background */
  --button-dark: #32373c;    /* contact form Submit button */
  --font-body: "Noto Serif", Georgia, serif;
  --font-heading: Garamond, "EB Garamond", Georgia, serif;
  --container: 1172px; /* 1140px of content + 16px padding each side */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 1px;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--red); }
a:hover { text-decoration: none; }

:focus-visible { outline: 3px solid #e0a100; outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0 0 0.6em;
}
h1 { font-size: 39px; line-height: 1.2; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
p { margin: 0 0 1.5em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

.visually-hidden, .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.6;
}
.btn-red { background: var(--red); color: #fff; }
.btn-white { background: #fff; color: var(--red); font-weight: 400; padding: 12px 24px; text-transform: capitalize; }
.btn-dark { background: var(--button-dark); color: #fff; border: 0; padding: 16px 24px; font-size: 16px; cursor: pointer; }
.btn:hover { opacity: 0.9; }

/* ---------- header ---------- */
.site-header { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.06); position: relative; z-index: 2; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 70px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 24px; font-weight: 400; letter-spacing: 1px; }
.brand img { width: 36px; height: 36px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.main-nav a:not(.btn) { color: var(--text); text-decoration: none; text-transform: uppercase; font-size: 15px; letter-spacing: 0; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"]:not(.btn) { color: var(--red); }
.main-nav .btn { margin-left: 10px; font-size: 18px; letter-spacing: 1px; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer); color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.footer-inner p { margin: 0; font-weight: 700; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-footer a { color: #fff; text-decoration: none; font-family: var(--font-body); font-weight: 700; font-size: 18px; letter-spacing: 0; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- shared page pieces ---------- */
.page-title { padding: 50px 0 30px; }
.page-title h1 { margin: 0; }
.section { padding: 80px 0; }
.band-red { background: var(--red); color: #fff; }
.band-slate { background: #656e76; color: #fff; }   /* = --overlay-dark on white */
.band-grey { background: #989ea3; color: var(--text); } /* = --overlay-light on white */
.band-sand { background: var(--sand); }
.cols { display: grid; gap: 40px; align-items: center; }
.inner { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.rounded { border-radius: 16px; }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* ---------- home ---------- */
.hero { position: relative; min-height: 821px; display: flex; align-items: center; color: #fff; overflow: hidden; background: #111; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); }
.hero .container { position: relative; z-index: 1; }
.hero-copy { max-width: 700px; padding: 0 8px; }
.hero h1 { font-size: 34px; line-height: 1.1; margin-bottom: 0.9em; }
.hero p { font-size: 19px; line-height: 1.5; }
.features { display: grid; gap: 40px; padding: 100px 16px; max-width: 1000px; margin: 0 auto; text-align: center; font-size: 18px; }
.features h3 { font-size: 26px; }
.cta { padding: 80px 16px; text-align: center; }
.cta .inner { max-width: 640px; }
.cta h2 { font-size: 28px; color: #fff; }
.cta p { font-size: 18px; }

/* ---------- about ---------- */
.about .section { min-height: 600px; display: flex; align-items: center; }
.about .section > .inner { width: 100%; }
.about .band-slate h2, .about .band-red h2 { color: #fff; }
.contact-box { background: var(--red); color: #fff; border-radius: 24px; padding: 48px; display: grid; gap: 24px; }
.contact-box h2 { color: #fff; font-size: 42px; }
.contact-box a { color: #fff; }
.contact-box p { font-size: 18px; }

/* ---------- services ---------- */
.service-grid { display: grid; gap: 40px; max-width: 1140px; margin: 0 auto; padding: 100px 16px; }
.service-card { background: #fff; border-radius: 6px; padding: 24px 20px 60px; text-align: center; color: #080808; }
.service-card h3 { font-size: 30px; color: #080808; }
@media (min-width: 1024px) { .service-card h3 { font-size: 35px; } .post-card h2 { font-size: 38px; } .post-hero { min-height: 800px; } }
.services-intro { padding: 100px 16px; }
.services-intro .cols { max-width: 1140px; margin: 0 auto; }
.services-intro img { width: 317px; margin: 0 auto; }
.services-intro h2 { font-size: 38px; color: #080808; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 40px; padding-bottom: 80px; }
.contact-info { padding-left: 0; }
.contact-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.contact-form label span { font-weight: 400; font-size: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; letter-spacing: 0; padding: 10px 12px; margin-bottom: 24px;
  border: 1px solid #999; border-radius: 4px; background: #fff; color: var(--text);
}
.contact-form textarea { min-height: 200px; resize: vertical; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--red); font-weight: 700; }
.form-thanks h4 { font-family: var(--font-heading); font-size: 26px; font-weight: 600; margin: 0; }

/* ---------- blog ---------- */
.post-list { display: grid; gap: 60px; padding: 60px 16px 100px; }
.post-card { border-radius: 16px; overflow: hidden; background: #989ea3; }
.post-card img { width: 100%; height: 320px; object-fit: cover; }
.post-card .body { padding: 32px; }
.post-card h2 { font-size: 28px; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.post-card a { color: var(--red-dark); }
.post-meta { font-size: 15px; }

.post-hero { position: relative; min-height: 600px; display: flex; align-items: flex-end; color: #fff; background: #333 center / cover no-repeat; overflow: hidden; }
.post-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.post-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.post-hero .container { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 60px; }
.post-hero h1 { font-size: 39px; color: #fff; }
.post-hero .post-meta { font-weight: 700; margin: 0; }
.post-layout { display: grid; gap: 60px; padding-top: 60px; padding-bottom: 80px; }
.post-body h2 { font-size: 34px; margin-top: 0.4em; }
.sidebar h2 { font-family: var(--font-body); font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin-bottom: 12px; }
.sidebar a { color: var(--text); text-decoration: none; }
.sidebar a:hover { color: var(--red); }

/* ---------- 404 ---------- */
.not-found { padding: 80px 16px 120px; text-align: center; }

/* ---------- wider screens ---------- */
@media (min-width: 768px) {
  body { font-size: 18px; }
  h1 { font-size: 55px; }
  h2 { font-size: 34px; }
  .hero h1 { font-size: 48px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .cols-2 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-info { padding-left: 66px; }
  .contact-box { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 2.3fr 1fr; }
  .post-hero h1 { font-size: 55px; }
}

@media (min-width: 1024px) {
  body { font-size: 20px; line-height: 1.4; }
  h1 { font-size: 70px; }
  h2 { font-size: 46px; }
  .hero h1 { font-size: 60px; }
  .features { grid-template-columns: repeat(4, 1fr); }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .cta h2 { font-size: 46px; }
  .post-card img { height: 320px; }
  .post-hero h1 { font-size: 70px; }
}

@media (max-width: 767px) {
  .text-right { text-align: left; }
  .hero { min-height: 640px; }
  .about .section { min-height: 0; }
  .contact-box { padding: 32px 24px; }
  .contact-box h2 { font-size: 34px; }
  .main-nav .btn { margin-left: 0; }
  .post-hero { min-height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media[autoplay] { display: none; }
  .hero { background: #111 url("/assets/2025/04/steno-machine-poster.jpg") center / cover no-repeat; }
}
.portrait { max-width: 347px; margin-left: auto; }
