/* Echo South brand styles shared by every redesigned page: fonts, colours, type, header, buttons, forms, contact lines, footer. */
/* Self-hosted fonts (assets/fonts, SIL Open Font License), so pages never wait on a third-party font server. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 800; font-stretch: 62% 100%; font-display: swap; src: url("fonts/archivo-800-condensed-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url("fonts/instrument-sans-400-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  color-scheme: dark;
  --ink: #0B0A0A;
  --ink-2: #141213;
  --ink-3: #1E1B1C;
  --line: #2C2728;
  --text: #F5F1EE;
  --text-2: #BCB4B0;
  --text-3: #8F8783;
  --red: #E0262C;
  --red-deep: #8E0F14;
  --red-hi: #FF4B51;
  --error: #FF8A8E;
  --bar: rgba(11, 10, 10, .94);
  --bar-line: rgba(255, 255, 255, .06);
  --drop-shadow: 0 24px 48px rgba(0, 0, 0, .5);
  --gutter: clamp(16px, 5vw, 80px);
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
/* light mode: same brand, cream paper instead of ink. Dark is the default; the header switch sets data-theme on <html>
   and the inline script in each page's <head> restores the visitor's choice before first paint. */
:root[data-theme="light"] {
  color-scheme: light;
  --ink: #FAF7F4;
  --ink-2: #FFFFFF;
  --ink-3: #EFE9E3;
  --line: #DCD5CF;
  --text: #161314;
  --text-2: #4F4846;
  --text-3: #6B6360;
  --red-hi: #B3141A;
  --error: #B3141A;
  --bar: rgba(250, 247, 244, .94);
  --bar-line: rgba(22, 19, 20, .08);
  --drop-shadow: 0 24px 48px rgba(22, 19, 20, .14);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red-hi); outline-offset: 3px; }
.mono { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.display { margin: 0; font-family: var(--display); font-stretch: 70%; font-weight: 800; line-height: .94; letter-spacing: -.005em; text-wrap: balance; }
.eyebrow { margin: 0; color: var(--red-hi); }
.lede { margin: 0; color: var(--text-2); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .3s cubic-bezier(.2,.7,.2,1), background-color .2s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #EE3339; }
.btn svg { width: 18px; height: 18px; }

/* header */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter) 12px; background: var(--bar); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--bar-line); }
.brand { display: block; color: var(--text); text-decoration: none; }
.brand svg { display: block; height: 28px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-header nav a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-header nav a:hover { color: var(--text); }
.menu-toggle { display: none; }
/* dark and light mode switch: shows the mode it switches to */
.theme-toggle { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); font: 500 18px/1 var(--body); cursor: pointer; transition: border-color .2s, background-color .2s; }
.theme-toggle:hover { border-color: var(--text-3); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .to-dark, :root[data-theme="light"] .theme-toggle .to-light, .theme-toggle .theme-label { display: none; }
:root[data-theme="light"] .theme-toggle .to-dark { display: block; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--text); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* audit request forms: the fields and submit flow match the rest of the site (assets/site.js, assets/forms.css) */
.check { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 780px; }
.check-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field span { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.field input { width: 100%; height: 56px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--ink-3); color: var(--text); font: 400 17px/1 var(--body); }
.field input:focus { border-color: var(--red-hi); }
.field input::placeholder { color: var(--text-3); }
.check .btn { height: 56px; }
.btn-arrow::after { content: "\2192"; font-weight: 400; }
.btn-arrow:disabled::after { content: none; }
.check .form-note { margin: 0; color: var(--text-3); font-size: 14px; }
.check .form-note.is-error { color: var(--error); }
.check.is-complete .check-grid, .check.is-complete .form-note { display: none; }
.check .submission-success { background: var(--ink-3); border: 1px solid var(--line); border-radius: 20px; padding: 28px; text-align: left; color: var(--text); }
.check .submission-success .success-icon { margin: 0 0 16px; background: var(--red); }
.check .submission-success h3 { margin: 0 0 10px; font-family: var(--display); font-size: clamp(28px, 3vw, 40px); font-stretch: 70%; font-weight: 800; line-height: 1; }
.check .submission-success p { margin: 0; max-width: 520px; color: var(--text-2); }
.check .success-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 20px; }
.check .success-actions .calendar-cta { display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--red); color: #FFFFFF; font: 700 15px/1 var(--body); text-decoration: none; }
.check .success-actions .calendar-cta:hover { background: #EE3339; }
.check .guide-link { color: var(--text); border-bottom-color: var(--red); text-decoration: none; }

/* paper sections */
.paper { --text: #161314; --text-2: #4F4846; --text-3: #6B6360; --line: #DCD5CF; --ink-2: #FFFFFF; --ink-3: #E7E1DB; --red-hi: #B3141A; --error: #B3141A; background: #F1EDE8; color: var(--text); }
/* in light mode the paper sections flip to ink, so they still stand apart from the page */
:root[data-theme="light"] .paper { --text: #F5F1EE; --text-2: #BCB4B0; --text-3: #8F8783; --line: #2C2728; --ink-2: #1E1B1C; --ink-3: #2A2627; --red-hi: #FF4B51; --error: #FF8A8E; background: #141213; }
.ph-tag { padding: 1px 8px; border-radius: 6px; background: rgba(224, 38, 44, .18); color: #FFB4B7; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.paper .ph-tag, :root[data-theme="light"] .ph-tag { background: rgba(224, 38, 44, .13); color: #9E1117; }
:root[data-theme="light"] .paper .ph-tag { background: rgba(224, 38, 44, .18); color: #FFB4B7; }

/* closing call to action and contact lines */
/* the closing section stays ink in both modes: the approved banner is a night sky */
.cta { --ink: #0B0A0A; --ink-3: #1E1B1C; --line: #2C2728; --text: #F5F1EE; --text-2: #BCB4B0; --text-3: #8F8783; --red-hi: #FF4B51; --error: #FF8A8E; color-scheme: dark; }
.cta { position: relative; overflow: hidden; background: radial-gradient(90% 55% at 100% 100%, rgba(150, 34, 24, .32), rgba(150, 34, 24, 0) 70%), var(--ink); color: var(--text); }
.cta-inner { display: flex; flex-direction: column; gap: 28px; padding: clamp(96px, 12vw, 160px) var(--gutter) clamp(40px, 5vw, 72px); }
.cta h2 { font-size: clamp(56px, 10vw, 180px); max-width: 9ch; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; color: var(--text-2); }
.mail a { color: var(--text); font-weight: 700; text-decoration: none; }
.mail a:hover { color: var(--red-hi); }
.copy { min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); font: 600 13px/1 var(--body); cursor: pointer; }
.copy:hover { border-color: var(--text-3); }
.book { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -12px 0 0; color: var(--text-2); }
.book > svg { width: 18px; height: 18px; color: var(--red-hi); }
.book a { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.book a:hover { color: var(--red-hi); }
.book a svg { width: 16px; height: 16px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--text-3); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--text-2); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* click echoes */
.echo { position: fixed; left: 0; top: 0; z-index: 80; width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 2px solid var(--red-hi); border-radius: 50%; pointer-events: none; animation: echo .9s cubic-bezier(.2, .6, .3, 1) forwards; }
@keyframes echo { from { transform: translate(var(--x), var(--y)) scale(.3); opacity: .95; } to { transform: translate(var(--x), var(--y)) scale(5); opacity: 0; } }

/* narrow screens */
@media (max-width: 860px) {
  .topbar { gap: 10px; }
  .topbar .nav-cta { margin-left: auto; min-height: 44px; padding: 0 18px; }
  .menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; }
  .menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-header nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 4px var(--gutter) 20px; background: var(--ink); border-bottom: 1px solid var(--line); box-shadow: var(--drop-shadow); }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .brand svg { height: 24px; }
  .site-header nav .theme-toggle { display: flex; justify-content: flex-start; gap: 12px; width: 100%; height: auto; padding: 16px 0; border: 0; border-radius: 0; color: var(--text-2); font-size: 18px; font-weight: 500; }
  .site-header nav .theme-toggle .theme-label { display: inline; }
}
@media (max-width: 700px) {
  .check-grid { grid-template-columns: minmax(0, 1fr); }
  .check .btn { width: 100%; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
