/* Amerevision — stylesheet
   Palette: paper, ledger green, brass. Type: Libre Caslon Text (display) + IBM Plex Sans (text). */

:root {
  --paper: #f5f4ef;
  --panel: #eae9e2;
  --ink: #16201d;
  --green: #1a3a5c;
  --green-deep: #122a45;
  --brass: #9e8248;
  --brass-light: #cdb47a;
  --slate: #5f6b67;
  --rule: rgba(22, 32, 29, 0.18);
  --rule-on-green: rgba(245, 244, 239, 0.22);

  --serif: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --measure: 62ch;
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem);
}

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--brass);
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: var(--step-4);
  line-height: 1.04;
  max-width: 14ch;
}

h2 {
  font-size: var(--step-3);
  max-width: 22ch;
}

h3 {
  font-size: var(--step-1);
  line-height: 1.3;
}

p,
li {
  max-width: var(--measure);
}

p {
  margin: 0 0 1em;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink);
}

.quiet {
  color: var(--slate);
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

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

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
}

.wordmark {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  line-height: 0;
}

.site-header .wordmark img {
  height: 2rem;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 0.35em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

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

.button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.95rem 1.35rem;
  background: var(--green);
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--green);
  cursor: pointer;
}

.button:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.button.secondary:hover {
  background: var(--panel);
}

.button.on-green {
  background: var(--paper);
  color: var(--green);
  border-color: var(--paper);
}

.button.on-green:hover {
  background: var(--brass-light);
  border-color: var(--brass-light);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 1.75rem;
}

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

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* Hero ------------------------------------------------------------------ */

.hero {
  padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.hero .lede {
  margin-top: 0.5rem;
}

.standing-line {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--slate);
  font-size: 0.95rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.hero-art {
  align-self: end;
}

.hero-art img {
  width: 100%;
  height: auto;
  max-width: 620px;
  margin-left: auto;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-art img {
    max-width: 420px;
    margin-left: 0;
    margin-top: 1rem;
  }
}

/* Lifecycle band — the signature element -------------------------------- */

.lifecycle {
  background: var(--green);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.lifecycle h2 {
  color: var(--paper);
  margin-bottom: 0.4em;
}

.lifecycle .intro {
  color: var(--brass-light);
  max-width: 48ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 1.5rem;
  position: relative;
}

.stages::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 2.15rem;
  height: 1px;
  background: var(--brass);
}

.stage {
  position: relative;
  padding-top: 3.4rem;
  max-width: none;
}

.stage::before {
  content: "";
  position: absolute;
  top: calc(2.15rem - 5px);
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  border: 1px solid var(--brass);
}

.stage .num {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brass-light);
}

.stage h3 {
  color: var(--paper);
  margin-bottom: 0.4em;
}

.stage p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(245, 244, 239, 0.86);
  margin: 0;
}

/* Practice list — editorial rows, not cards ------------------------------ */

.practice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.practice {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem clamp(2rem, 5vw, 5rem);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
  border-bottom: 1px solid var(--rule);
}

.practice h3 {
  font-size: var(--step-2);
  margin: 0;
  max-width: 16ch;
}

.practice p {
  margin: 0;
}

.practice .more {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.95rem;
}

/* Audience trio ---------------------------------------------------------- */

.audience {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3.5rem);
}

.audience li {
  border-top: 2px solid var(--green);
  padding-top: 1rem;
  max-width: none;
}

.audience h3 {
  margin-bottom: 0.4em;
}

.audience p {
  margin: 0;
  color: var(--slate);
}

/* Approach ---------------------------------------------------------------- */

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem clamp(2rem, 5vw, 4rem);
}

.principles li {
  max-width: none;
}

.principles h3 {
  margin-bottom: 0.35em;
}

.principles p {
  margin: 0;
}

/* Closing call to action ------------------------------------------------- */

.closing {
  background: var(--panel);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.closing h2 {
  max-width: 20ch;
}

/* Long-form service sections ---------------------------------------------- */

.service-detail {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--rule);
}

.service-detail h2 {
  margin-bottom: 0.9em;
}

.service-detail .work {
  margin: 1.75rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.service-detail .work li {
  padding: 0.45rem 0 0.45rem 1.25rem;
  position: relative;
  max-width: none;
}

.service-detail .work li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.5rem;
  height: 1px;
  background: var(--brass);
}

.work-heading {
  font-family: var(--serif);
  font-size: var(--step-1);
  margin: 0 0 0.25rem;
}

.standing-note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--panel);
  color: var(--slate);
  font-size: 0.95rem;
  max-width: 70ch;
}

/* Team --------------------------------------------------------------------- */

.team {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.team li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0.5rem clamp(2rem, 5vw, 5rem);
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
  max-width: none;
}

.team h3 {
  margin: 0;
}

.team .role {
  color: var(--slate);
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

.team p {
  margin: 0;
}

.team div + div p + p {
  margin-top: 1em;
}

.placeholder {
  color: var(--brass);
}

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

.form {
  display: grid;
  gap: 1.25rem;
  max-width: 34rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.95rem;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  padding: 0.75rem 0.85rem;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 0;
  border-color: var(--brass);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-status {
  font-size: 0.95rem;
  color: var(--green);
  min-height: 1.5em;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
}

.contact-details h3 {
  margin-bottom: 0.25em;
}

.contact-details p {
  margin: 0;
  color: var(--slate);
}

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

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 3rem 0 2.5rem;
  color: var(--slate);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
}

.site-footer .wordmark img {
  height: 1.6rem;
  width: auto;
}

.site-footer p {
  margin: 0 0 0.75em;
}

.site-footer .disclaimer {
  max-width: 60ch;
}

.site-footer address {
  font-style: normal;
}

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

@media (max-width: 900px) {
  .stages {
    grid-template-columns: 1fr;
    gap: 2rem 0;
    padding-left: 2.5rem;
  }

  .stages::before {
    top: 0;
    bottom: 0;
    left: 0.35rem;
    right: auto;
    width: 1px;
    height: auto;
  }

  .stage {
    padding-top: 0;
  }

  .stage::before {
    top: 0.45rem;
    left: -2.5rem;
    margin-left: 0.35rem;
    transform: translateX(-5px);
  }

  .stage .num {
    position: static;
    display: block;
    margin-bottom: 0.35rem;
  }

  .audience,
  .principles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gutter) 1rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-header {
    position: relative;
  }

  .site-nav a {
    padding: 0.75rem 0;
    width: 100%;
    border-top: 1px solid var(--rule);
  }

  .site-nav .button {
    margin-top: 0.75rem;
    width: auto;
    border-top: 1px solid var(--green);
  }

  .two-col,
  .practice,
  .team li,
  .site-footer .wrap {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 12ch;
  }
}
