/* Washington American — washington-american.com */

:root {
  --ink:        #1b1f23;
  --ink-soft:   #414a52;
  --ink-mute:   #6b747c;
  --line:       #dedcd6;
  --line-soft:  #eceae4;
  --paper:      #f9f9f6;
  --paper-alt:  #f1f0ea;
  --slate:      #232c33;
  --brick:      #7a2e2e;
  --brick-dark: #662626;
  --maxw:       1080px;
  --measure:    64ch;
}

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .site-title {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  color: var(--slate);
  line-height: 1.22;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(1.95rem, 4.6vw, 2.85rem); font-weight: 600; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.35rem, 2.8vw, 1.8rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; font-weight: 600; font-family: inherit; letter-spacing: .005em; }

p { margin: 0 0 1.15em; max-width: var(--measure); }
a { color: var(--brick-dark); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--brick); margin: 0 0 1rem;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { flex: none; }
.site-title {
  font-size: 1.02rem; font-weight: 600; letter-spacing: .01em;
  color: var(--slate); line-height: 1.2; margin: 0;
}
.site-title span {
  display: block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 500; letter-spacing: .1em; font-size: .64rem;
  text-transform: uppercase; color: var(--ink-mute); margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: .89rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--slate); border-bottom-color: var(--line); }
.nav a[aria-current="page"] { color: var(--slate); border-bottom-color: var(--brick); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 4px; padding: 8px 12px; font: inherit; font-size: .85rem;
  color: var(--slate); cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 600;
  padding: 13px 26px; border-radius: 2px;
  border: 1px solid var(--brick); background: var(--brick); color: #fff;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--brick-dark); border-color: var(--brick-dark); }
.btn-ghost { background: transparent; color: var(--slate); border-color: var(--line); }
.btn-ghost:hover { background: #fff; border-color: var(--ink-mute); color: var(--slate); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

/* ---------- Sections ---------- */

section { padding: 74px 0; }
section + section { border-top: 1px solid var(--line-soft); }
.alt { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.hero { padding: 92px 0 80px; }
.hero h1 { max-width: 19ch; }
.hero .lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 60ch; }

.rule { width: 50px; height: 3px; background: var(--brick); border: 0; margin: 0 0 28px; }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cols p { margin-bottom: 0; }
.col h3 { padding-top: 16px; border-top: 2px solid var(--slate); }

.stack { display: grid; gap: 38px; }
.item { max-width: 74ch; }
.item h3 { margin-bottom: .4em; }
.item p { margin-bottom: 0; max-width: none; }

/* Narrow reading column, kept flush with the page's left margin. */
.narrow > * { max-width: 74ch; }
.narrow > p { max-width: var(--measure); }

/* ---------- Contact form ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; max-width: 640px; margin-top: 32px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
label { font-size: .81rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-soft); margin-bottom: 7px; }
label .opt { font-weight: 400; color: var(--ink-mute); }
input, textarea {
  font: inherit; font-size: .96rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line);
  border-radius: 2px; padding: 12px 13px; width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--brick); outline-offset: 1px; border-color: var(--brick); }
textarea { min-height: 170px; resize: vertical; }
.form-grid .btn { align-self: flex-start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { max-width: 640px; padding: 16px 18px; border-radius: 2px; margin: 0 0 28px; font-size: .95rem; }
.notice p { margin: 0; max-width: none; }
.notice-ok  { background: #edf4ee; border: 1px solid #bad6c0; color: #1f4a2c; }
.notice-err { background: #fbeeed; border: 1px solid #e0bcb8; color: #78261f; }
.notice ul { margin: .5em 0 0; padding-left: 1.2em; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--slate); color: #c2c9ce;
  padding: 46px 0; font-size: .85rem;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.site-footer p { margin: 0; max-width: 62ch; }
.site-footer .legal { font-style: italic; color: #99a3aa; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { color: #dde2e6; text-decoration: none; font-size: .85rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.copyright { color: #7d878e; margin-top: 22px !important; font-size: .79rem; }

/* ---------- Responsive ---------- */

/* Skip link — visible only once focused by keyboard. */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--slate);
  color: #fff;
  font-size: .9rem;
  text-decoration: none;
  border-radius: 2px;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--brick); outline-offset: 2px; }
main:focus { outline: none; }

@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 700px) {
  section { padding: 56px 0; }
  .hero { padding: 62px 0 54px; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav a[aria-current="page"] { border-bottom-color: var(--brick); }
  .header-inner { position: relative; }
}

@media (max-width: 430px) {
  /* Keep the header to one line on small phones. */
  .site-title span { display: none; }
  .site-title { font-size: .98rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
