/* ========================================================================
   joshualeestone.com, v1
   System fonts, no third-party requests. Monochrome. No colour at all.

   Every value below is black, white, or a neutral grey. There is no hue
   anywhere in the stylesheet. Hierarchy is carried by weight, size, and
   space instead of colour.

   Because nothing is colour-differentiated, links carry an underline as
   their affordance (WCAG 1.4.1, never colour alone; here, never colour
   at all). Removing the underline would make links unfindable.

   Contrast (measured, WCAG AA):
     text #000 ............... 21.0:1     text-2 #1a1a1a ..... 17.4:1
     muted #595959 ........... 7.0:1      muted-2 #6e6e6e .... 5.1:1
     white on black button ... 21.0:1     on hover #262626 ... 15.1:1
   --accent is black: it fills buttons and marks borders where the gold
   used to. --accent-text is also black, so former gold text reads as
   emphasis by weight rather than by hue.
   ======================================================================== */

:root {
  color-scheme: light;
  --bg:        #ffffff;
  --bg-2:      #fafafa;
  --surface:   #ffffff;
  --surface-2: #ffffff;   /* flat: no card gradient */
  --line:      #e2e2e2;
  --text:      #000000;
  --text-2:    #1a1a1a;
  --muted:     #595959;
  --muted-2:   #6e6e6e;
  --accent:    #000000;   /* fills + borders */
  --accent-2:  #000000;   /* link text */
  --accent-text:#000000;  /* accent used AS text */
  --accent-ink:#ffffff;   /* text on a black fill */
  --accent-fill-hover: #262626;
  --accent-wash: transparent;        /* the gold wash is gone */
  --accent-edge: #9e9e9e;
  --accent-ring: rgba(0,0,0,.18);
  --header-bg: rgba(255,255,255,.85);
  --card-shadow: none;
  --ok:        #1f1f1f;
  --err:       #000000;
  --radius:    14px;
  --maxw:      1080px;
  --ease:      cubic-bezier(.2, .7, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Monochrome inverse. Kept because it is one attribute away and costs
   nothing; not used unless <html data-theme="dark"> is set. Still no hue. */
[data-theme="dark"] {
  color-scheme: dark;
  --bg:        #000000;
  --bg-2:      #0a0a0a;
  --surface:   #000000;
  --surface-2: #000000;
  --line:      #2b2b2b;
  --text:      #ffffff;
  --text-2:    #ededed;
  --muted:     #a8a8a8;
  --muted-2:   #949494;
  --accent:    #ffffff;
  --accent-2:  #ffffff;
  --accent-text:#ffffff;
  --accent-ink:#000000;
  --accent-fill-hover: #d6d6d6;
  --accent-wash: transparent;
  --accent-edge: #6b6b6b;
  --accent-ring: rgba(255,255,255,.22);
  --header-bg: rgba(0,0,0,.85);
  --card-shadow: none;
  --ok:        #e0e0e0;
  --err:       #ffffff;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle top gradient wash */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 480px;
  background: radial-gradient(1100px 460px at 20% -10%, var(--accent-wash), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: .6rem 1rem;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- layout helpers ---------- */
.section,
.hero__inner,
.nav,
.site-footer {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  position: relative;
  z-index: 1;
}

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }

.section__head {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}
.section__num {
  font-variant-numeric: tabular-nums;
  color: var(--accent-text);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .05em;
}
.section__title {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -.02em;
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-block: .85rem;
}

.nav__menu {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__menu a {
  color: var(--muted);
  font-weight: 500;
  font-size: .98rem;
}
.nav__menu a:hover { color: var(--text); text-decoration: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle:hover { text-decoration: none; }
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(4rem, 12vw, 8rem) clamp(2.5rem, 6vw, 4rem); }
.hero__eyebrow {
  color: var(--accent-text);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
  margin: 0 0 1rem;
}
.hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.8rem, 9vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 800;
}
.hero__lede {
  max-width: 42ch;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--muted);
  margin: 0 0 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.25rem; }
.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0; padding: 0;
}
.hero__links a {
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.hero__links a:hover { color: var(--text); border-bottom-color: var(--accent); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-fill-hover); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-text); }

/* ---------- about ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.about__body p { margin: 0 0 1.2rem; font-size: 1.08rem; color: var(--text-2); }
.about__body strong { color: var(--text); }
.about__facts { margin: 0; display: grid; gap: 1.1rem; align-content: start; }
.about__facts div { border-left: 2px solid var(--line); padding-left: 1rem; }
.about__facts dt { color: var(--muted-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.about__facts dd { margin: 0; font-weight: 600; }

/* ---------- work grid ---------- */
.work__grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-edge);
  box-shadow: var(--card-shadow);
}
.card__title { margin: 0 0 .6rem; font-size: 1.2rem; }
.card__title a { color: var(--text); display: inline-flex; align-items: center; gap: .4rem; }
.card__title a span { color: var(--accent-text); font-size: .9em; transition: transform .18s var(--ease); }
.card__title a:hover { text-decoration: none; color: var(--accent-2); }
.card:hover .card__title a span { transform: translate(2px, -2px); }
.card__desc { margin: 0; color: var(--muted); font-size: .98rem; }
.card__desc em { color: var(--muted-2); font-style: italic; }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.timeline__item {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.timeline__item:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline__meta { display: flex; flex-direction: column; gap: .25rem; }
.timeline__role { font-weight: 700; font-size: 1.05rem; }
.timeline__org { color: var(--accent-text); font-weight: 600; }
.timeline__date { color: var(--muted-2); font-size: .88rem; }
.timeline__desc { margin: 0; color: var(--muted); }
.timeline__desc:empty { display: none; }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__lede { font-size: 1.15rem; color: var(--muted); margin: 0; }
.section--contact > .contact__lede { margin-bottom: 1.5rem; }
.contact__topics { list-style: none; margin: 0 0 clamp(2rem, 5vw, 3rem); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.contact__aside { display: grid; gap: 1rem; align-content: start; }
.contact__form { display: grid; gap: 1.1rem; }
/* honeypot: kept in the DOM + submitted, but off-screen for humans */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--text-2); }
.field input, .field textarea, .field select {
  font: inherit;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .7rem .85rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.field textarea { resize: vertical; }
.contact__form .btn { justify-self: start; }
.contact__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; align-content: start; }
.form__status { margin: 0; font-size: .95rem; min-height: 1.4em; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--err); }

/* ---------- footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  margin-top: 2rem;
  color: var(--muted-2);
  font-size: .92rem;
}
.site-footer p { margin: 0; }
.site-footer__links { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-footer__links a { color: var(--muted); }

/* ---------- thanks page ---------- */
.thanks { min-height: 80vh; display: grid; place-items: center; padding: 2rem; }
.thanks__card { max-width: 34rem; text-align: center; }
.thanks__title { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.03em; margin: .5rem 0 1rem; }
.thanks__body { color: var(--muted); font-size: 1.15rem; margin: 0 0 2rem; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: .5rem 0;
    display: none;
  }
  /* pure-CSS disclosure baseline (works with JS off) + JS-owned class.
     When JS is present it preventDefault()s the toggle so the hash never
     changes and :target stays inert; .is-open drives the state instead. */
  .nav__menu:target,
  .nav__menu.is-open { display: flex; }
  .nav__menu li { padding-inline: clamp(1.25rem, 5vw, 2.5rem); }
  .nav__menu a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav__menu li:last-child a { border-bottom: 0; }

  .about__grid,
  .contact__grid { grid-template-columns: 1fr; }
  .timeline__item { grid-template-columns: 1fr; gap: .5rem; }
}

/* ---------- art page ---------- */
.art__award { margin: 0 0 1.5rem; color: var(--text-2); }
.art__meta { color: var(--muted); margin: -.5rem 0 1.5rem; }
.art__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.art__grid--wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.art__item { margin: 0; }
.art__link { display: block; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.art__link img { display: block; width: 100%; height: 240px; object-fit: contain; background: var(--bg-2); }
.art__grid--wide .art__link img { height: 140px; }
.art__link:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; }
.art__cap { margin: .5rem 0 0; font-size: .9rem; line-height: 1.4; }
.art__title { display: block; font-weight: 600; color: var(--text); }
.art__detail { display: block; color: var(--muted); }
.shows { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.shows li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.shows__when { display: inline-block; min-width: 8.5rem; color: var(--muted); }
.shows__h { font-size: 1rem; margin: 0 0 .5rem; }
.shows__more summary { cursor: pointer; font-weight: 600; margin: .5rem 0 1rem; }
.art__viewer { width: min(96vw, 1100px); max-height: 94vh; padding: 1.25rem 3.25rem; border: 0; border-radius: 8px;
  background: var(--bg); color: var(--text); }
.art__viewer::backdrop { background: rgba(0,0,0,.82); }
.art__viewer figure { margin: 0; text-align: center; }
.art__viewer img { max-width: 100%; max-height: 74vh; object-fit: contain; }
.art__viewer figcaption { margin-top: .75rem; }
.art__close, .art__prev, .art__next { position: absolute; background: none; border: 0; color: var(--text);
  font-size: 2rem; line-height: 1; cursor: pointer; padding: .25rem .5rem; }
.art__close { top: .5rem; right: .5rem; }
.art__prev { left: .25rem; top: 45%; }
.art__next { right: .25rem; top: 45%; }
@media (max-width: 760px) {
  .art__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .art__grid--wide { grid-template-columns: 1fr; }
  .art__link img { height: 160px; }
  .art__viewer { padding: 1rem 2.25rem; }
  .shows__when { display: block; min-width: 0; }
}

/* ---------- book (about) ---------- */
.book { display: flex; gap: 1.25rem; align-items: center; margin: 1.5rem 0 0; }
.book__cover { position: relative; flex: none; width: 150px; border-radius: 2px 5px 5px 2px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.15), 6px 10px 22px rgba(0,0,0,.22); }
.book__cover img { display: block; width: 100%; height: auto; }
.book__cover::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 9px;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.18) 55%, rgba(0,0,0,0)); }
.book figcaption { display: grid; gap: .25rem; }
.book__title { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.book__sub { color: var(--text-2); }
.book__note { color: var(--muted); font-size: .95rem; }
@media (max-width: 480px) { .book { flex-direction: column; align-items: flex-start; } }

/* ---------- hero icon links ---------- */
.hero__links .icon-link { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--bg); }
.hero__links .icon-link:hover { border-color: var(--accent); }
.hero__links .icon-link svg { width: 20px; height: 20px; fill: currentColor; }
.hero__links { gap: .75rem; }

/* ---------- hero portrait ---------- */
.hero__photo { display: block; width: clamp(140px, 38vw, 200px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; margin: 0 0 2rem; }
@media (min-width: 761px) {
  .hero__inner--photo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
  .hero__inner--photo .hero__photo { grid-column: 2; grid-row: 1; width: clamp(220px, 26vw, 320px); margin: 0; }
}
@media (max-width: 760px) { .hero__inner--photo { display: flex; flex-direction: column; } .hero__inner--photo .hero__photo { order: -1; } }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .hero { padding-block: 2.5rem 1.5rem; }
  .hero__photo { width: 112px; margin-bottom: 1.5rem; }
  .hero__title { margin-bottom: 1rem; }
  .hero__lede { font-size: 1.08rem; margin-bottom: 1.5rem; }
  .hero__actions { margin-bottom: 1.5rem; }
  .hero__actions .btn { flex: 1 1 0; justify-content: center; text-align: center; }
  .hero__actions .btn { flex-basis: 100%; }  /* stacked full width: three labels do not fit side by side */
  .section { padding-block: 2.75rem; }
  .section__head { margin-bottom: 1.5rem; padding-bottom: .75rem; }
  .card { padding: 1.15rem 1.2rem; }
  .card__title { font-size: 1.1rem; margin-bottom: .4rem; }
  .card__desc { font-size: .95rem; }
  .timeline { gap: 1.25rem; }
  .timeline__item { padding-bottom: 1.25rem; }
  .about__facts { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: 1rem 1.25rem; }
  .about__facts > div:nth-child(2), .about__facts > div:nth-child(4),
  .about__facts > div:nth-child(5), .about__facts > div:nth-child(6), .about__facts > div:nth-child(7) { grid-column: 1 / -1; }
  .card__title a { min-height: 44px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 480px) {
  .book { flex-direction: row; align-items: center; gap: 1rem; }
  .book__cover { width: 104px; }
}

/* ---------- timeline logos ---------- */
.timeline__meta { flex-direction: row; align-items: center; gap: .9rem; }
.timeline__who { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.timeline__logo { flex: none; width: 48px; height: 48px; border-radius: 11px; border: 1px solid var(--line); object-fit: cover; }
.timeline__logo--text { display: grid; place-items: center; background: #ff7300; color: #000; border-color: transparent;
  font-weight: 800; font-size: .82rem; letter-spacing: .04em; }

/* ---------- two-line menu button that turns into an X ---------- */
.nav__toggle { position: relative; width: 44px; height: 44px; padding: 0; gap: 0; }
.nav__toggle span { position: absolute; left: 10px; width: 24px; height: 2px; margin: 0; }
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 25px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.timeline__logo--plain { background: var(--surface-2, #f1efea); color: var(--text); border: 1px solid var(--line); }

/* ---------- project logos ---------- */
.card__logo { display: block; width: 40px; height: 40px; margin-bottom: .85rem; border-radius: 9px; border: 1px solid var(--line); object-fit: cover; }
.card__logo--text { display: grid; place-items: center; background: var(--surface-2); color: var(--text); font-weight: 800; font-size: .74rem; letter-spacing: .04em; }

/* ---------- topic dropdown: drop the native look so it matches the other fields ---------- */
.field select {
  -webkit-appearance: none; appearance: none;
  line-height: inherit; padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%23777' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5.25 7 9.25l4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .95rem center; background-size: 14px 14px;
}
.field select:invalid { color: var(--muted); }
.field select option { color: var(--text); }

/* ---------- project status tag (Beta launch, Stealth mode) ---------- */
.card__tag { display: inline-block; margin: -.2rem 0 .6rem; padding: .18rem .6rem; border: 1px solid var(--line);
  border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); }

/* ---------- D CEO award badge above the facts ---------- */
.about__side { display: grid; gap: 1.5rem; align-content: start; }
.award { margin: 0; display: flex; align-items: center; gap: 1rem; color: var(--text); }
.award:hover { text-decoration: none; }
.award img { width: 96px; height: auto; flex: none; }
.award__text { display: grid; gap: .2rem; }
.award__what { font-weight: 700; font-size: 1rem; }
.award__where { font-size: .9rem; color: var(--accent-text); }
.award:hover .award__where { text-decoration: underline; }

/* ---------- The New Dallas 9 badge on the Art page ---------- */
.award--d9 { margin: 0 0 2rem; }
.award__note { font-size: .92rem; color: var(--muted); }

/* ---------- Books section: three covers ---------- */
.books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.books .book { margin: 0; flex-direction: column; align-items: flex-start; gap: 1rem; }
.books .book__cover { width: 160px; }
.books a.book__cover { display: block; }
.books .book__title a { color: var(--text); }
.books .book__title a span { color: var(--accent-text); font-size: .9em; }
@media (max-width: 760px) {
  .books { grid-template-columns: 1fr; gap: 1.5rem; }
  .books .book { flex-direction: row; align-items: center; }
  .books .book__cover { width: 104px; }
}
/* the D CEO badge carries the facts' grey bar, so its image lines up with their text (Josh 10-12) */
.about__side { gap: 1.1rem; }
.about__side > .award { border-left: 2px solid var(--line); padding-left: 1rem; }
/* all three covers one shape */
.books .book__cover img { aspect-ratio: 300 / 431; object-fit: cover; }
.award__badge { width: 96px; height: auto; flex: none; }
/* New Dallas 9: the badge is two boxes side by side, so it is set by height; the text sits centred beside it */
.award--d9 { align-items: center; }
.award--d9 .award__badge { width: auto; height: 96px; }
@media (max-width: 480px) { .award--d9 .award__badge { height: 72px; } }

/* ---------- Active Projects: the whole card opens the project (Josh 10-12) ----------
   The title's link is stretched over the card, so there is one link per card (no nested links) and a card with
   no site (cabal.md, clocking.news) stays a plain card. */
.work__grid .card { position: relative; }
.work__grid .card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.work__grid .card__title a:focus-visible { outline: none; }
.work__grid .card:has(.card__title a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.work__grid .card:not(:has(.card__title a)):hover { transform: none; box-shadow: none; border-color: var(--line); }

/* ---------- phone menu: full screen, black, white items (Josh 10-12) ---------- */
@media (max-width: 760px) {
  .nav__menu:target,
  .nav__menu.is-open {
    position: fixed; inset: 0; z-index: 60;
    background: #000; border: 0; padding: 5.5rem 0 2rem;
    flex-direction: column; justify-content: center; gap: .25rem;
  }
  .nav__menu:target li,
  .nav__menu.is-open li { padding-inline: 2rem; }
  .nav__menu:target a,
  .nav__menu.is-open a { color: #fff; border: 0; font-size: 1.75rem; font-weight: 700; padding: .6rem 0; min-height: 44px; }
  .nav__menu:target a:hover,
  .nav__menu.is-open a:hover { color: #fff; opacity: .7; }
  /* a backdrop-filter makes the header the frame a fixed child is placed in, so it is dropped while the menu is open */
  html.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; }
  html.menu-open { overflow: hidden; }
  /* the toggle sits above the menu as its close X, in white */
  .nav__toggle { position: relative; z-index: 70; }
  .nav__toggle[aria-expanded="true"] span { background: #fff; }
}
