/* Hetton Advisory: static site styles. No external fonts, scripts or trackers. */

:root {
  --ink: #22252a;
  --muted: #555a62;
  --line: #dcdcdc;
  --wash: #f4f2ef;
  --accent: #b0222e;
  --accent-dark: #8f1b25;
  --max: 68rem;
  --text: 42rem; /* the one text width used on every page */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

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

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 20;
  background: #fff; color: var(--ink); padding: 0.75rem 1rem;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header and navigation */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem 2rem; padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.brand img { width: 220px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.site-nav a {
  display: inline-block; color: var(--ink); text-decoration: none;
  font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Hero and page banners */
.hero, .banner { position: relative; overflow: hidden; background: #2b2d30; color: #fff; }
.hero > img, .banner > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after, .banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15, 17, 20, 0.74), rgba(15, 17, 20, 0.3));
}
.hero .wrap { position: relative; z-index: 1; padding-top: 6rem; padding-bottom: 6rem; }
.hero h1 { color: #fff; margin-bottom: 0.5rem; }
.hero .tag { font-size: 1.15rem; letter-spacing: 0.04em; margin-bottom: 2rem; max-width: 40rem; }
.banner { height: 9rem; }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 0.75rem 1.6rem; font-size: 0.9rem; letter-spacing: 0.08em;
  text-transform: uppercase; border-radius: 2px;
}
.btn:hover { background: var(--accent-dark); color: #fff; }

/* Sections */
.section { padding: 3.5rem 0; }
.section.alt { background: var(--wash); }
.prose { max-width: var(--text); }
/* A full-width container that also holds prose: keep it left-aligned with the rest of the page */
.wrap.prose { max-width: var(--max); }
.wrap.prose > * { max-width: var(--text); }
.wrap.prose h2 { margin-top: 2.25rem; }
.wrap.prose h1 + h2 { margin-top: 1.5rem; }
.kicker {
  display: block; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  margin-bottom: 0.5rem;
}

/* Book */
/* The text column uses the same width as every other block of text on the site;
   the covers sit at the right-hand edge of the page. */
.book { display: grid; grid-template-columns: minmax(0, var(--text)) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.book .covers { display: flex; justify-content: flex-end; gap: 1rem; }
.book .covers img { width: min(10rem, calc(50% - 0.5rem)); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.card { border-top: 3px solid var(--accent); padding-top: 1rem; }
.card h3 { text-transform: uppercase; letter-spacing: 0.08em; font-size: 1rem; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 600; }
.card p { color: var(--muted); }

/* People */
.person { display: grid; grid-template-columns: 10rem 1fr; gap: 1.5rem 2rem; align-items: start; margin-bottom: 2rem; max-width: var(--text); }
.person img { width: 10rem; height: 10rem; border-radius: 50%; object-fit: cover; background: var(--wash); }
.person h3 { margin-bottom: 0.4rem; }

/* Contact */
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.contact-list li { padding: 0.75rem 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list strong { display: inline-block; min-width: 6rem; }

/* Legal pages */
.legal h2 { font-size: 1.25rem; margin-top: 2.25rem; }
.legal h3 { font-size: 1.05rem; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 600; margin: 1.5rem 0 0.4rem; }
.legal ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.5rem; }
.legal blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 3px solid var(--line); color: var(--muted); }

/* Contact band and footer */
.cta { text-align: center; }
.cta .prose { margin: 0 auto; }

.site-footer { background: var(--wash); border-top: 1px solid var(--line); padding: 2rem 0; font-size: 0.95rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-footer a { color: var(--ink); }
.site-footer p { margin: 0; }

@media (max-width: 66rem) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book { grid-template-columns: 1fr; }
  .book .covers { justify-content: flex-start; }
  .book .covers img { width: min(11rem, calc(50% - 0.5rem)); }
}

@media (max-width: 36rem) {
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 44rem) {
  .hero .wrap { padding-top: 4rem; padding-bottom: 4rem; }
  .person { grid-template-columns: 1fr; }
  .banner { height: 6.5rem; }
  .brand img { width: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-nav, .hero > img, .banner, .skip { display: none; }
  .hero { background: none; color: var(--ink); }
  .hero h1 { color: var(--ink); }
  .hero::after { display: none; }
}
