:root {
  --cream: #fbf9f4;
  --lilac: #e8d6e4;
  --blue: #a9c3e6;
  --ink: #2d3130;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 6.3vw, 5rem);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.center { text-align: center; }

/* Bottoni */
.btn {
  display: inline-block; background: var(--blue); color: #fff; font-weight: 600;
  padding: .85rem 2.2rem; border-radius: 999px;
}
.btn:hover { filter: brightness(.95); }
.btn-outline {
  display: inline-block; border: 1px solid #6c716f; border-radius: 999px;
  padding: .75rem 1.6rem; font-size: .95rem;
}
.btn-outline:hover { background: rgba(0,0,0,.04); }

/* Navbar */
.nav {
  display: flex; align-items: center; gap: 2rem; padding: 1.1rem var(--pad);
  background: var(--cream);
}
.brand { display: flex; align-items: center; gap: .9rem; line-height: 1.3; }
.brand-text { display: flex; flex-direction: column; }
.brand-photo {
  width: 3.4rem; height: 3.4rem; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; object-position: center 25%; background: var(--lilac);
}
.brand strong { font-weight: 600; }
.nav nav { margin-left: auto; display: flex; gap: 2rem; flex-wrap: wrap; }
.nav nav a.active { text-decoration: underline; text-underline-offset: 4px; }
.nav nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero {
  min-height: clamp(26rem, 60vw, 48rem); background-size: cover; background-position: center;
  display: flex; align-items: center; padding: 0 var(--pad);
}
.hero-text { max-width: 28rem; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); margin-bottom: 1.2rem; }
.hero p { margin-bottom: 1.8rem; }

/* Sezioni lilla */
.lilac { background: var(--lilac); padding: 4.5rem var(--pad); }

.cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
  align-items: start; margin-top: 3.5rem;
}
.card {
  background: var(--cream); border-radius: 28px; padding: 1.75rem 1.5rem 2rem;
  text-align: center; font-size: .95rem;
}
.card img { width: 100%; max-width: 12rem; aspect-ratio: 16 / 7; object-fit: cover; margin: 0 auto 1rem; }
.card h3 { font-size: 1.1rem; margin-bottom: .6rem; }

/* Il mio approccio */
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); }
.split img { width: 100%; height: 100%; object-fit: cover; min-height: 22rem; }
.split-text { padding: 3rem var(--pad); align-self: center; display: grid; gap: 1.2rem; justify-items: start; }
.split-text p { max-width: 34rem; }

/* Ambiti di intervento */
.ambiti {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem;
  margin-top: 3rem; padding: 0 2rem;
}
.ambiti img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; margin-bottom: 1.25rem; }
.ambiti h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; margin-bottom: .5rem; }
.ambiti p { font-size: .92rem; }

/* Blog */
.blog { padding: 4.5rem var(--pad) 5rem; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.link { text-decoration: underline; text-underline-offset: 4px; font-size: .95rem; }
.empty { text-align: center; padding: 6rem 0 2rem; display: grid; gap: .4rem; }
.empty strong { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; }

/* Richiedi informazioni */
.info { padding-top: 14rem; padding-bottom: 8rem; display: grid; gap: 1rem; justify-items: start; }
.info .btn { margin-top: .5rem; }

/* Footer */
footer {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 2rem var(--pad); background: var(--cream);
}
footer small { font-size: .85rem; }

/* Tablet e mobile */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .ambiti { grid-template-columns: 1fr; padding: 0; }
  .info { padding-top: 6rem; padding-bottom: 5rem; }
}
@media (max-width: 720px) {
  .nav { flex-wrap: wrap; gap: 1rem; }
  .nav nav { order: 3; width: 100%; margin-left: 0; gap: 1.2rem; }
  .nav .btn { margin-left: auto; padding: .6rem 1.4rem; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===== Pagine interne ===== */
.rounded { border-radius: 32px; object-fit: cover; width: 100%; background: #d9c7d4; }

/* Chi sono */
.formazione { padding-bottom: 5rem; }
.timeline { list-style: none; padding: 0; max-width: 62rem; margin: 3rem auto 0; display: grid; gap: 2rem; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; padding: 6rem var(--pad); align-items: center; }
.about .rounded { aspect-ratio: 3 / 4; }
.about-text { display: grid; gap: 1.4rem; }
.about-text h2 { margin-bottom: .6rem; }

/* Ambiti clinici */
.ac-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding-top: 4.5rem; padding-bottom: 6rem; }
.ac-row .rounded { aspect-ratio: 4 / 5; }
.ac-text { display: grid; gap: 1.2rem; max-width: 34rem; font-size: .95rem; }
.ac-text h2 { margin-bottom: .4rem; }
.ac-full { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--cream); }
.ac-full img { width: 100%; height: 100%; min-height: 24rem; object-fit: cover; background: #d9c7d4; }
.ac-full .ac-text { padding: 3rem var(--pad); }
.ac-center { text-align: center; padding-top: 6rem; padding-bottom: 6rem; display: grid; gap: 1rem; justify-items: center; }
.ac-center h2 { font-weight: 600; }
.ac-center p { max-width: 42rem; }
.ac-left { padding: 6rem var(--pad); }

/* Pubblicazioni */
.pubs { font-family: var(--serif); padding-bottom: 6rem; }
.pubs h2 { margin-bottom: 2.5rem; }
.pubs hr { border: 0; border-top: 1px solid #8a7f88; margin: 2.5rem 0; }
.pubs h3 { font-size: 1.05rem; margin: 2rem 0 1.5rem; }
.pubs p { margin-bottom: 1.5rem; font-size: 1.05rem; max-width: 70rem; }

/* Blog */
.blog-page { background: var(--lilac); padding: 0 clamp(0rem, 12vw, 14rem); }
.blog-col { background: var(--cream); min-height: 30rem; padding: 1.25rem 1.5rem; }
.blog-col > small { color: #6c716f; }
.blog-col .empty { padding-top: 8rem; }

/* Contatti */
.contatti { padding-top: 6rem; padding-bottom: 6rem; }
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.studio .rounded { aspect-ratio: 4 / 5; }
.studio-text { display: grid; gap: 1.4rem; }
.form-card {
  background: var(--cream); border-radius: 48px; padding: 3rem 3.5rem;
  max-width: 46rem; margin: 6rem auto 0; box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
.form-card .lead { font-size: 1.15rem; margin: 1rem 0 3rem; }
.form-card .sub { font-size: 1.8rem; }
.form-card .small { font-size: .85rem; margin: .8rem 0 1.2rem; }
.form-card form { display: grid; gap: 1rem; }
.form-card label { display: grid; gap: .35rem; font-size: .8rem; }
.form-card input, .form-card textarea {
  font: inherit; font-size: .85rem; border: 0; border-radius: 6px; padding: .7rem .8rem;
  background: var(--lilac); color: var(--ink);
}
.form-card ::placeholder { color: #7a707a; }
.form-card button {
  font: inherit; font-size: .85rem; color: #fff; background: #4a6866; border: 0;
  border-radius: 6px; padding: .8rem; cursor: pointer; margin-top: .4rem;
}
.form-card button:hover { filter: brightness(1.1); }

@media (max-width: 960px) {
  .about, .ac-row, .ac-full, .studio { grid-template-columns: 1fr; }
  .ac-row .rounded { order: -1; }
  .form-card { padding: 2rem 1.5rem; border-radius: 32px; margin-top: 3rem; }
}

/* ===== Contenuti reali ===== */
.hero-text { max-width: 36rem; }
.hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); margin-bottom: 1.2rem; }
.hero p { margin-bottom: 1rem; }
.hero .mod { font-weight: 600; }
.hero .sign { margin: 1.4rem 0 1.8rem; font-size: .9rem; }
.hero .quote { font-family: var(--serif); font-style: italic; font-size: .95rem; margin-bottom: 1.5rem; max-width: 30rem; }
.hero .quote cite { display: block; font-style: normal; font-family: var(--sans); font-size: .8rem; margin-top: .3rem; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.chips { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .8rem; margin-top: 2.5rem; }
.chips a { display: block; background: var(--cream); border-radius: 18px; padding: 1rem 1.2rem; font-size: .95rem; height: 100%; }
.chips a:hover { filter: brightness(.97); }

.acc { max-width: 62rem; margin: 3rem auto 0; display: grid; gap: .8rem; }
.acc details { background: var(--cream); border-radius: 18px; padding: 1.1rem 1.4rem; }
.acc summary { font-family: var(--serif); font-size: 1.15rem; cursor: pointer; -webkit-user-select: none; user-select: none; }
.acc details p { margin-top: 1rem; }
.figs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding: 0 var(--pad) 5rem; }
.figs .rounded { aspect-ratio: 4 / 3; }
.figs figcaption { margin-top: .7rem; font-size: .9rem; }

.ac-text h3 { font-family: var(--serif); font-size: 1.2rem; }
.more { font-size: .88rem; font-style: italic; }
.more a, .pub .ref a { text-decoration: underline; text-underline-offset: 3px; }
.lista { list-style: none; padding: 0; margin-top: 2rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 3rem; font-size: .95rem; }
.ac-left > h2 { margin-bottom: .5rem; }

.pub { max-width: 62rem; margin: 0 auto; display: grid; gap: 1.2rem; }
.pub article { background: var(--cream); border-radius: 22px; padding: 1.6rem 1.8rem; }
.pub h2 { font-size: 1.2rem; margin-bottom: .6rem; }
.pub .ref { font-size: .82rem; color: #5a5f5d; margin-top: .9rem; font-style: italic; word-break: break-word; }
footer small { text-align: right; line-height: 1.6; }

@media (max-width: 720px) {
  .figs, .lista { grid-template-columns: 1fr; }
  footer small { text-align: left; }
}
/* Rifiniture comuni e navigazione responsive */
h1 { font-size: clamp(2rem, 4vw, 3rem); }
.btn { color: var(--ink); text-align: center; }
.brand { flex-shrink: 0; }
.brand-text { min-width: 0; }
.nav { flex-wrap: wrap; gap: 1rem 2rem; }
.nav nav { gap: .8rem 1.4rem; }
.nav > .btn { flex-shrink: 0; }
.hero { background: radial-gradient(ellipse at 85% 20%, #e8d6e4 0%, transparent 65%), linear-gradient(130deg, #fbf9f4, #e7edf4); padding-block: clamp(3rem, 7vw, 6rem); min-height: auto; }
.hero-text { max-width: 44rem; }
.hero .quote { margin-top: 2.5rem; margin-bottom: 0; padding-left: 1rem; border-left: 2px solid #8b7186; }
.cards { align-items: stretch; }
.card h3 { font-size: 1.4rem; }
.split { grid-template-columns: 1fr; }
.split-text { padding-block: 4rem; }
.info { padding-top: 5rem; padding-bottom: 5rem; }
.studio { grid-template-columns: 1fr; }
.studio-text { max-width: 46rem; margin-inline: auto; }
.page-heading, .closing-cta { padding: 3.5rem var(--pad); display: grid; gap: 1.25rem; justify-items: start; }
.page-heading p { max-width: 42rem; }
.skip-link { position: absolute; left: 1rem; top: -6rem; z-index: 10; background: var(--cream); padding: .8rem 1rem; }
.skip-link:focus { top: 1rem; }
p, a, strong { overflow-wrap: anywhere; }
@media (max-width: 1100px) { .nav nav { order: 3; width: 100%; margin-left: 0; } .nav > .btn { margin-left: auto; } }
@media (max-width: 520px) { .nav > .btn { margin-left: 0; } .brand { flex-shrink: 1; } .brand strong { font-size: .95rem; } .about { gap: 2rem; padding-block: 3rem; } .form-card { margin-top: 2.5rem; } }

/* Immagini fornite per il sito */
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); }
.hero-text { min-width: 0; }
.hero-art { width: 100%; max-width: 26rem; height: auto; max-height: 38rem; object-fit: contain; border-radius: 28px; justify-self: center; }
.card img { max-width: none; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; margin-bottom: 1.25rem; }
.split.with-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.split .approach-photo { width: 100%; height: auto; max-height: 40rem; min-height: 0; object-fit: contain; padding: 3rem; }
.portrait { object-position: center 30%; }
.clinical-photo-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.clinical-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; }
.research-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; padding: 2rem var(--pad) 5rem; align-items: center; }
.research-section img { width: 100%; height: auto; border-radius: 24px; }
.research-section figcaption { margin-top: .8rem; font-size: .9rem; }
.research-section > div { display: grid; gap: 1.2rem; justify-items: start; }
footer .footer-logo { width: 3.5rem; height: auto; flex-shrink: 0; mix-blend-mode: multiply; }
footer > div { margin-right: auto; }
@media (max-width: 960px) {
 .hero { grid-template-columns: minmax(0, 1fr); }
 .hero-art { max-width: 19rem; max-height: 27rem; }
 .split.with-photo, .clinical-photo-row, .research-section { grid-template-columns: minmax(0, 1fr); }
 .split .approach-photo { max-height: 32rem; padding: 2rem var(--pad) 0; }
 .clinical-photo { max-width: 42rem; }
 .research-section { gap: 2rem; }
}

/* Interazioni e riferimenti alle pubblicazioni */
.pub article { scroll-margin-top: 2rem; }
.pub article:target {
  outline-offset: 3px;
  animation: publication-highlight 2s ease-out;
}
@keyframes publication-highlight {
  0%, 60% { background: #e5effb; outline: 2px solid #617fa6; box-shadow: 0 0 0 7px rgba(169, 195, 230, .3); }
  100% { background: var(--cream); outline: 2px solid transparent; box-shadow: 0 0 0 7px transparent; }
}
.email-link { display: inline-flex; align-items: center; gap: .65rem; max-width: 100%; text-decoration: none; }
.email-link span { min-width: 0; text-decoration: underline; text-underline-offset: 4px; }
.email-icon { flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) {
  .pub article:target { animation: publication-highlight-static 2s step-end; }
}
@keyframes publication-highlight-static {
  0% { background: #e5effb; outline: 2px solid #617fa6; }
  100% { background: var(--cream); outline: 2px solid transparent; }
}

/* Transizioni uniformi per i contenuti fuori dallo schermo. */
.about .rounded.portrait { width: min(100%, 20rem); height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 30%; justify-self: center; }
@media (min-width: 961px) { .about { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
@media (prefers-reduced-motion: no-preference) {
 .reveal-ready { opacity: 1; transform: translate(0, 0); transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1); transition-delay: var(--reveal-delay, 0ms); }
 .reveal-pending { opacity: 0; transform: translateY(18px); }
 .reveal-pending[data-reveal="side"] { transform: translateX(-20px); }
 .reveal-pending[data-reveal="fade"] { transform: none; }
}
@media print { .reveal-ready, .reveal-pending { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* Rifiniture mobile: contenuti leggibili e controlli comodi da toccare. */
.form-card label, .form-card input, .form-card textarea { min-width: 0; }
.form-card input, .form-card textarea { width: 100%; max-width: 100%; }
.form-card textarea { resize: vertical; }
@media (max-width: 768px) {
  h1, h2, h3, summary { overflow-wrap: anywhere; hyphens: auto; }
  .nav nav { gap: .25rem .8rem; }
  .nav nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .2rem; }
  .btn, .btn-outline, .form-card button { min-height: 44px; max-width: 100%; }
  .card h3 a { display: inline-flex; align-items: center; min-height: 44px; }
  .form-card input, .form-card textarea, .form-card button { font-size: 1rem; }
  .form-card input { min-height: 44px; }
  .form-card label { font-size: .95rem; }
  .form-card .lead { margin-bottom: 1.75rem; }
  .lilac, .ac-left, .ac-center, .contatti, .info { padding-block: 3rem; }
  .about { padding-block: 3rem; }
  .split-text { padding-block: 2.5rem; }
  .cards { margin-top: 2rem; }
  .chips { grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); }
  .pub article { padding: 1.4rem 1.2rem; min-width: 0; }
  .acc details { padding: 1rem; min-width: 0; }
  .acc summary { padding-block: .35rem; }
  .about-text, .ac-text, .studio-text { min-width: 0; }
  footer small { flex-basis: 100%; text-align: left; overflow-wrap: anywhere; }
}
@media (max-width: 520px) {
  .nav { gap: .75rem; }
  .nav .brand { flex-basis: 100%; }
  .nav > .btn { margin-left: 0; }
  .nav nav { gap: .2rem .75rem; }
  .hero { padding-block: 2.5rem; gap: 2rem; }
  .hero-art { max-width: 14rem; }
  .hero .btn { padding-inline: 1.25rem; }
  .page-heading, .closing-cta { padding-block: 2.5rem; }
  .form-card { padding: 1.5rem 1.1rem; border-radius: 24px; }
  .research-section { padding-bottom: 3rem; }
  .blog-page { padding-inline: var(--pad); }
}

/* Menu mobile: pulsante accanto al brand e pannello nel flusso della pagina. */
.nav-panel { display: contents; }
.nav-panel[hidden] { display: none; }
.menu-toggle { display: none; }
.menu-close { display: none; }
@media (max-width: 1100px) {
  .nav-panel > .btn { margin-left: auto; }
}
@media (max-width: 768px) {
  .nav.menu-enabled { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: .75rem; }
  .nav.menu-enabled .brand { min-width: 0; gap: .65rem; }
  .nav.menu-enabled .brand-photo { width: 2.75rem; height: 2.75rem; }
  .nav.menu-enabled .brand strong { font-size: .9rem; }
  .nav.menu-enabled .brand-text > span { font-size: .8rem; }
  .menu-enabled .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #c8b7c4; border-radius: 12px; color: var(--ink); background: var(--cream); cursor: pointer; }
  .menu-toggle[aria-expanded="true"] { background: var(--lilac); }
  .menu-toggle[aria-expanded="true"] .menu-lines { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-close { display: block; }
  .menu-enabled .nav-panel:not([hidden]) { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .75rem; padding: 1rem; border-radius: 18px; background: var(--lilac); }
  .nav.menu-enabled nav { display: flex; flex-direction: column; align-items: stretch; order: 0; width: 100%; gap: .2rem; margin: 0; }
  .nav.menu-enabled nav a { padding: .6rem .75rem; min-height: 44px; border-radius: 10px; }
  .nav.menu-enabled nav a.active { background: var(--cream); text-decoration: none; }
  .nav.menu-enabled .nav-panel > .btn { margin: 0; width: 100%; padding: .75rem 1.4rem; }
}

/* Mappa dello studio e indirizzo con pin. */
.address-link { display: inline-flex; align-items: flex-start; gap: .65rem; max-width: 100%; text-decoration: none; line-height: 1.6; }
.address-link span { min-width: 0; text-decoration: underline; text-underline-offset: 4px; }
.address-icon { flex: 0 0 auto; margin-top: .1rem; }
.studio-text { width: 100%; }
.map-card { width: 100%; min-width: 0; margin-top: .5rem; overflow: hidden; background: var(--cream); border: 1px solid rgba(108, 83, 104, .15); border-radius: 28px; box-shadow: 0 6px 24px rgba(45, 49, 48, .05); }
.studio-map { display: block; width: 100%; height: 320px; border: 0; background: #eeeae5; }
.map-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; padding: 1.5rem; }
.map-caption h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.map-caption p { font-size: .9rem; }
.map-caption .btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 44px; }
@media (max-width: 520px) {
  .map-card { border-radius: 22px; }
  .studio-map { height: 260px; }
  .map-caption { padding: 1.2rem; gap: 1rem; }
  .map-caption .btn-outline { width: 100%; padding-inline: 1rem; }
}

/* Accessibilità: focus, contrasto dei controlli e reflow. */
:focus-visible { outline: 3px solid #2d3130; outline-offset: 4px; box-shadow: 0 0 0 2px #fbf9f4; }
.skip-link { top: 0; transform: translateY(-150%); max-width: calc(100% - 2rem); }
.skip-link:focus { top: 1rem; transform: none; }
main:focus { outline-offset: -4px; }
[id] { scroll-margin-top: 1.5rem; }
.nav nav a { display: inline-flex; align-items: center; min-height: 44px; }
.nav.menu-enabled nav a[aria-current="page"] { font-weight: 600; }
.menu-enabled .menu-toggle { border-color: #71646e; }
.btn, .btn-outline, button { min-height: 44px; }
.acc summary { min-height: 44px; }
.form-card input, .form-card textarea {
  font-size: 1rem; min-height: 44px; border: 1px solid #71646e;
  background: var(--lilac); line-height: 1.5;
}
.form-card label { font-size: .95rem; }
.form-card ::placeholder { color: #625964; opacity: 1; }
.form-card button { font-size: 1rem; }
.form-card [aria-invalid="true"] { border: 2px solid #8a263d; }
.field-error { display: block; color: #8a263d; font-size: .9rem; line-height: 1.5; }
.field-error[hidden], .error-summary[hidden] { display: none; }
.error-summary { border: 2px solid #8a263d; border-radius: 12px; padding: 1rem; }
.error-summary h4 { font: 600 1rem/1.5 var(--sans); margin-bottom: .5rem; }
.error-summary ul { padding-left: 1.2rem; }
.error-summary a { color: #8a263d; text-decoration: underline; text-underline-offset: 3px; }
.error-summary li + li { margin-top: .5rem; }
.pub .ref { font-size: .9rem; }
.map-skip { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; }
.map-caption:focus-visible { outline-offset: -5px; }
.chips { grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); }
main, main > *, .cards > *, .pub, .studio, .form-card, .acc { min-width: 0; }
h1, h2, h3, summary, figcaption { overflow-wrap: anywhere; }
@media (forced-colors: active) {
  .btn, .btn-outline, .menu-toggle, .form-card button { border: 2px solid ButtonText; }
  .nav nav a[aria-current="page"] { outline: 2px solid LinkText; outline-offset: 2px; }
  .form-card input, .form-card textarea { border: 2px solid FieldText; }
  :focus-visible { outline: 3px solid Highlight; box-shadow: none; }
}
