/* font setup */
@font-face {
  font-family: "Apple Garamond";
  src: url("fonts/AppleGaramond.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Apple Garamond";
  src: url("fonts/AppleGaramond-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #100d0d;
  --bg-soft: #171111;
  --text: #f5f5f5;
  --muted: #c9bcbc;
  --card: rgba(255, 255, 255, 0.04);
  --card-strong: rgba(130, 0, 0, 0.18);
  --border: rgba(255, 255, 255, 0.16);
  --button-border: rgba(255, 255, 255, 0.28);
  --red: #7b0000;
  --red-bright: #b00000;
  --red-glow: rgba(166, 0, 0, 0.36);
  --font-display: "Apple Garamond", Georgia, serif;
  --font-body: "Apple Garamond", Georgia, serif;
}

/* global styles */
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 12%, rgba(122, 0, 0, 0.18), transparent 20rem),
    linear-gradient(145deg, #0c0b0b, var(--bg-soft) 54%, #070707);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
body::before,
body::after { position: fixed; inset: 0; pointer-events: none; content: ""; }

/* background effects */
body::before {
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, transparent 0 18px, rgba(176, 0, 0, 0.12) 18px 20px, transparent 20px 80px),
    linear-gradient(transparent 0 38px, rgba(176, 0, 0, 0.1) 38px 40px, transparent 40px 120px);
  background-position: center;
  background-size: 48px 48px, 48px 48px, 160px 160px, 160px 160px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
  opacity: 0.26;
}
body::after {
  z-index: 0;
  background: radial-gradient(circle at 50% 18%, rgba(160, 0, 0, 0.12), transparent 14rem);
  opacity: 0.75;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.85); outline-offset: 4px; }
.site-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 36px) 24px;
}
h1, h2, .nav-button, .eyebrow { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; }
h1, h2, p { margin-top: 0; }

/* logo/header */
.site-header { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.hero-header { margin: auto 0 0; }
.logo-wrap { position: relative; display: inline-grid; place-items: center; text-decoration: none; }
.logo-wrap::before {
  position: absolute;
  width: 104%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 0, 0, 0.34), rgba(122, 0, 0, 0.18) 34%, transparent 64%);
  filter: blur(10px);
  content: "";
}
.site-logo {
  position: relative;
  display: block;
  width: clamp(140px, 21vw, 190px);
  height: auto;
  filter: drop-shadow(0 0 14px rgba(176, 0, 0, 0.32));
  animation: logo-pulse 6.5s ease-in-out infinite;
}
.home-logo { width: clamp(180px, 28vw, 240px); }
@keyframes logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(176, 0, 0, 0.26)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 24px rgba(176, 0, 0, 0.44)); transform: scale(1.012); }
}
h1 {
  max-width: 1900px;
  margin-bottom: 0;
  font-size: clamp(2.8rem, 7.8vw, 5.8rem);
  line-height: 0.95;
  text-wrap: balance;
  text-shadow: 0 0 14px rgba(176, 0, 0, 0.52), 0 0 34px rgba(122, 0, 0, 0.34);
}
h2 { text-shadow: 0 0 12px rgba(176, 0, 0, 0.38); }
.lede {
/*  max-width: 1700px; */
  margin-bottom: 2px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.55;
}

/* navigation buttons */
.button-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px 12px;
  border: 1px solid var(--button-border);
  border-radius: 8px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.14);
  box-shadow: 0 0 0 rgba(176, 0, 0, 0);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(176, 0, 0, 0.42);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.nav-button:hover, .nav-button:focus-visible, .nav-button[aria-current="page"] {
  border-color: #ffffff;
  color: #000000;
  background: #ffffff;
  box-shadow: 0 10px 32px rgba(176, 0, 0, 0.2);
  text-shadow: none;
  transform: translateY(-2px);
}

/* homepage */
.home-page .site-shell { justify-content: center; }
.home-page .site-footer { margin-top: auto; }

/* services page */
.content-wrap { flex: 1; width: 100%; margin-top: clamp(34px, 6vw, 64px); }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(130, 0, 0, 0.12), rgba(255, 255, 255, 0.025));
  box-shadow: 0 0 34px rgba(176, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.service-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(145deg, rgba(130, 0, 0, 0.2), rgba(255, 255, 255, 0.038));
  box-shadow: 0 18px 46px rgba(176, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}
.service-card h2 { margin-bottom: 5px; font-size: clamp(1.12rem, 2vw, 1.4rem); line-height: 1.15; }
.service-card p { margin-bottom: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.38; }
.service-card dl { display: grid; gap: 8px; min-width: 124px; margin: 0; }
.service-card dt { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.service-card dd { margin: 0; color: var(--text); font-size: 1rem; font-weight: 700; line-height: 1.2; }

/* contact page */
.contact-main { display: grid; flex: 1; place-items: center; width: 100%; padding: clamp(34px, 7vw, 72px) 0; }
.contact-card {
  width: min(100%, 680px);
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 0 48px rgba(176, 0, 0, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.contact-card:hover { border-color: rgba(255, 255, 255, 0.31); background: var(--card-strong); box-shadow: 0 18px 56px rgba(176, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08); transform: translateY(-3px); }
.eyebrow { margin-bottom: 10px; color: var(--muted); font-size: 0.95rem; text-transform: uppercase; }
.contact-card h2 { margin-bottom: 18px; font-size: clamp(1.35rem, 3.2vw, 2.15rem); line-height: 1.18; text-wrap: balance; }
.email-line { margin-bottom: 24px; color: var(--muted); }
.email-line a { color: var(--text); text-decoration-color: rgba(255, 255, 255, 0.34); text-underline-offset: 4px; }
.primary-button { min-width: 170px; }

/* tools page */
.tools-main { display: grid; flex: 1; place-items: center; width: 100%; padding: clamp(34px, 7vw, 72px) 0; }
.tools-card {
  width: min(100%, 680px);
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 0 48px rgba(176, 0, 0, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.tool-row {
  display: flex;
  align-items: left;
  justify-content: left;
  gap: 30px;
}
.tool-download { min-width: min(100%, 240px); flex: 0 0 auto; }
.tool-description {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  line-height: 1.25;
  text-align: left;
}

/* footer */
.site-footer { margin-top: clamp(34px, 6vw, 64px); padding-top: 20px; color: rgba(201, 188, 188, 0.72); font-size: 0.78rem; line-height: 1.5; text-align: center; }
.site-footer p { margin-bottom: 0; }

/* responsive styles */
@media (max-width: 760px) {
  .site-shell { padding-top: 24px; }
  .content-wrap { margin-top: 26px; }
  .services-grid { grid-template-columns: 1fr; gap: 10px; }
  .service-card { grid-template-columns: 1fr; gap: 10px; min-height: 0; padding: 16px; }
  .service-card dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; min-width: 0; }
  .service-card h2 { margin-bottom: 3px; font-size: 1.15rem; }
  .service-card p { font-size: 0.88rem; line-height: 1.32; }
  .service-card dd { font-size: 0.96rem; }
}
@media (max-width: 520px) {
  .button-row { align-items: stretch; flex-direction: column; }
  .nav-button { width: 100%; }
  .service-card { padding: 14px; }
  .contact-card { padding: 20px; }
  .tool-row { align-items: stretch; flex-direction: column; gap: 12px; }
  .tool-description { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .site-logo { animation: none; } }
