/* =======================================================================
   Annais Therapy — shared stylesheet
   Used by index.html (main site) and journal.html (the blog).
   ======================================================================= */

/* ---------- tokens ---------- */
:root {
  --ground:      #95E3F5;
  --paper:       #FFFFFF;
  --ink:         #14265F;
  --ink-soft:    #3B4E97;
  --line:        #7CC5DA;
  --accent:      #2323C6;
  --accent-press:#1A1A9E;
  --accent-ink:  #FFFFFF;
  --halo:        #C4F2FB;
  --focus:       #14265F;
  --shadow:      20px 28px 60px -34px rgba(20, 38, 95, .40);

  --display: "Quicksand", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step-eyebrow: .8125rem;
  --step-body: 1.0625rem;
  --step-lead: 1.375rem;
  --step-h3: 1.45rem;
  --step-h2: clamp(1.85rem, 3.4vw, 2.3rem);
  --step-h1: clamp(2.5rem, 6vw, 3.7rem);

  --measure: 62ch;
  --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:      #0C1E3C;
    --paper:       #14294C;
    --ink:         #E3EEF7;
    --ink-soft:    #9FC1DB;
    --line:        #274468;
    --accent:      #7FB2FF;
    --accent-press:#A6C9FF;
    --accent-ink:  #0C1E3C;
    --halo:        #123A5C;
    --focus:       #7FB2FF;
    --shadow:      20px 28px 60px -30px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --ground:      #0C1E3C;
  --paper:       #14294C;
  --ink:         #E3EEF7;
  --ink-soft:    #9FC1DB;
  --line:        #274468;
  --accent:      #7FB2FF;
  --accent-press:#A6C9FF;
  --accent-ink:  #0C1E3C;
  --halo:        #123A5C;
  --focus:       #7FB2FF;
  --shadow:      20px 28px 60px -30px rgba(0, 0, 0, .6);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.16; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-h1); letter-spacing: -.01em; }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }

.eyebrow {
  font-family: var(--display);
  font-size: var(--step-eyebrow);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

.i { color: var(--accent); }

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--ground) 85%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}
.nav-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: .9rem; }
.wordmark {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--display); font-size: 1.75rem; font-weight: 700; letter-spacing: -.015em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.mark-dot {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 32%, var(--halo), var(--accent) 78%);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--paper) 55%, transparent),
              inset 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent);
}
.nav-links { display: flex; align-items: center; gap: 1.3rem; }
/* header gets a little more width than the page body so the larger logo, links and button fit on one line */
header.nav > .wrap { max-width: 1280px; }
.nav-links a {
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  color: var(--ink-soft); text-decoration: none; padding-block: .2rem;
  border-bottom: 2px solid transparent; transition: color .16s ease, border-color .16s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: .55rem; }
.icon-btn {
  display: inline-grid; place-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  cursor: pointer; font-size: 1.05rem; line-height: 1;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav-cta { padding: .55rem 1.05rem; font-size: .92rem; }
.nav-links a, .nav-cta { white-space: nowrap; }

.nav-toggle { display: none; }
.nav-toggle .bar, .nav-toggle .bar::before, .nav-toggle .bar::after {
  content: ""; display: block; width: 18px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle .bar { position: relative; }
.nav-toggle .bar::before { position: absolute; top: -6px; }
.nav-toggle .bar::after  { position: absolute; top: 6px; }
header.nav-open .nav-toggle .bar { background: transparent; }
header.nav-open .nav-toggle .bar::before { transform: translateY(6px) rotate(45deg); }
header.nav-open .nav-toggle .bar::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1240px) {
  .nav-toggle { display: inline-grid; }
  .nav-cta.btn { display: none; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding-inline: clamp(1.25rem, 5vw, 3rem);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .3s ease, visibility .3s, padding .3s ease;
    padding-block: 0;
  }
  header.nav-open .nav-links { max-height: 80vh; visibility: visible; padding-block: .35rem .9rem; }
  .nav-links a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a.active { border-color: transparent; }
  .nav-links a.active::after { content: " ·"; color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links, .nav-toggle .bar, .nav-toggle .bar::before, .nav-toggle .bar::after { transition: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body); font-size: 1rem; font-weight: 700;
  padding: .8rem 1.35rem; border-radius: 12px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-press); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .btn:active { transform: translateY(1px); } }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: clamp(1rem, 4vw, 2rem); bottom: clamp(1rem, 4vw, 2rem); z-index: 25;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-size: 1.15rem; line-height: 1; cursor: pointer;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, border-color .16s ease, color .16s ease;
  box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .2s ease; transform: none; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--paper); padding-block: 2.6rem; font-size: .9rem; color: var(--ink-soft); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: baseline; justify-content: space-between; }
.foot-inner nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.foot-inner a { font-family: var(--display); font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.foot-inner a:hover { color: var(--ink); }


/* =======================================================================
   Main site (index.html)
   ======================================================================= */

/* ---------- hero ---------- */
.hero { position: relative; overflow: clip; }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(3.5rem, 9vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.hero-blob {
  position: absolute; z-index: 0; inset: -25% 25% auto -12%;
  width: min(760px, 92vw); aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--halo) 90%, transparent), transparent 72%),
              radial-gradient(closest-side at 68% 62%, color-mix(in srgb, var(--paper) 60%, transparent), transparent 70%);
  filter: blur(60px);
  opacity: .8;
  pointer-events: none;
  will-change: transform;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-blob { opacity: .4; } }
:root[data-theme="dark"] .hero-blob { opacity: .4; }
@media (prefers-reduced-motion: no-preference) {
  .hero-blob { animation: breathe 11s ease-in-out infinite alternate; }
}
@keyframes breathe {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.08) translateY(14px); }
}

.hero h1 { max-width: 17ch; margin-bottom: 1.4rem; }
.hero .lead { max-width: 46ch; font-size: var(--step-lead); color: var(--ink-soft); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero .kicker { margin-bottom: 1.5rem; }

/* ---------- section rhythm ---------- */
section + section { border-top: 1px solid var(--line); }
.band { padding-block: clamp(3.5rem, 8vw, 6rem); }
.band.tint { background: var(--paper); }

.grid { display: grid; grid-template-columns: 170px minmax(0, var(--measure)); gap: clamp(1.5rem, 4vw, 3rem); }
.grid > .col-label { text-align: right; }
.grid > .col-label .eyebrow { position: sticky; top: 6rem; }
@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; gap: 1rem; }
  .grid > .col-label { text-align: left; }
  .grid > .col-label .eyebrow { position: static; }
}

.flow > * + * { margin-top: 1.1rem; }
.flow h2 + p { margin-top: 1.4rem; }
.flow .lead { font-size: var(--step-lead); color: var(--ink); }

/* possibility voice */
.possible .voice { border-left: 2px solid var(--accent); padding-left: 1.4rem; }
.possible .voice p {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  line-height: 1.5;
  color: var(--ink);
}
.possible .voice p + p { margin-top: 1.2rem; }

/* ---------- breathing widget ---------- */
.breather {
  margin-top: 2.4rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.8rem 1.6rem 1.6rem;
  display: grid; justify-items: center; gap: 1rem; text-align: center;
}
.breather .stage { width: 148px; height: 148px; display: grid; place-content: center; }
.breather .ring {
  grid-area: 1 / 1; width: 148px; height: 148px; border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, var(--halo), color-mix(in srgb, var(--accent) 40%, var(--ground)) 88%);
  transform: scale(.72); transition: transform .6s ease;
}
.breather .phase {
  grid-area: 1 / 1; align-self: center; justify-self: center;
  font-family: var(--display); font-weight: 600; font-size: .98rem; color: var(--ink);
  z-index: 1; pointer-events: none;
}
.breather .hint { font-size: .88rem; color: var(--ink-soft); max-width: 34ch; }
.breather .toggle {
  font-family: var(--body); font-weight: 700; font-size: .95rem;
  padding: .6rem 1.4rem; border-radius: 999px; border: 2px solid var(--accent);
  background: transparent; color: var(--accent); cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.breather .toggle:hover { background: var(--accent); color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .breather .ring { transition: none; } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; }
.faq-list details {
  border-top: 1px solid var(--line); padding: .35rem 0;
}
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 1rem 2.4rem 1rem 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1.06rem; color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  font-family: var(--body); font-size: 1.4rem; color: var(--accent); transition: transform .2s ease;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list .answer { padding: 0 1rem 1.1rem 0; color: var(--ink-soft); max-width: 60ch; }
@media (prefers-reduced-motion: no-preference) {
  .faq-list details[open] .answer { animation: fadeSlide .24s ease; }
}
@keyframes fadeSlide { from { opacity: .3; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(1.8rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 780px) { .about-grid { grid-template-columns: 1fr; } }
.portrait {
  aspect-ratio: 4 / 5; border-radius: 18px; background: var(--ground);
  border: 1px solid var(--line);
  display: grid; place-content: center; text-align: center; color: var(--accent); overflow: hidden;
}
:root[data-theme="dark"] .portrait { background: color-mix(in srgb, var(--paper) 70%, var(--ground)); }
.portrait .mono { font-family: var(--display); font-weight: 700; font-size: 3.4rem; line-height: 1; }
.portrait .cap { font-family: var(--display); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-top: .6rem; color: var(--ink-soft); }
.creds { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.creds li { font-size: .9rem; color: var(--ink-soft); display: flex; align-items: center; gap: 1rem; }
.creds li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-left: -.5rem; }

/* ---------- shop aside ---------- */
.shop {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 2.5rem; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow);
}
@media (max-width: 720px) { .shop { grid-template-columns: 1fr; } }
.shop h3 { margin-bottom: .6rem; }
.shop p { color: var(--ink-soft); max-width: 52ch; }

/* ---------- contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 42ch) minmax(0, 1fr); gap: clamp(2rem, 6vw, 4rem); }
@media (max-width: 840px) { .contact-grid { grid-template-columns: 1fr; } }
form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
label { font-family: var(--display); font-size: .85rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft); }
.prompt-label { margin-bottom: .1rem; }
.prompts { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .3rem; }
.prompt {
  font-family: var(--display); font-weight: 600; font-size: .82rem;
  padding: .4rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft); cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.prompt:hover { color: var(--ink); }
.prompt[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
input, textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: .75rem .85rem; width: 100%; resize: vertical;
}
input:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: transparent; }
.form-status { font-size: .95rem; color: var(--accent); min-height: 1.4em; font-weight: 600; }
.contact-note { color: var(--ink-soft); }
.contact-note strong { color: var(--ink); font-weight: 700; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-details {
  margin: 1.8rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: grid; gap: .85rem;
}
.contact-details .item { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: .9rem; align-items: baseline; }
.contact-details dt {
  font-family: var(--display); font-weight: 700; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0;
}
.contact-details dd { margin: 0; color: var(--ink); min-width: 0; }
.contact-details dd a { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .contact-details .item { grid-template-columns: 1fr; gap: .2rem; }
}


/* =======================================================================
   Journal (journal.html)
   ======================================================================= */

/* ---------- page head ---------- */
.page-head { padding-top: clamp(3rem, 8vw, 5rem); padding-bottom: 1.5rem; }
.page-head h1 { max-width: 18ch; margin: 1rem 0 1rem; }
.page-head .standfirst { max-width: 54ch; font-size: var(--step-lead); color: var(--ink-soft); }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; padding-block: 1.8rem 2.4rem; }
.chip {
  font-family: var(--display); font-weight: 600; font-size: .85rem;
  padding: .45rem .95rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft); cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- post grid ---------- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding-bottom: clamp(3rem, 8vw, 6rem); }
@media (max-width: 700px) { .posts { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; gap: .7rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.6rem; text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
@media (prefers-reduced-motion: no-preference) { .card:hover { transform: translateY(-3px); box-shadow: var(--shadow); } }
.card.feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem 2.4rem; align-items: center; }
@media (max-width: 700px) { .card.feature { grid-template-columns: 1fr; } }
.card.feature .thumb {
  aspect-ratio: 16 / 11; border-radius: 12px; order: 2;
  background: radial-gradient(circle at 30% 30%, var(--halo), color-mix(in srgb, var(--accent) 35%, var(--ground)) 85%);
}
@media (max-width: 700px) { .card.feature .thumb { order: 0; } }
.card.feature .body { order: 1; display: flex; flex-direction: column; gap: .7rem; }

.tag { font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.card h2, .card h3 { color: var(--ink); }
.card .excerpt { color: var(--ink-soft); }
.meta { font-size: .82rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-top: .2rem; }
.card .more { font-family: var(--display); font-weight: 700; font-size: .9rem; color: var(--accent); }

.is-hidden { display: none !important; }

/* ---------- article ---------- */
.article { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 8vw, 6rem); }
.article-inner { max-width: 66ch; margin-inline: auto; }
.back {
  font-family: var(--display); font-weight: 700; font-size: .9rem; color: var(--ink-soft);
  text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 2rem;
}
.back:hover { color: var(--ink); }
.article h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin: .8rem 0 1rem; }
.article .standfirst { font-size: var(--step-lead); color: var(--ink-soft); }
.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem;
  margin-top: 1.6rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line);
  font-size: .85rem; color: var(--ink-soft);
}
.byline .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.prose { margin-top: 2rem; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2.4rem; }
.prose blockquote {
  margin: 2rem 0; padding-left: 1.4rem; border-left: 3px solid var(--accent);
  font-family: var(--display); font-weight: 500; font-size: 1.3rem; line-height: 1.5; color: var(--ink);
}
.prose ul { padding-left: 1.2rem; margin-block: 1.15rem; }
.prose li + li { margin-top: .45rem; }

.author-card {
  margin-top: 3rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: 16px;
  background: var(--paper); display: flex; gap: 1.2rem; align-items: flex-start; flex-wrap: wrap;
}
.author-card .av {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  background: var(--ground); display: grid; place-content: center;
  font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--accent);
}
.author-card .txt { flex: 1 1 260px; display: flex; flex-direction: column; gap: .5rem; }
.author-card p { color: var(--ink-soft); font-size: .95rem; }


/* ---------- portrait photo (responsive) ---------- */
img { max-width: 100%; height: auto; }
.portrait { position: relative; display: block; }
.portrait img {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
}
@media (max-width: 780px) {
  /* stacked layout: keep the photo a sensible size and centred-left, not full-bleed */
  .portrait { width: 100%; max-width: 300px; }
  /* credentials under the photo: simple stacked list with tidy bullets */
  .creds { flex-direction: column; gap: .45rem; }
  .creds li { gap: .65rem; }
  .creds li::before, .creds li + li::before {
    content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent); margin-left: 0;
  }
}

/* ---------- header logo on phones ---------- */
@media (max-width: 600px) {
  .wordmark { font-size: 1.5rem; gap: .6rem; }
  .mark-dot { width: 28px; height: 28px; }
}
@media (max-width: 400px) {
  .nav-inner { gap: .5rem; }
  .nav-actions { gap: .4rem; }
  .wordmark { font-size: 1.35rem; gap: .5rem; }
  .mark-dot { width: 26px; height: 26px; }
}
@media (max-width: 350px) {
  .wordmark { font-size: 1.2rem; }
  .mark-dot { width: 22px; height: 22px; }
}


/* =======================================================================
   Mobile refinements
   Layered on top of everything above, kept in one block so it's easy to
   review or tweak.
   ======================================================================= */

/* ---------- all sizes ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }  /* stop iOS enlarging text in landscape */
h1, h2, h3, p, li, dd, summary { overflow-wrap: break-word; }
.btn { justify-content: center; text-align: center; }
button, a, summary, input, textarea { -webkit-tap-highlight-color: transparent; }

/* open mobile menu: use the real visible height so it isn't hidden behind browser toolbars */
@media (max-width: 1240px) {
  header.nav-open .nav-links { max-height: 80vh; max-height: 80dvh; overflow-y: auto; }
}

/* keep the back-to-top button clear of the iPhone home bar */
.to-top {
  right: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-right));
  bottom: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-bottom));
}

/* ---------- phones & small tablets ---------- */
@media (max-width: 780px) {
  .band { padding-block: clamp(2.75rem, 10vw, 3.5rem); }
  .possible .voice { padding-left: 1.1rem; }
  .breather { padding: 1.5rem 1.1rem 1.3rem; }
  .faq-list summary { padding-right: 2rem; }
}

@media (max-width: 720px) {
  /* Etsy card: button spans the card */
  .shop .btn { width: 100%; }
}

@media (max-width: 700px) {
  /* Journal: shorter picture on the featured post card */
  .card.feature .thumb { aspect-ratio: 16 / 8; }
  .card { padding: 1.3rem; }
  .author-card { padding: 1.3rem; }
}

@media (max-width: 600px) {
  /* footer: stack neatly instead of ragged wrapping */
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 520px) {
  /* main buttons: full width, equal size, easy to hit with a thumb */
  .hero-actions { flex-direction: column; }
  .hero-actions .btn,
  #consult-form button[type="submit"] { width: 100%; }
}

/* ---------- touch screens: comfortable tap targets (~44px) ---------- */
@media (pointer: coarse) {
  .icon-btn { width: 44px; height: 44px; }
  .wordmark { min-height: 44px; }
  .btn { min-height: 48px; }
  .chip, .prompt { min-height: 44px; padding-inline: 1.05rem; display: inline-flex; align-items: center; }
  .breather .toggle { min-height: 44px; }
  .back { min-height: 44px; margin-bottom: 1rem; }
  .contact-details dd a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-inner a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-inner nav { gap: 0 1.2rem; }
}

