/* O’Connor Telezinski — site stylesheet
   Brand colors: OT Blue #0081c1 (primary), OT Orange #ec6a05 (accent),
   50% Gray #808080 (neutral), Black #000000 (default text).
   Typefaces for webpages: Michroma (headings only) and Lora (all other text), SIL OFL 1.1,
   using the font files from the ot-brand skill, unmodified.
   No colors outside the brand palette (plus white for backgrounds).

   WCAG 2.1 AA contrast notes (measured against white):
   - Black text: 21:1, any size.
   - OT Blue text: 4.28:1. Used only for large text. Michroma has no bold weight,
     so "large" here means 24px (1.5rem) or larger.
   - Black on OT Blue: 4.91:1. Used for buttons (default and hover states) at any size.
   - OT Orange (3.17:1) and 50% Gray (3.95:1) never carry text. They appear only as
     rules, borders, and focus outlines (non-text contrast minimum is 3:1).
   - Links are black with an OT Blue underline, so they never rely on color alone. */

@font-face {
  font-family: "Michroma";
  src: url("../fonts/Michroma-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --ot-blue: #0081c1;
  --ot-orange: #ec6a05;
  --gray: #808080;
  --black: #000000;
  --white: #ffffff;
  --font-display: "Michroma", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
  --wrap: 72rem;
  --measure: 40rem;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  border-top: 6px solid var(--ot-blue);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0.01em;
}

h1, h2, h3 { line-height: 1.3; margin: 0 0 0.6em; overflow-wrap: break-word; }
h1 { color: var(--ot-blue); font-size: clamp(1.5rem, 3.6vw, 2.6rem); }
h2 { color: var(--ot-blue); font-size: 1.5rem; }
h3 { color: var(--black); font-size: 1.05rem; line-height: 1.45; }

p, ul, ol, dl { margin: 0 0 1.1em; }
p, li { max-width: var(--measure); }

a {
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--ot-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-color: var(--ot-orange); text-decoration-thickness: 3px; }

:focus-visible {
  outline: 3px solid var(--ot-orange);
  outline-offset: 3px;
}

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

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  background: var(--white);
  padding: 0.75rem 1rem;
  border: 2px solid var(--black);
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--gray); }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.logo { display: inline-block; text-decoration: none; line-height: 0; }
.logo img {
  display: block;
  width: clamp(14rem, 28vw, 20rem);
  max-width: 100%;
  height: auto;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.site-nav li { max-width: none; }
.site-nav a {
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--ot-blue); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ot-orange); }

/* Sections */
main:focus { outline: none; }
.section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section + .section,
.hero + .section { border-top: 1px solid var(--gray); }
.lead { font-size: 1.25rem; line-height: 1.6; }
.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
.page-head h1 { margin-bottom: 0.4em; }
.rule {
  width: 4.5rem;
  height: 6px;
  margin: 0 0 1.5rem;
  border: 0;
  background: var(--ot-orange);
}

/* Home hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.75rem, 6vw, 4.5rem); }
.hero h1 { font-size: clamp(1.5rem, 4.4vw, 3.1rem); max-width: 22ch; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }
.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--ot-blue);
  line-height: 1.4;
}
.btn-primary { background: var(--ot-blue); color: var(--black); }
.btn-primary:hover { background: var(--white); text-decoration: none; }
.btn-secondary { background: var(--white); color: var(--black); }
.btn-secondary:hover { background: var(--ot-blue); text-decoration: none; }

/* Who we serve */
.serve {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem 2.5rem;
}
.serve li {
  border-left: 4px solid var(--ot-orange);
  padding: 0.15rem 0 0.15rem 1.1rem;
  font-size: 1.1rem;
}

/* Credentials */
.credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem 3rem;
  margin: 2rem 0 0;
}
.credentials div { border-top: 3px solid var(--ot-blue); padding-top: 1rem; }
.credentials dt { font-weight: 700; margin-bottom: 0.3rem; line-height: 1.45; }
.credentials dd { margin: 0; }

/* Service rows */
.rows { margin-top: 1.5rem; border-top: 1px solid var(--gray); }
.row {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) 2fr;
  gap: 0.5rem 3rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--gray);
}
.row h3 { margin: 0; }
.row p { margin: 0 0 0.5rem; }
@media (max-width: 44rem) { .row { grid-template-columns: 1fr; } }

/* Services page */
.service { scroll-margin-top: 1.5rem; }
.service + .service { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--gray); }

/* Lists */
.columns {
  columns: 3 15rem;
  column-gap: 2.5rem;
  padding-left: 1.2rem;
}
.columns li { break-inside: avoid; margin-bottom: 0.35rem; }
.client-group + .client-group { margin-top: 2rem; }

/* Team */
.team-group + .team-group { margin-top: 2.25rem; }
.team {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem 2rem;
}
.team li { border-top: 3px solid var(--ot-blue); padding-top: 0.75rem; }
.team-name { font-size: 1.1rem; font-weight: 700; line-height: 1.45; }
.team-role { display: block; font-size: 1rem; }

/* Person page */
.person {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.5rem 3rem;
  align-items: start;
}
@media (max-width: 40rem) { .person { grid-template-columns: 1fr; } }
.headshot {
  display: block;
  width: 11rem;
  max-width: 100%;
  height: auto;
}
@media (max-width: 40rem) { .headshot { width: 8rem; } }
.role-line { font-size: 1.1rem; font-weight: 600; margin: -0.2rem 0 1.25rem; }
.cred-list { padding-left: 1.2rem; }
.back-link { margin-top: 2.5rem; }

/* Contact */
address { font-style: normal; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem 3rem;
}
.contact-grid > div { border-top: 3px solid var(--ot-blue); padding-top: 1rem; }
.contact-grid h2 { font-size: 1.5rem; }
.notice {
  border-left: 4px solid var(--ot-orange);
  padding-left: 1.1rem;
  margin-top: 2.5rem;
}

/* Footer */
.site-footer {
  border-top: 4px solid var(--ot-blue);
  padding: 2.75rem 0 2rem;
  font-size: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem 3rem;
  margin-bottom: 2rem;
}
.footer-grid h2 {
  font-size: 1rem;
  color: var(--black);
  margin-bottom: 0.5rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.3rem; }
.identity-name { font-weight: 700; }
.disclaimer {
  border-top: 1px solid var(--gray);
  padding-top: 1.25rem;
  font-size: 0.95rem;
}
.disclaimer p { max-width: 60rem; }

@media print {
  body { border-top: 0; }
  .site-nav, .skip-link, .btn-row { display: none; }
  a { text-decoration: none; }
}
.section.flush { padding-top: 0; }
.page-head.solo { padding-bottom: clamp(3rem, 7vw, 5rem); }
