/*
Theme Name: Ann Wicker
Theme URI: https://annwicker.com
Author: Murray Attaway
Description: Marketing site for Ann Wicker — Editor, Writing Coach, Writer. Built to the "Ann Wicker website design" handoff spec.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: annwicker
*/

/* ---------------------------------------------------------------
   Design tokens
   --------------------------------------------------------------- */
:root {
  --paper:            #FFFAFA;
  --paper-warm:       #f7f2e8;
  --paper-band:       #f2ead9;
  --paper-input:      #fffdf8;
  --sage:             #DBDED3;
  /* Header/footer bars. Purple variant under client review 2026-09-24; the
     approved rose was #CA8B8B / rgba(202,139,139,0.94) — same hsl(_,37%,67%)
     treatment, hue 0 instead of 280. Revert by restoring those two values. */
  --rose:             #B58BCA;
  --rose-sheer:       rgba(181, 139, 202, 0.94); /* --rose at 94%, for the frosted header */
  --ink:              #241f1b;
  --ink-2:            #332c26;
  --ink-3:            #3d352e;
  --ink-4:            #4a423a;
  --muted:            #6a5e53;
  --muted-2:          #7a6d61;
  --muted-3:          #8c7d6d;
  --rust:             #8a3324;
  --rust-dark:        #5e2118;
  --rule:             #ddd0bb;
  --rule-light:       #e6dbc8;
  --rule-input:       #c9b9a2;
  --dashed:           #c2b09a;
  --placeholder-fill: #ece1cd;
  --on-dark:          #f2ead9;
  --on-dark-muted:    #b9a894;
  --on-rose:          #FFFFFF;
  --selection:        #e8d7c3;

  --serif: 'Libre Baskerville', Georgia, serif;
  --sans:  Karla, Helvetica, Arial, sans-serif;

  --pad-x: 32px;
  --header-h: 69px;
}

/* ---------------------------------------------------------------
   Base
   --------------------------------------------------------------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper-warm);
}

body {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--selection); }

a {
  color: var(--rust);
  text-decoration: none;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}
a:hover { color: var(--rust-dark); text-decoration: underline; }

img { max-width: 100%; }

.aw-site {
  background: var(--paper-warm);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.aw-main {
  flex: 1;
  background: var(--paper);
}

.aw-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.aw-header {
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--rose-sheer);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.aw-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 24px;
  /* A tall logo pushes the nav onto its own row; keep that row close. */
  row-gap: 10px;
  flex-wrap: wrap;
}

/* Transparent to layout on desktop; becomes the logo+toggle row on mobile. */
.aw-header__top { display: contents; }

.aw-wordmark {
  display: block;
  text-decoration: none;
  line-height: 0;
}
.aw-wordmark:hover { text-decoration: none; }
.aw-wordmark img {
  display: block;
  height: 104px;
  width: auto;
}

.aw-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aw-nav a {
  color: var(--on-rose);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.aw-nav a:hover,
.aw-nav a:focus-visible {
  color: var(--rust);
  border-bottom-color: var(--rust);
  text-decoration: none;
}
.aw-nav a[aria-current="page"] {
  color: var(--rust);
  border-bottom-color: var(--rust);
}

/* Mobile menu toggle — hidden until the breakpoint below. */
.aw-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.aw-burger__bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--on-rose);
  transition: transform 160ms ease, opacity 160ms ease;
}
.aw-burger[aria-expanded="true"] .aw-burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.aw-burger[aria-expanded="true"] .aw-burger__bar:nth-child(2) { opacity: 0; }
.aw-burger[aria-expanded="true"] .aw-burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.aw-footer {
  border-top: 1px solid var(--rule);
  background: var(--rose);
}

.aw-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 38px var(--pad-x);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: nowrap;
  font-size: 14.5px;
  color: var(--on-rose);
}
/* Name, contact and credit sit on one line; none of them breaks internally. */
.aw-footer__inner > * { white-space: nowrap; }

.aw-footer__name {
  font-family: var(--serif);
  color: var(--on-rose);
}
.aw-footer__meta { color: var(--on-rose); }
.aw-footer__credit { color: var(--on-rose); font-size: 13.5px; }
.aw-footer__credit a { color: var(--on-rose); }
.aw-footer__credit a:hover { color: var(--on-rose); text-decoration: underline; }
.aw-footer__meta a { color: var(--on-rose); }
.aw-footer__meta a:hover { color: var(--on-rose); text-decoration: underline; }

/* ---------------------------------------------------------------
   Shared typography pieces
   --------------------------------------------------------------- */
.aw-eyebrow {
  margin: 0 0 18px;
  font-size: 13.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
}

.aw-h1 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.15;
  text-wrap: pretty;
}

.aw-h2 {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
}

.aw-lead {
  margin: 0;
  font-size: 19px;
  color: var(--ink-3);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------
   Home — hero
   --------------------------------------------------------------- */
.aw-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px var(--pad-x) 64px;
}

.aw-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
}

.aw-hero__eyebrow { margin: 0 0 22px; }

.aw-hero h1 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.aw-hero__lead {
  margin: 0 0 32px;
  font-size: 19px;
  max-width: 52ch;
  color: var(--ink-3);
  text-wrap: pretty;
}

.aw-btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.aw-btn {
  background: var(--rust);
  color: var(--paper-warm);
  padding: 13px 26px;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  font-family: var(--sans);
  cursor: pointer;
}
.aw-btn:hover { background: var(--rust-dark); color: var(--paper-warm); text-decoration: none; }

.aw-btn--ghost {
  background: transparent;
  border: 1px solid var(--rule-input);
  color: var(--ink);
}
.aw-btn--ghost:hover {
  background: transparent;
  border-color: var(--rust);
  color: var(--rust);
  text-decoration: none;
}

.aw-hero__covers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.aw-hero__covers img {
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(50, 35, 20, 0.18);
}
.aw-hero__covers img:nth-child(1) { transform: rotate(-1.5deg); }
.aw-hero__covers img:nth-child(2) { margin-top: 16px; }
.aw-hero__covers img:nth-child(3) { transform: rotate(1.5deg); }

/* ---------------------------------------------------------------
   Home — stats band
   --------------------------------------------------------------- */
.aw-stats {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-band);
}
.aw-stats__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px var(--pad-x);
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.aw-stat__num {
  font-family: var(--serif);
  font-size: 30px;
}
.aw-stat__label {
  font-size: 13.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------------
   Home — services
   --------------------------------------------------------------- */
.aw-services {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px var(--pad-x);
}
.aw-services h2 { margin: 0 0 8px; }
.aw-services__intro {
  margin: 0 0 40px;
  color: var(--muted);
  max-width: 60ch;
}
.aw-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.aw-service {
  background: var(--paper-warm);
  padding: 28px 26px;
}
.aw-service__title {
  font-family: var(--serif);
  font-size: 19px;
  margin-bottom: 10px;
}
.aw-service p {
  margin: 0;
  color: var(--ink-4);
  font-size: 16px;
}
.aw-services__more { margin: 24px 0 0; }

/* ---------------------------------------------------------------
   Home — quote band
   --------------------------------------------------------------- */
.aw-quote {
  background: var(--ink);
  color: var(--on-dark);
}
.aw-quote__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 74px var(--pad-x);
  text-align: center;
}
.aw-quote p {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.45;
  text-wrap: pretty;
}
.aw-quote p.aw-quote__attr {
  margin: 0;
  font-family: var(--sans);
  font-style: normal;
  line-height: 1.65;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

/* ---------------------------------------------------------------
   Home — shelf
   --------------------------------------------------------------- */
.aw-shelf {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px var(--pad-x);
}
.aw-shelf__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 26px;
}
.aw-shelf figure { margin: 0; }
.aw-shelf img {
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: cover;
  background: var(--rule-light);
  box-shadow: 0 8px 20px rgba(50, 35, 20, 0.15);
  display: block;
}
.aw-shelf figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
}
.aw-shelf__title { display: block; color: var(--ink); }
.aw-shelf__author { display: block; color: var(--muted-2); }
.aw-shelf__more { margin: 28px 0 0; }

/* ---------------------------------------------------------------
   About
   --------------------------------------------------------------- */
.aw-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px var(--pad-x) 88px;
  background-color: var(--paper);
}
.aw-about h1 { margin: 0 0 48px; max-width: 20ch; }
.aw-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 56px;
  align-items: start;
}
.aw-about__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  background: var(--placeholder-fill);
  display: block;
}
.aw-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--placeholder-fill);
  border: 1px dashed var(--dashed);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted-3);
  font-size: 14px;
  padding: 20px;
}
.aw-about__photo-credit {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted-2);
}
.aw-about__bio {
  font-size: 19px;
  color: var(--ink-2);
}
.aw-about__bio p { margin: 0 0 20px; }
.aw-about__bio p:last-of-type { margin: 0 0 36px; }
.aw-links {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.aw-links h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
}
.aw-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  font-size: 17px;
}
.aw-links .aw-note { color: var(--muted-2); }

/* ---------------------------------------------------------------
   Editing & Coaching
   --------------------------------------------------------------- */
.aw-editing-intro {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px var(--pad-x) 56px;
  background-color: var(--paper);
}
.aw-editing-intro h1 { margin: 0 0 24px; max-width: 22ch; }
.aw-editing-intro .aw-lead { font-size: 20px; max-width: 58ch; }

.aw-levels {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--pad-x) 64px;
  background-color: var(--sage);
}
.aw-level {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 40px;
  padding: 30px 0;
  border-top: 1px solid var(--rule);
}
.aw-level h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
}
.aw-level p {
  margin: 0;
  font-size: 18px;
  color: var(--ink-3);
  max-width: 62ch;
}

.aw-faq {
  background: var(--paper-band);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.aw-faq__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px var(--pad-x);
}
.aw-faq__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 34px;
}
.aw-faq h3 {
  margin: 0 0 10px;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.aw-faq p {
  margin: 0;
  color: var(--ink-4);
  font-size: 16.5px;
}

.aw-testimonials {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px var(--pad-x);
}
.aw-testimonials h2 { margin: 0 0 8px; }
.aw-testimonials__note {
  margin: 0 0 28px;
  color: var(--muted-2);
  font-size: 15px;
}
.aw-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.aw-testimonial {
  border: 1px dashed var(--dashed);
  padding: 26px;
  color: var(--muted-3);
  font-style: italic;
}

/* ---------------------------------------------------------------
   Books
   --------------------------------------------------------------- */
.aw-books h1 { max-width: 22ch; }
.aw-books__lead {
  margin: 0 0 34px;
  font-size: 19px;
  max-width: 56ch;
  color: var(--ink-3);
}

.aw-filter {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  background-color: var(--paper);
}
.aw-filter input[type="search"] {
  flex: 1;
  min-width: 240px;
  font-family: var(--sans);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--rule-input);
  border-radius: 0;
  background: var(--paper-input);
  color: var(--ink);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.aw-filter input[type="search"]:focus { border-color: var(--rust); }
.aw-filter input::placeholder { color: var(--muted-3); }
.aw-filter__count {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.aw-group {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 40px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule-light);
}
.aw-group h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
}
.aw-group__role {
  margin: 6px 0 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
}
.aw-group__titles {
  display: grid;
  gap: 12px;
}
.aw-title-row {
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}
.aw-title-row__title { font-size: 18px; color: var(--ink); }
.aw-title-row__pub { font-size: 15px; color: var(--muted-2); }

.aw-books__empty {
  padding: 48px 0;
  color: var(--muted-2);
  font-size: 18px;
}

.aw-books__tail {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.aw-books__tail h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
}
.aw-books__tail p {
  margin: 0;
  color: var(--ink-4);
  font-size: 17px;
}

/* ---------------------------------------------------------------
   Her Own Work
   --------------------------------------------------------------- */
.aw-ownwork h1 { max-width: 20ch; }
.aw-ownwork__lead {
  margin: 0 0 52px;
  font-size: 19px;
  max-width: 56ch;
  color: var(--ink-3);
}
.aw-work {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  gap: 40px;
  padding: 34px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.aw-work img {
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: cover;
  background: var(--placeholder-fill);
  box-shadow: 0 8px 20px rgba(50, 35, 20, 0.15);
  display: block;
}
.aw-work img.aw-work__cover--natural {
  aspect-ratio: auto;
}

.aw-work__nocover {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: var(--placeholder-fill);
  border: 1px dashed var(--dashed);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted-3);
  font-size: 13px;
  padding: 14px;
}
.aw-work__role {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
}
.aw-work h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.25;
}
.aw-work__pub {
  margin: 0 0 14px;
  color: var(--muted-2);
  font-size: 15px;
}
.aw-work__note {
  margin: 0;
  font-size: 18px;
  color: var(--ink-3);
  max-width: 56ch;
}

/* ---------------------------------------------------------------
   Contact
   --------------------------------------------------------------- */
.aw-contact {
  max-width: 1080px;
  margin: 0 auto;
  padding: 88px var(--pad-x) 96px;
  background-color: var(--paper);
}
.aw-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.aw-contact h1 { margin: 0 0 22px; }
.aw-contact__lead {
  margin: 0 0 30px;
  font-size: 19px;
  color: var(--ink-3);
  max-width: 48ch;
}
.aw-contact__label {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.aw-contact__email {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 22px;
}
.aw-contact__note {
  margin: 0;
  font-size: 15px;
  color: var(--muted-3);
}

.aw-form {
  background: var(--paper-band);
  border: 1px solid var(--rule);
  padding: 34px;
  display: grid;
  gap: 18px;
}
.aw-form label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.aw-form input[type="text"],
.aw-form input[type="email"],
.aw-form textarea {
  font-family: var(--sans);
  font-size: 16px;
  padding: 11px 13px;
  border: 1px solid var(--rule-input);
  border-radius: 0;
  background: var(--paper-input);
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  outline: none;
  width: 100%;
}
.aw-form input:focus,
.aw-form textarea:focus { border-color: var(--rust); }
.aw-form textarea { resize: vertical; }
.aw-form button {
  justify-self: start;
  background: var(--rust);
  color: var(--paper-warm);
  border: none;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 13px 28px;
  cursor: pointer;
}
.aw-form button:hover { background: var(--rust-dark); }
.aw-form button[disabled] { opacity: 0.6; cursor: default; }

.aw-form__hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.aw-form__error {
  margin: 0;
  font-size: 15px;
  color: var(--rust);
  text-transform: none;
  letter-spacing: 0;
}
.aw-field-error {
  font-size: 13.5px;
  color: var(--rust);
  text-transform: none;
  letter-spacing: 0;
}
.aw-form input[aria-invalid="true"],
.aw-form textarea[aria-invalid="true"] { border-color: var(--rust); }

.aw-form-success {
  background: var(--paper-band);
  border: 1px solid var(--rule);
  padding: 34px;
}
.aw-form-success h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
}
.aw-form-success p {
  margin: 0;
  color: var(--ink-4);
  font-size: 16px;
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
/* The four footer items measure ~937px plus 64px of padding, so they stop
   fitting one line just over 1000px wide. */
@media (max-width: 1020px) {
  .aw-footer__inner {
    flex-wrap: wrap;
    gap: 8px 28px;
  }
  .aw-footer__inner > * { white-space: normal; }
}

@media (max-width: 900px) {
  .aw-hero__grid,
  .aw-about__grid,
  .aw-contact__grid,
  .aw-level,
  .aw-group,
  .aw-work {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .aw-hero__grid { gap: 40px; }
  .aw-contact__grid { gap: 40px; }
  .aw-level,
  .aw-group { gap: 14px; }
  .aw-work { gap: 20px; }
  .aw-work > div:first-child { max-width: 160px; }
  .aw-hero__covers { max-width: 420px; }
  .aw-about__grid > div:first-child { max-width: 320px; }
}

@media (max-width: 700px) {
  :root { --pad-x: 20px; }

  .aw-header__inner { column-gap: 14px; }

  /* Logo and toggle share one unbreakable row. 96px is the target, but the
     logo also has to leave room for a 44px tap target, so below roughly
     430px wide it scales down rather than pushing the toggle onto its own
     line. */
  .aw-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex: 1 1 100%;
    min-width: 0;
  }
  .aw-wordmark { flex: 0 1 auto; min-width: 0; }
  .aw-wordmark img {
    height: auto;
    width: auto;
    max-height: 96px;
    max-width: 100%;
  }

  .aw-burger { display: flex; flex: 0 0 auto; }

  .aw-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    font-size: 14px;
    padding-bottom: 4px;
  }
  .aw-nav.is-open { display: flex; }
  .aw-nav a {
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }
  .aw-nav a:last-child { border-bottom: 1px solid transparent; }
  .aw-nav a:hover,
  .aw-nav a:focus-visible,
  .aw-nav a[aria-current="page"] { border-bottom-color: var(--rust); }

  .aw-hero { padding: 48px var(--pad-x) 44px; }
  .aw-stats__inner { padding: 26px var(--pad-x); gap: 28px; }
  .aw-services,
  .aw-shelf,
  .aw-testimonials { padding: 50px var(--pad-x); }
  .aw-quote__inner { padding: 52px var(--pad-x); }
  .aw-faq__inner { padding: 44px var(--pad-x); }
  .aw-page { padding: 50px var(--pad-x) 62px; }
  .aw-editing-intro { padding: 50px var(--pad-x) 40px; }
  .aw-levels { padding: 0 var(--pad-x) 44px; }
  .aw-contact { padding: 56px var(--pad-x) 66px; }

  .aw-h2,
  .aw-services h2,
  .aw-shelf h2,
  .aw-faq h2,
  .aw-testimonials h2 { font-size: 24px; }

  .aw-shelf__grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 20px; }
  .aw-footer__inner { padding: 30px var(--pad-x); }
}
