@font-face {
  font-family: "Biro Script Plus";
  src: url("../fonts/BiroScriptPlus.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Della Respira";
  src: url("../fonts/della-respira-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FFFFFF;
  --ink: #123233;
  --ink-soft: #3C5758;
  --orange: #CD633F;
  --orange-text: #B04E2B;
  --gold: #D29C35;
  --maroon: #6E1D29;
  --teal: #3C6E68;
  --green: #123233;
  --hand: "Biro Script Plus","Biro Script Plus US","Caveat","Bradley Hand",cursive;
  --body: "Della Respira","Georgia",serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #FFFFFF;
  }
}

:root[data-theme="dark"] {
  --paper: #FFFFFF;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

/* skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: .6em 1.2em;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 26px 0 70px;
}

.hand {
  font-family: var(--hand);
  font-weight: 400;
  color: var(--orange);
  line-height: 1.1;
  font-variant-ligatures: no-common-ligatures;
  font-feature-settings: "salt" 1,"kern" 1;
  font-kerning: normal;
}

h1.hand {
  font-size: clamp(2.6rem,6vw,4rem);
}

h2.hand {
  font-size: clamp(2.2rem,4.6vw,3.2rem);
}

p {
  max-width: 52ch;
}

.small {
  font-size: 1rem;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  color: var(--ink);
}

/* section frame + floating logo */
.panel {
  --pad: clamp(28px,6vw,80px);
  position: relative;
  border: 1.5px solid var(--gold);
  border-bottom: 0;
  border-left: 0;
  border-radius: 0 70px 0 0;
  padding: 64px var(--pad) 40px;
  padding-left: calc(50vw - 50% + var(--pad));
  margin-left: calc(50% - 50vw);
}

.panel.flip {
  border-left: 1.5px solid var(--gold);
  border-right: 0;
  border-radius: 70px 0 0 0;
  padding-left: var(--pad);
  padding-right: calc(50vw - 50% + var(--pad));
  margin-left: 0;
  margin-right: calc(50% - 50vw);
}

.panel.teal {
  border-color: var(--teal);
}

/* full box, contained within the page width */
.panel.box {
  --pad: clamp(20px,3.5vw,48px);
  background: var(--ink);
  border: 0;
  border-radius: 70px;
  padding: 48px var(--pad);
  margin-left: 0;
}

.panel.box h2,
.panel.box .small {
  color: #fff;
  max-width: none;
}

#audit .panel.box .small {
  max-width: 68ch;
}

.panel.box .btn.inline {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
}

/* placeholders */
.ph {
  border: 1.5px dashed var(--gold);
  border-radius: 4px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-soft);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: rgba(210,156,53,.06);
  padding: 12px;
}

.ph.portrait {
  aspect-ratio: 3/4;
}

.ph.wide {
  aspect-ratio: 4/3;
}

/* photo over colour block */
.shot {
  position: relative;
  padding: 34px 0 0 0;
}

.shot .block {
  position: absolute;
  inset: 0 0 18% 16%;
  border-radius: 2px;
}

.shot .block.maroon {
  background: var(--maroon);
}

.shot .block.green {
  background: var(--green);
}

.shot .block.mustard {
  background: var(--gold);
}

.shot .block.orange {
  background: var(--orange);
}

.shot .ph {
  position: relative;
  width: 78%;
  margin-left: 6%;
}

.shot img.ph {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
  display: block;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: top;
  filter: drop-shadow(4px 0 0 var(--paper)) drop-shadow(-4px 0 0 var(--paper)) drop-shadow(0 4px 0 var(--paper)) drop-shadow(0 -4px 0 var(--paper)) drop-shadow(3px 3px 0 var(--paper)) drop-shadow(-3px -3px 0 var(--paper)) drop-shadow(3px -3px 0 var(--paper)) drop-shadow(-3px 3px 0 var(--paper));
}

/* buttons */
.btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  padding: .7em 1.6em;
  border-radius: 999px;
  border: 1.5px solid var(--teal);
  color: var(--ink);
  background: transparent;
  transition: background .2s,color .2s;
  cursor: pointer;
  font-family: var(--body);
}

.btn:hover {
  background: var(--teal);
  color: #fff;
}

.btn.maroon {
  border-color: var(--maroon);
}

.btn.maroon:hover {
  background: var(--maroon);
  color: #fff;
}

.btn.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.btn.gold:hover {
  background: #bb8829;
  border-color: #bb8829;
  color: var(--ink);
}

.btn:active {
  transform: translateY(1px);
}

.btn.inline {
  display: inline-block;
  min-width: 220px;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.nav-logo .logo {
  display: block;
  height: 60px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
}

.nav-links a:hover {
  border-color: var(--gold);
}

.nav-links a.btn {
  text-transform: none;
  letter-spacing: normal;
  padding: .5em 1.4em;
  border-color: var(--gold);
}

.nav-links a.btn:hover {
  background: var(--gold);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  width: 44px;
  height: 44px;
  cursor: pointer;
}

/* hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-grid h1+h1 {
  margin-top: 6px;
}

.nb {
  display: inline-block;
  white-space: nowrap;
}

.hero-text h1.hand {
  font-size: clamp(2.1rem,4.4vw,3rem);
}

.hero-text .small {
  margin-top: 26px;
  max-width: 42ch;
}

/* offer */
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 34px;
}

.offer-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* expandable offers */
.offer-item summary {
  list-style: none;
}

.offer-item summary::-webkit-details-marker {
  display: none;
}

.offer-item summary::after {
  content: "";
  display: inline-block;
  width: .45em;
  height: .45em;
  margin-left: .8em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-.2em) rotate(45deg);
  transition: transform .2s;
}

.offer-item[open] summary::after {
  transform: translateY(.05em) rotate(-135deg);
}

.offer-item[open] summary {
  background: var(--teal);
  color: #fff;
}

.offer-item[open] summary.maroon {
  background: var(--maroon);
}

.offer-text {
  padding: 18px 8px 4px;
}

/* gentle reveal: fade and settle in; height eases too where the browser supports it */
.offer-item[open] .offer-text {
  animation: offer-in .35s ease-out;
}

@keyframes offer-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@supports (interpolate-size: allow-keywords) {
  .offer-item {
    interpolate-size: allow-keywords;
  }
  .offer-item::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size .35s ease, content-visibility .35s allow-discrete;
  }
  .offer-item[open]::details-content {
    block-size: auto;
  }
}

.offer-text > * + * {
  margin-top: 14px;
}

.offer-text .small {
  max-width: none;
  text-align: left;
}

.offer-text .lead {
  font-size: 1.1rem;
}

.offer-text h3 {
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--teal);
  margin-top: 22px;
}

.offer-text ul {
  padding-left: 1.2em;
}

.offer-text li::marker {
  color: var(--gold);
}

/* card rows */
.row {
  display: flex;
  gap: 34px;
  overflow-x: auto;
  padding: 46px 6px 26px;
  scroll-snap-type: x mandatory;
}

.row::-webkit-scrollbar {
  height: 6px;
}

.row::-webkit-scrollbar-thumb {
  background: rgba(18,50,51,.2);
  border-radius: 3px;
}

.tile {
  position: relative;
  flex: 0 0 clamp(230px,26vw,290px);
  scroll-snap-align: start;
}

.tile:nth-child(even) {
  margin-top: 46px;
}

.tile .frame {
  border: 1.5px solid var(--teal);
  border-radius: 34px;
  padding: 54px 26px 26px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tile:nth-child(3n) .frame {
  border-color: var(--maroon);
}

.tile:nth-child(3n+1) .frame {
  border-color: var(--gold);
}

.tile .badge {
  position: absolute;
  top: -6px;
  left: -14px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  z-index: 2;
  font-size: .5rem;
  letter-spacing: .06em;
  background: var(--paper);
  border-color: var(--paper);
}

.tile h3 {
  font-weight: 400;
  font-size: 1.15rem;
}

.tile p {
  color: var(--ink-soft);
  font-size: .95rem;
}

.tile time {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tile .more {
  margin-top: auto;
  text-decoration: none;
  color: var(--orange-text);
  border-bottom: 1.5px solid var(--orange-text);
  align-self: flex-start;
  font-size: .9rem;
}

.center {
  text-align: center;
}

.center h2 {
  margin-bottom: 6px;
}

/* who am I */
.who-grid h2 span {
  display: block;
}

.who-grid .intro {
  margin-top: 22px;
}

.who-grid .small + .small {
  margin-top: 16px;
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* nu */
.nu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
}

.nu-text h2 {
  font-size: clamp(3rem,7vw,4.6rem);
}

.nu-text p.q {
  font-size: 1.25rem;
  margin: 10px 0 24px;
}

.icons {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.icons a {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  transition: transform .2s;
}

.icons a:hover {
  transform: translateY(-3px);
}

.icons svg {
  width: 44px;
  height: 44px;
}

.icons span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

footer {
  background: var(--green);
  padding: 54px 0;
  text-align: center;
}

footer .logo {
  display: block;
  height: 130px;
  width: auto;
  margin: 0 auto;
}

footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 26px;
}

footer a {
  display: inline-block;
  padding: 12px 4px;
  color: #fff;
  text-decoration: none;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

footer a:hover {
  color: var(--gold);
}

footer small {
  display: block;
  margin-top: 20px;
  color: rgba(255,255,255,.65);
}

@media (max-width:860px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    border-bottom: 1.5px solid var(--gold);
    padding: 24px 0 30px;
  }
  .nav.open .nav-links {
    display: flex;
  }
  .hero-grid,
  .offer-grid,
  .who-grid,
  .nu-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .btn.inline {
    min-width: 0;
    padding: .6em 1.2em;
  }
  .icons {
    gap: 14px;
    margin-top: 22px;
  }
  .wrap {
    padding: 0 16px;
  }
  .panel {
    --pad: 14px;
    padding-top: 44px;
    padding-bottom: 30px;
    border-radius: 0 46px 0 0;
  }
  .panel.flip {
    border-radius: 46px 0 0 0;
  }
  .panel.box {
    --pad: 20px;
    border-radius: 46px;
    padding-top: 36px;
    padding-bottom: 36px;
  }
  .shot {
    padding-top: 22px;
  }
  .shot {
    max-width: 240px;
    margin: 0 auto;
  }
  .shot .ph {
    width: 90%;
    margin-left: 4%;
  }
  .tile:nth-child(even) {
    margin-top: 0;
  }
  .row {
    gap: 28px;
    padding-left: 14px;
    padding-right: 14px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .row::-webkit-scrollbar {
    display: none;
  }
  .tile {
    flex: 0 0 calc(100% - 28px);
    scroll-snap-align: center;
  }
  .dots {
    display: flex;
  }
}

.dots {
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

@media (min-width:861px) {
  .dots {
    display: none;
  }
}

.dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(18,50,51,.22);
  cursor: pointer;
}

.dots button.active {
  background: var(--orange);
}

/* text breakpoints */
@media (max-width:600px) {
  body {
    font-size: .98rem;
  }
  h1.hand,
  .hero-text h1.hand {
    font-size: clamp(1.9rem,8vw,2.4rem);
  }
  h2.hand {
    font-size: clamp(1.8rem,7.5vw,2.3rem);
  }
  .nu-text h2 {
    font-size: 3rem;
  }
  .small {
    text-align: left;
    max-width: none;
  }
  .hero-text .small {
    max-width: none;
    margin-top: 18px;
  }
}

@media (max-width:400px) {
  body {
    font-size: .95rem;
  }
  h1.hand,
  .hero-text h1.hand {
    font-size: 1.75rem;
  }
  h2.hand {
    font-size: 1.65rem;
  }
  .nu-text p.q {
    font-size: 1.1rem;
  }
  .btn {
    font-size: .95rem;
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important;
  }
  .offer-item::details-content {
    transition: none!important;
  }
}

/* blog-specific */
.blog-main {
  padding: 26px 0 40px;
}

.blog-head {
  padding-bottom: 10px;
}

.blog-head h1 {
  font-family: var(--hand);
  color: var(--orange);
  font-size: clamp(2.6rem,6vw,4rem);
  line-height: 1.1;
  font-variant-ligatures: no-common-ligatures;
  font-feature-settings: "salt" 1,"kern" 1;
}

.blog-head p {
  margin-top: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 34px;
  margin-top: 40px;
}

.card {
  position: relative;
  border: 1.5px solid var(--teal);
  border-radius: 34px;
  padding: 34px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 250px;
}

.grid>*:nth-child(3n+2) .card,
.grid>*:nth-child(3n+2) {
  border-color: var(--maroon);
}

.card.gold {
  border-color: var(--gold);
}

.card.maroon {
  border-color: var(--maroon);
}

.card time {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.card h2 {
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.3;
}

.card h2 a {
  text-decoration: none;
}

.card p {
  font-size: .92rem;
  color: var(--ink-soft);
}

.card .more {
  margin-top: auto;
  align-self: flex-start;
  text-decoration: none;
  color: var(--orange-text);
  border-bottom: 1.5px solid var(--orange-text);
  font-size: .9rem;
}

.status {
  padding: 40px 0;
  color: var(--ink-soft);
}

#post-view {
  max-width: 680px;
  margin: 0 auto;
  padding: 10px 0 20px;
}

#post-view h1 {
  font-family: var(--hand);
  color: var(--orange);
  font-size: clamp(2.2rem,5vw,3.2rem);
  line-height: 1.15;
  font-variant-ligatures: no-common-ligatures;
  font-feature-settings: "salt" 1,"kern" 1;
}

#post-view .meta {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 12px 0 28px;
}

.post-text p {
  font-size: 1rem;
  margin-bottom: 18px;
  max-width: none;
}

.back {
  display: inline-block;
  margin-bottom: 24px;
  text-decoration: none;
  color: var(--orange-text);
  border-bottom: 1.5px solid var(--orange-text);
  font-size: .9rem;
}

.admin-bar {
  display: flex;
  gap: 14px;
  margin-top: 40px;
}

.admin-bar .btn,
.blog-head .btn {
  display: inline-block;
  min-width: 170px;
}

.editor {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18,50,51,.7);
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: auto;
}

.editor-box {
  background: #fff;
  border: 1.5px solid var(--gold);
  border-radius: 0 46px 0 46px;
  padding: 34px;
  width: min(660px,100%);
}

.editor-box h2 {
  font-family: var(--hand);
  color: var(--orange);
  font-size: 2rem;
  margin-bottom: 18px;
  font-feature-settings: "salt" 1;
}

.editor-box label {
  display: block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.editor-box input,
.editor-box textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1.5px solid rgba(18,50,51,.25);
  border-radius: 6px;
  padding: 11px 13px;
  font-family: var(--body);
  font-size: .95rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
}

.editor-box input:focus,
.editor-box textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.ed-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.ed-msg {
  color: var(--orange);
  margin-bottom: 12px;
  font-size: .9rem;
}

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

/* post reader window */
.reader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18,50,51,.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 16px;
  overflow-y: auto;
}

.reader[hidden] {
  display: none;
}

.reader-box {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--gold);
  border-radius: 0 46px 0 46px;
  width: min(760px,100%);
  padding: 44px clamp(22px,5vw,56px) 36px;
}

.reader-close {
  position: absolute;
  top: 10px;
  right: 16px;
  background: none;
  border: 0;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}

.post-text {
  overflow-wrap: anywhere;
}

.post-text img {
  height: auto;
  margin: 18px auto;
}

.post-text h2,
.post-text h3 {
  font-weight: 400;
  margin: 26px 0 12px;
}

.post-text a {
  color: var(--orange);
}

.post-text blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  margin: 18px 0;
  color: var(--ink-soft);
}

.post-text ul,
.post-text ol {
  margin: 0 0 18px 22px;
}

.post-text figure {
  margin: 18px 0;
}

.post-text figcaption {
  font-size: .8rem;
  color: var(--ink-soft);
  text-align: center;
}

.reader-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1.5px solid var(--gold);
}

.more-link {
  color: var(--orange-text);
  border-bottom: 1.5px solid var(--orange-text);
  text-decoration: none;
  font-size: .9rem;
}

/* portfolio: real client tile + PDF window */
.tile .badge {
  object-fit: cover;
  padding: 0;
  border: 0;
}

.tile .preview {
  display: block;
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  overflow: hidden;
}

.tile .preview img {
  width: 100%;
  height: auto;
}

#portfolio .row {
  justify-content: safe center;
}

.pdf-box {
  width: min(900px,100%);
  padding: 44px 16px 14px;
}

.pdf-pages {
  max-height: 78vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pdf-pages canvas {
  width: 100%;
  height: auto;
  border: 1px solid rgba(18,50,51,.15);
}

.pdf-pages .pdf-msg {
  padding: 40px 10px;
  text-align: center;
  color: var(--ink-soft);
}

.pdf-foot {
  text-align: center;
  margin: 10px auto 0;
  font-size: .85rem;
}

.pdf-foot a {
  color: var(--orange);
}

/* legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 0 20px;
}

.legal h1 {
  font-family: var(--hand);
  color: var(--orange);
  font-size: clamp(2.2rem,5vw,3.2rem);
  line-height: 1.15;
  font-weight: 400;
}

.legal .meta {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 12px 0 8px;
}

.legal h2 {
  font-weight: 400;
  font-size: 1.2rem;
  margin: 28px 0 8px;
}

.legal p {
  max-width: none;
  margin-bottom: 12px;
}

.legal a {
  color: var(--orange);
}

.todo {
  background: rgba(210,156,53,.25);
  padding: 0 4px;
  border-radius: 3px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 16px;
}

.legal-links a {
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}

.legal-links a:hover {
  color: var(--gold);
}

/* embedded Substack signup */
.subscribe-embed {
  max-width: 480px;
  margin: 28px auto 0;
}

.subscribe-embed iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 1.5px solid var(--gold);
  border-radius: 0 40px 0 0;
  background: #fff;
}

/* keep a short row of teasers centred; long rows still scroll from the left */
#blog .row {
  justify-content: safe center;
}

/* ---------------------------------------------------------------
   Self-hosted Mini-Audit (audit.html). Everything is au- prefixed so
   it can't touch the rest of the site.
   --------------------------------------------------------------- */
.au-wrap {
  max-width: 720px;
}

.au-areas {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 26px 0 12px;
  padding: 0;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.au-areas li {
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.au-areas li.done {
  color: var(--teal);
}

.au-areas li[aria-current="step"] {
  color: var(--orange-text);
  border-bottom-color: var(--orange);
}

.au-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(18,50,51,.12);
  overflow: hidden;
}

.au-bar > span {
  display: block;
  height: 100%;
  background: var(--orange);
  border-radius: 3px;
  transition: width .3s;
}

.au-step {
  margin-top: 30px;
}

.au-step:focus,
.au-results:focus {
  outline: none;
}

.au-area {
  font-size: clamp(2rem,4.4vw,2.8rem);
}

.au-count {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 4px 0 18px;
}

.au-fieldset {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
  min-width: 0;
}

.au-legend {
  display: block;
  width: 100%;
  padding: 0;
  margin-bottom: 18px;
  font-size: 1.25rem;
  line-height: 1.4;
}

.au-choice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-height: 44px;
  padding: .8em 1.1em;
  margin-bottom: 12px;
  border: 1.5px solid rgba(18,50,51,.3);
  border-radius: 22px;
  cursor: pointer;
  transition: border-color .15s,background .15s;
}

.au-choice:hover {
  border-color: var(--teal);
}

.au-choice:has(input:checked) {
  border-color: var(--teal);
  background: rgba(60,110,104,.08);
}

.au-choice:has(input:focus-visible) {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.au-choice input,
.au-consent input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .2em;
  accent-color: var(--teal);
}

.au-field {
  margin-bottom: 20px;
}

.au-field > label {
  display: block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.au-opt {
  text-transform: none;
  letter-spacing: normal;
  font-size: .8rem;
}

.au-field input,
.au-field textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1.5px solid rgba(18,50,51,.4);
  border-radius: 6px;
  padding: 11px 13px;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
}

.au-field input:focus-visible,
.au-field textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-color: var(--orange);
}

.au-field [aria-invalid="true"] {
  border-color: var(--maroon);
}

.au-fielderr,
.au-error {
  color: var(--maroon);
  font-size: .92rem;
  margin-top: 6px;
}

.au-hint {
  color: var(--ink-soft);
  font-size: .9rem;
  margin: 6px 0 0;
}

.au-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 8px 0 6px;
  cursor: pointer;
}

.au-actions {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 28px;
}

.au-actions .btn {
  min-width: 150px;
}

.au-actions .btn[disabled] {
  opacity: .6;
  cursor: progress;
}

.au-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 0;
}

.au-score strong {
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(4rem,12vw,6.5rem);
  line-height: 1;
  color: var(--orange);
}

.au-score span {
  font-size: 1.4rem;
  color: var(--ink-soft);
}

.au-bars {
  list-style: none;
  margin: 26px 0 30px;
  padding: 0;
  border-top: 1.5px solid var(--gold);
}

.au-bars li {
  padding: 14px 0 12px;
  border-bottom: 1px solid rgba(18,50,51,.15);
}

.au-line {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 14px;
}

.au-line span {
  color: var(--ink-soft);
  font-size: .9rem;
}

.au-meter {
  height: 8px;
  margin-top: 8px;
  border-radius: 4px;
  background: rgba(18,50,51,.12);
  overflow: hidden;
}

.au-meter span {
  display: block;
  height: 100%;
  border-radius: 4px;
}

.tone-teal { background: var(--teal); }
.tone-gold { background: var(--gold); }
.tone-orange { background: var(--orange); }

.au-focus h3 {
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--orange-text);
  margin-top: 18px;
}

.au-focus p {
  max-width: none;
}

.au-book {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1.5px solid var(--gold);
}

.au-book .btn.inline {
  margin: 16px 0 14px;
}

.au-note {
  color: var(--ink-soft);
  font-size: .92rem;
}

@media (max-width:560px) {
  .au-actions {
    flex-direction: column-reverse;
  }
  .au-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion:reduce) {
  .au-bar > span,
  .au-choice {
    transition: none;
  }
}
