/* Paperbark — financial advice for Australian households
   Plain CSS, mobile first, no framework.

   1. Fonts            7. Hero                       13. Cookie banner
   2. Tokens           8. Your plan (the sheet)      14. Privacy page
   3. Base             9. How we help                15. Image placeholders
   4. Layout helpers  10. About                      16. Motion
   5. Buttons & links 11. Start (three-step form)    17. Without JavaScript
   6. Header          12. Footer
   ========================================================================= */


/* 1. Fonts — self-hosted, latin subset (licences in fonts/)
   ========================================================================= */

@font-face {
  font-family: "Besley";
  src: url("../fonts/besley-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


/* 2. Tokens
   ========================================================================= */

:root {
  --white: #ffffff;
  --cream: #fbf3ea;
  --apricot: #f5c2a0;
  --apricot-strong: #f0a274;
  --apricot-soft: #fde9da;
  --aubergine: #2b1830;
  --aubergine-2: #3d2343;
  --plum: #6d3b6c;
  --muted: #6b5a6e;
  --lilac: #cdb8d0;
  --line: #e9dacb;
  --line-strong: #8f7b8f;
  --line-dark: rgb(255 255 255 / 0.16);
  --error: #b42318;

  --font-display: "Besley", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Segoe UI", Arial, sans-serif;

  --wrap: 76rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section-space: clamp(4rem, 3rem + 5vw, 8rem);
  --radius: 12px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}


/* 3. Base
   ========================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--aubergine);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, dl, dd, figure {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

ul {
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 3px;
}

[tabindex="-1"]:focus {
  outline: none;
}


/* 4. Layout helpers
   ========================================================================= */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.section--cream {
  background: var(--cream);
}

.section--apricot {
  background: var(--apricot);
}

.section-title {
  max-width: 18ch;
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.5rem);
}

.section-lead {
  max-width: 44ch;
  margin-top: 1.25rem;
  font-size: 1.1875rem;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--aubergine);
  color: var(--white);
  font-weight: 650;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.i {
  flex: none;
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}


/* 5. Buttons & links
   ========================================================================= */

a {
  color: var(--plum);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--aubergine);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.12s;
}

.btn:hover {
  background: var(--plum);
}

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

.btn .i {
  transition: transform 0.2s var(--ease);
}

.btn:hover .i {
  transform: translateX(3px);
}

.btn--small {
  min-height: 2.75rem;
  padding: 0.5rem 1.15rem;
  font-size: 0.9375rem;
}

.btn--apricot {
  background: var(--apricot-strong);
  color: var(--aubergine);
}

.btn--apricot:hover {
  background: var(--apricot);
}

.btn--outline {
  border-color: var(--aubergine);
  background: transparent;
  color: var(--aubergine);
}

.btn--outline:hover {
  background: var(--aubergine);
  color: var(--white);
}

.btn--outline:hover .i {
  transform: translateX(-3px);
}


/* 6. Header
   ========================================================================= */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 0.75rem 0.35rem;
}

.logo {
  padding-block: 0.5rem;
  color: var(--aubergine);
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1;
  text-decoration: none;
}

.site-nav {
  order: 3;
  width: 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

.site-nav a {
  display: block;
  padding-block: 0.6rem;
  color: var(--aubergine);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 transparent;
  transition: box-shadow 0.2s;
}

.site-nav a:hover {
  box-shadow: inset 0 -2px 0 var(--apricot-strong);
}

/* on narrow phones the hero button, just below, does the job */
@media (max-width: 33.99rem) {
  .site-header__cta {
    display: none;
  }
}

@media (min-width: 56rem) {
  .site-header__inner {
    flex-wrap: nowrap;
    gap: 2.5rem;
    min-height: 5.25rem;
    padding-block: 0;
  }

  .site-nav {
    order: 0;
    width: auto;
    margin-left: auto;
  }

  .site-nav ul {
    gap: 2rem;
  }
}

/* privacy page: logo and a way back */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: var(--aubergine);
  font-weight: 650;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--apricot-strong);
  text-decoration-thickness: 2px;
}

.page-header .site-header__inner {
  flex-wrap: nowrap;
  min-height: 5.25rem;
  padding-block: 0;
}


/* 7. Hero — a coloured panel and a photograph, side by side from 960 px
   ========================================================================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--aubergine);
  color: var(--cream);
}

.hero__panel {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.5rem;
  padding: clamp(2.75rem, 1.5rem + 5vw, 5.5rem) var(--gutter) clamp(3rem, 2rem + 4vw, 5.5rem);
}

.hero__title {
  max-width: 16ch;
  color: var(--cream);
  font-size: clamp(2.4rem, 1.35rem + 3.4vw, 4.4rem);
  line-height: 1.04;
}

.hero__lead {
  max-width: 46ch;
  color: rgb(251 243 234 / 0.86);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
}

.hero__cta {
  margin-top: 0.5rem;
}

.hero :focus-visible {
  outline-color: var(--apricot-strong);
}

.hero__media :is(.ph, img) {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (min-width: 60rem) {
  .hero {
    grid-template-columns:
      [full-start] minmax(var(--gutter), 1fr)
      [content-start] minmax(0, calc(var(--wrap) * 0.56))
      [split] minmax(0, calc(var(--wrap) * 0.44))
      [content-end] minmax(var(--gutter), 1fr) [full-end];
    min-height: min(86svh, 50rem);
  }

  .hero__panel {
    grid-column: content-start / split;
    padding-inline: 0 clamp(2.5rem, 5vw, 5.5rem);
  }

  .hero__media {
    grid-column: split / full-end;
  }

  .hero__media :is(.ph, img) {
    height: 100%;
    aspect-ratio: auto;
  }
}


/* 8. Your plan — the sheet
   ========================================================================= */

.plan__grid {
  display: grid;
  gap: 3rem;
}

.plan__intro > p:not(.section-lead) {
  max-width: 44ch;
  margin-top: 1rem;
  color: var(--muted);
}

@media (min-width: 60rem) {
  .plan__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
  }
}

.sheet {
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 2px 0 var(--line), 0 40px 70px -50px rgb(43 24 48 / 0.5);
}

.sheet__title {
  color: var(--plum);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: 0;
}

.sheet__list {
  margin-top: 1.25rem;
}

.sheet__item {
  display: grid;
  gap: 0.3rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
}

.sheet__item dt {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.25;
}

.sheet__item dd {
  color: var(--muted);
}

@media (min-width: 40rem) {
  .sheet__item {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    column-gap: 2rem;
    align-items: baseline;
  }
}


/* 9. How we help
   ========================================================================= */

.help__head {
  display: grid;
  gap: 1.25rem;
}

.help__head .section-lead {
  margin-top: 0;
}

@media (min-width: 60rem) {
  .help__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 4rem;
    align-items: end;
  }
}

.help__media {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.help__media :is(.ph, img) {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (min-width: 48rem) {
  .help__media :is(.ph, img) {
    aspect-ratio: 21 / 9;
  }
}

.questions {
  display: grid;
  column-gap: clamp(2.5rem, 6vw, 6rem);
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}

@media (min-width: 52rem) {
  .questions {
    grid-template-columns: 1fr 1fr;
  }
}

.question {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding-block: 2rem;
  border-top: 2px solid var(--aubergine);
}

.question__topic {
  color: var(--plum);
  font-size: 0.9375rem;
  font-weight: 650;
}

.question__title {
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
  font-weight: 650;
  line-height: 1.2;
}

.question > p:not(.question__topic) {
  max-width: 52ch;
  color: var(--muted);
}

.question__link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.45rem;
  min-height: 2.75rem;
  color: var(--aubergine);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--apricot-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.question__link:hover {
  color: var(--plum);
}

.question__link .i {
  transition: transform 0.2s var(--ease);
}

.question__link:hover .i {
  transform: translateX(3px);
}


/* 10. About
   ========================================================================= */

.about__grid {
  display: grid;
  gap: 2.5rem;
}

.about__lede {
  max-width: 30ch;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  font-weight: 500;
  line-height: 1.35;
}

.about__text > p:not(.about__lede) {
  max-width: 52ch;
  margin-top: 1.1rem;
}

.about__media :is(.ph, img) {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (min-width: 60rem) {
  .about__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
  }

  .about__media :is(.ph, img) {
    aspect-ratio: 4 / 5;
  }
}


/* 11. Start a conversation — the contact form (three fieldsets, posts to index.php)
   ========================================================================= */

.start__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 60rem) {
  .start__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
  }
}

.start__subtitle {
  margin-top: 2.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.start__next {
  max-width: 34rem;
  margin-top: 0.75rem;
}

.start__next li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.6rem;
  border-top: 1px solid var(--line);
}

.start__next li::before {
  content: "";
  position: absolute;
  top: 1.3rem;
  left: 0;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--apricot-strong);
}

.start__alt {
  margin-top: 1.75rem;
  color: var(--muted);
}

.start__alt a {
  font-weight: 650;
}

.start__form {
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  background: var(--cream);
}

.steps-form {
  container-type: inline-size;
}

.step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.step + .step {
  margin-top: 2.5rem;
}

.step__legend {
  float: none;
  width: 100%;
  margin-bottom: 1.25rem;
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem);
  font-weight: 650;
  line-height: 1.2;
}

.topics {
  display: grid;
  gap: 0.6rem;
}

@container (min-width: 28rem) {
  .topics {
    grid-template-columns: 1fr 1fr;
  }
}

.topic {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.topic input {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  appearance: none;
}

.topic input::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--aubergine);
  transform: scale(0);
  transition: transform 0.15s var(--ease);
}

.topic input:checked {
  border-color: var(--aubergine);
}

.topic input:checked::before {
  transform: scale(1);
}

.topic input:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 2px;
}

.topic input:user-invalid {
  border-color: var(--error);
}

.topic:hover {
  border-color: var(--aubergine);
}

.topic:has(input:checked) {
  border-color: var(--aubergine);
  background: var(--apricot-soft);
  box-shadow: inset 0 0 0 1px var(--aubergine);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field + .field {
  margin-top: 1.25rem;
}

.field label {
  font-size: 0.9375rem;
  font-weight: 650;
}

.field__opt {
  color: var(--muted);
  font-weight: 500;
}

.field__hint {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.field :is(input, select, textarea) {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background-color: var(--white);
  color: var(--aubergine);
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  min-height: 8rem;
  line-height: 1.5;
  resize: vertical;
}

.field select {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b1830' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 0.95rem center;
  background-repeat: no-repeat;
  background-size: 1rem;
  appearance: none;
  cursor: pointer;
}

.field :is(input, select, textarea):hover {
  border-color: var(--aubergine);
}

.field :is(input, select, textarea):focus-visible {
  border-color: var(--plum);
  outline: none;
  box-shadow: 0 0 0 3px rgb(109 59 108 / 0.35);
}

/* native validation, shown only after the visitor has interacted with the field */
.field :user-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
}

.steps-form__notice {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.steps-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.steps-form__actions .btn {
  margin-left: auto;
}


/* 12. Footer
   ========================================================================= */

.site-footer {
  background: var(--aubergine);
  color: var(--cream);
}

.site-footer a:not(.btn),
.footer__button {
  color: var(--cream);
}

.site-footer :focus-visible {
  outline-color: var(--apricot-strong);
}

.footer__top {
  display: grid;
  gap: 2rem;
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}

@media (min-width: 52rem) {
  .footer__top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

.logo--footer {
  display: inline-block;
  color: var(--cream);
  font-size: 2rem;
}

.footer__brand p {
  margin-top: 0.5rem;
  color: var(--lilac);
}

.footer__nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 3rem;
}

/* two columns once the e-mail address fits beside the page links */
@media (min-width: 30rem) {
  .footer__nav {
    grid-template-columns: repeat(2, minmax(0, max-content));
  }
}

.footer__nav a,
.footer__button {
  display: inline-block;
  padding-block: 0.45rem;
  font-size: 0.9375rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer__button {
  padding-inline: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.footer__nav a:hover,
.footer__button:hover {
  text-decoration: underline;
  text-decoration-color: var(--apricot-strong);
  text-decoration-thickness: 2px;
}

.footer__legal {
  display: grid;
  gap: 0.8rem;
  padding-block: 2rem 2.75rem;
  color: var(--lilac);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.footer__legal p {
  max-width: 95ch;
}

.footer__legal strong {
  color: var(--cream);
}

.footer__legal .footer__button {
  padding-block: 0;
  font-size: inherit;
  text-decoration: underline;
}

/* values the practice still has to provide */
.todo {
  padding: 0 0.3em;
  border: 1px dashed currentColor;
  border-radius: 4px;
}


/* 13. Cookie banner — non-modal, both choices equally easy
   ========================================================================= */

.cookie-banner {
  position: fixed;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 50;
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid var(--aubergine);
  border-radius: 16px;
  background: var(--white);
  color: var(--aubergine);
  box-shadow: 0 24px 50px -24px rgb(43 24 48 / 0.55);
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 40rem) {
  .cookie-banner {
    right: auto;
    bottom: 1.25rem;
    left: 1.25rem;
    max-width: 27rem;
  }
}

.cookie-banner__title {
  font-size: 1.15rem;
}

.cookie-banner__text {
  font-size: 0.9375rem;
  line-height: 1.55;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner__actions .btn {
  flex: 1 1 8rem;
}


/* 14. Privacy page
   ========================================================================= */

.legal {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(4rem, 3rem + 4vw, 7rem);
  background: var(--cream);
}

.legal__inner {
  max-width: 46rem;
}

.legal h1 {
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.75rem);
}

.legal__updated {
  margin-top: 0.75rem;
  color: var(--muted);
}

.legal h2 {
  margin-top: 2.75rem;
  font-size: 1.5rem;
  line-height: 1.2;
  scroll-margin-top: 2rem;
}

.legal p,
.legal ul {
  margin-top: 0.9rem;
}

.legal ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.legal li + li {
  margin-top: 0.35rem;
}

.legal .todo {
  border-color: var(--plum);
  background: var(--apricot-soft);
}


/* 15. Image placeholders — swap each .ph for the final <img> (see IMAGE_PROMPTS.md)
   ========================================================================= */

:is(.hero__media, .help__media, .about__media) img {
  background: var(--apricot-soft);
}

.ph {
  container-type: inline-size;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.3rem;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 1rem;
  border: 1px solid #e4c2a8;
  background: var(--apricot-soft);
  color: var(--aubergine);
  text-align: center;
}

.ph--dark {
  border: 0;
  background: var(--aubergine-2);
  color: var(--cream);
}

.ph__label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ph__id {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 9cqi, 3.2rem);
  font-weight: 800;
  line-height: 1;
}

.ph__role {
  max-width: 34ch;
  font-weight: 650;
}

.ph__meta {
  max-width: 40ch;
  color: var(--muted);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.ph--dark :is(.ph__label, .ph__meta) {
  color: var(--lilac);
}


/* 16. Motion — the cookie banner rises; buttons and links react on hover.
   Nothing animates on scroll.
   ========================================================================= */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* 17. Without JavaScript — no banner is needed,
   since nothing beyond necessary storage can run.
   ========================================================================= */

.no-js .cookie-banner,
.no-js [data-cookie-settings],
.no-js li:has(> [data-cookie-settings]) {
  display: none !important;
}


/* 18. Thank-you page (thank-you.html) — where index.php sends the visitor after the contact form.
   The confirmation is written on the same white sheet as the Statement of Advice.
   ========================================================================= */

.thanks {
  padding-block: clamp(3rem, 2rem + 5vw, 7rem) clamp(4rem, 3rem + 4vw, 7rem);
  background: var(--cream);
}

.thanks__panel {
  max-width: 44rem;
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 2px 0 var(--line), 0 40px 70px -50px rgb(43 24 48 / 0.5);
}

.thanks__title {
  max-width: 16ch;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.75rem);
}

.thanks__text {
  max-width: 44ch;
  margin-top: 1.25rem;
  font-size: 1.1875rem;
  line-height: 1.6;
}

.thanks__subtitle {
  margin-top: 2.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.thanks .start__next a {
  color: var(--aubergine);
  text-decoration-color: var(--apricot-strong);
  text-decoration-thickness: 2px;
}

.thanks .btn {
  margin-top: 2.25rem;
}
