/* ==========================================================================
   Emboldened Birth — site styles
   Plain CSS, no build step, no JavaScript. Follows the business card: warm
   ivory paper, copper and deep eucalyptus, Cormorant Garamond with Source
   Sans 3, thin brass rules, and original watercolour eucalyptus
   (tools/generate-botanicals.py). One deep green anchors each page: the top
   bar, the buttons, the phone contact bar and the footer.
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paper */
  --paper: #faf6ec;
  --paper-card: #fffdf8;
  --paper-oat: #f2ebdd;
  --paper-sage: #edf0e5;

  /* Ink and accents. Every text colour passes WCAG AA on every paper.
     Copper is for display sizes and for text on --paper or --paper-card;
     small copper text on the tinted papers uses --copper-deep. */
  --ink: #3a4235;
  --ink-soft: #535c4d;
  --copper: #9a5b33;
  --copper-deep: #7e4727;
  --eucalyptus: #52664d;

  /* The low note: top bar, buttons, phone contact bar, footer. Nowhere else. */
  --evergreen: #2e3b2e;
  --on-dark: #f5f0e3;
  --on-dark-soft: #c6cfbd;
  --brass-on-dark: #cfb386;
  --rule-on-dark: rgba(207, 179, 134, 0.3);

  /* Decorative only: never for text */
  --sage: #7c9175;
  --brass: #b08d57;
  --rule: rgba(176, 141, 87, 0.55);
  --rule-inner: rgba(176, 141, 87, 0.38);
  --rule-soft: rgba(58, 66, 53, 0.12);

  /* A whisper of paper grain */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .25 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");

  --serif: "Cormorant Garamond", Garamond, Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: max(clamp(1.25rem, 5vw, 3.5rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --section: clamp(4.5rem, 10vw, 9rem);
  --measure: 32em; /* a comfortable line: about 70 characters */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 5.25rem; /* height of the sticky header on wide screens */
  --bar-h: 3.5rem; /* height of the phone contact bar */
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep headings and focused links clear of the sticky header. */
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--grain), var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1.02rem + 0.18vw, 1.125rem);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 200ms var(--ease);
}

a:hover {
  color: var(--copper-deep);
}

strong {
  font-weight: 600;
}

::selection {
  background: #e8dcc6;
  color: var(--ink);
}

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

/* On the deep green the focus ring turns brass, so it stays visible. */
.announce :focus-visible,
.site-footer :focus-visible,
.contact-bar :focus-visible {
  outline-color: var(--brass-on-dark);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--evergreen);
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--on-dark);
}

/* Layout ------------------------------------------------------------------ */

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

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

.section--flush-top {
  padding-top: 0;
}

/* Tinted sections change the paper, with no rule between them. */
.section--oat {
  background: var(--grain), var(--paper-oat);
}

.section--sage {
  background: var(--grain), var(--paper-sage);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .lede {
  margin-inline: auto;
}

/* Typography -------------------------------------------------------------- */

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.85rem, 1.6rem + 5.2vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.014em;
}

h2 {
  font-size: clamp(2.05rem, 1.5rem + 2.3vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.008em;
}

h3 {
  font-size: clamp(1.45rem, 1.3rem + 0.55vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
}

h1 em,
h2 em,
h3 em {
  color: var(--copper);
  font-style: italic;
}

/* The space under a heading. (This has to out-rank `p { margin }` above.) */
h2 + p {
  margin-top: 1.35rem;
}

.lede {
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: clamp(1.15rem, 1.07rem + 0.36vw, 1.3125rem);
  line-height: 1.62;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--eucalyptus);
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
}

.small {
  font-size: 0.9375rem;
  line-height: 1.65;
}

.muted {
  color: var(--ink-soft);
}

/* A quiet link with an arrow: the second-choice action beside a button. */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-height: 2.75rem;
  background: linear-gradient(currentColor, currentColor) 0 calc(50% + 0.95em) / 100% 1px no-repeat;
  color: var(--copper-deep);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.link::after {
  content: "\2192";
  font-size: 1.15em;
  letter-spacing: 0;
  transition: transform 260ms var(--ease);
}

.link:hover::after {
  transform: translateX(0.3em);
}

/* Top bar ------------------------------------------------------------------- */

.announce {
  background: var(--evergreen);
  color: var(--on-dark-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.announce p {
  margin: 0;
  padding-inline: var(--gutter);
}

/* The link fills the bar's height, so it is easy to tap. */
.announce a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--on-dark);
  text-decoration: none;
}

.announce a:hover {
  color: var(--brass-on-dark);
}

.announce .dot {
  margin-inline: 0.9em;
  color: var(--brass-on-dark);
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  min-height: var(--header-h);
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  line-height: 1;
  text-decoration: none;
}

/* The logo's arch mark, as tall as the two lines of the wordmark beside it. The arch's
   legs sit 10.3% of its height inside the drawing, so it is pulled left by that much to line
   up with the page's left edge. */
.brand-mark {
  --mark-h: clamp(3.1rem, 2.75rem + 1vw, 3.55rem);
  flex: none;
  width: auto;
  height: var(--mark-h);
  margin-left: calc(var(--mark-h) * -0.103);
}

/* Name over byline, left-aligned beside the mark as in the horizontal logo. */
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  text-align: left;
}

.brand-name {
  color: var(--copper);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.45rem + 0.9vw, 2.05rem);
  font-weight: 500;
  letter-spacing: 0.012em;
}

.brand-by {
  color: var(--eucalyptus);
  font-family: var(--serif);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  font-weight: 500;
}

.brand:hover .brand-name {
  color: var(--copper-deep);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1.25rem, 2.4vw, 2.25rem);
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink-soft);
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
}

/* The copper underline draws itself in from the left. */
.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.45rem;
  left: 0;
  height: 1px;
  background: var(--copper);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Buttons ----------------------------------------------------------------- */

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.375rem;
  padding: 1rem 2rem;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 260ms var(--ease), color 260ms var(--ease);
}

.btn--primary {
  background: var(--evergreen);
  color: var(--on-dark);
}

.btn--primary:hover {
  background: var(--copper-deep);
  color: var(--on-dark);
}

.btn--small {
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.75rem;
}

/* Home hero ----------------------------------------------------------------- */

.hero {
  padding-block: clamp(2.75rem, 6vw, 5.5rem) clamp(4rem, 8vw, 7rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.hero .lede {
  margin-top: 1.75rem;
}

.hero__area {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.5rem;
  color: var(--ink-soft);
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__area::before {
  flex: none;
  width: 2.5rem;
  border-top: 1px solid var(--rule);
  content: "";
}

/* The arch: holds the botanical print now, Tessa's photo later --------------- */

.portrait {
  width: min(100%, 27rem);
  margin: 0 0 0 auto;
}

.portrait__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 999px 999px 0 0;
  background: var(--grain), var(--paper-oat);
}

/* A brass keyline just inside the edge. */
.portrait__frame::after {
  position: absolute;
  inset: 0.7rem;
  border: 1px solid var(--rule);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.portrait__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The placeholder print sits inside the arch with room around it.
   A photo has no class and fills the arch edge to edge. */
.portrait__frame img.portrait__print {
  padding: 13% 9% 5%;
  object-fit: contain;
  object-position: center bottom;
}

/* Interior page hero ---------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
}

.page-hero__art {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(9rem, 34vw, 29rem);
  pointer-events: none;
}

/* The text column stops short of the eucalyptus. */
.page-hero__inner {
  position: relative;
  max-width: min(44rem, 62%);
}

.page-hero h1 {
  font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.6rem);
  line-height: 1.02;
}

.page-hero .lede {
  margin-top: 1.5rem;
}

/* Home: what a doula does ----------------------------------------------------- */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.supports {
  margin: 0;
  padding: 0;
  list-style: none;
}

.supports li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0 1rem;
  padding-block: 1.9rem;
  border-top: 1px solid var(--rule);
}

.supports li:last-child {
  border-bottom: 1px solid var(--rule);
}

.supports__n {
  padding-top: 0.2rem;
  color: var(--copper);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.2;
}

.supports h3 {
  margin-bottom: 0.5rem;
}

.supports p {
  max-width: 30em;
  color: var(--ink-soft);
}

/* Research figures ---------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat {
  padding: 0.5rem clamp(1rem, 3vw, 2.5rem);
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--rule);
}

.stat__figure {
  margin-bottom: 0.75rem;
  color: var(--copper);
  font-family: var(--serif);
  font-size: clamp(3.25rem, 2.4rem + 3.2vw, 4.75rem);
  font-variant-numeric: lining-nums;
  font-weight: 300;
  line-height: 1;
}

.stat__unit {
  margin-left: 0.14em;
  font-size: 0.45em;
  font-style: italic;
  font-weight: 400;
}

.stat__label {
  max-width: 14em;
  margin-inline: auto;
  color: var(--ink);
  line-height: 1.5;
}

.source {
  max-width: 32em;
  margin: clamp(2.25rem, 4vw, 3.25rem) auto 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.65;
  text-align: center;
}

.source a {
  color: var(--copper-deep);
}

/* Meet Tessa -------------------------------------------------------------------- */

.meet {
  overflow: clip;
}

/* Eucalyptus grows in from the bottom-left corner of the section. */
.meet__art {
  position: absolute;
  bottom: 0;
  left: 0;
  width: clamp(11rem, 36vw, 34rem);
  pointer-events: none;
}

.meet__body {
  position: relative;
  max-width: 36rem;
  margin-left: auto;
}

.meet__body .lede {
  margin-bottom: 1.25rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.85rem);
  font-style: italic;
  line-height: 1.35;
}

.meet__body .link {
  margin-top: 0.75rem;
}

/* Package and price panel -------------------------------------------------------- */

.package {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: start;
}

/* On the Services page the price stays in view beside the long list. */
.package--sticky .price-card {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.checklist {
  margin: 2rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 1rem 0 1rem 2.25rem;
  border-bottom: 1px solid var(--rule-soft);
}

.checklist li:first-child {
  border-top: 1px solid var(--rule-soft);
}

.checklist li::before {
  /* a small eucalyptus leaf */
  position: absolute;
  top: calc(1rem + 0.5em);
  left: 0.15rem;
  width: 0.95rem;
  height: 0.5rem;
  border-radius: 0 100% 0 100%;
  background: var(--sage);
  content: "";
  transform: rotate(-28deg);
}

.checklist strong {
  color: var(--ink);
}

.checklist--detailed li {
  max-width: calc(var(--measure) + 2.25rem);
  color: var(--ink-soft);
}

.price-card {
  padding: clamp(1.75rem, 3.2vw, 2.75rem);
  border: 1px solid var(--rule);
  background: var(--paper-card);
  text-align: center;
}

.price-card__label {
  margin-bottom: 0.9rem;
  color: var(--eucalyptus);
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.price-card__price {
  margin-bottom: 0.35rem;
  color: var(--copper);
  font-family: var(--serif);
  font-size: clamp(3.5rem, 2.9rem + 2.2vw, 4.5rem);
  font-variant-numeric: lining-nums;
  font-weight: 300;
  line-height: 1;
}

.price-card__name {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
}

.price-card__terms {
  color: var(--ink-soft);
  text-wrap: balance;
}

.price-card .btn {
  width: 100%;
  margin-top: 1.6rem;
  padding-inline: 1rem;
  letter-spacing: 0.14em;
}

.price-card__note {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-wrap: balance;
}

.note {
  max-width: var(--measure);
  margin-top: 1.75rem;
  padding: 0.25rem 0 0.25rem 1.4rem;
  border-left: 1px solid var(--sage);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.45;
}

/* Steps ------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps li {
  position: relative;
  padding-top: 4.25rem;
  counter-increment: step;
}

.steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--copper);
  content: counter(step);
  font-family: var(--serif);
  font-size: 3rem;
  font-variant-numeric: lining-nums;
  font-weight: 300;
  line-height: 1;
}

.steps li::after {
  position: absolute;
  top: 1.6rem;
  right: 0;
  left: 2.75rem;
  border-top: 1px solid var(--rule);
  content: "";
}

.steps h3 {
  margin-bottom: 0.5rem;
}

.steps p {
  color: var(--ink-soft);
}

/* Questions ----------------------------------------------------------------------- */

.faq {
  max-width: 50rem;
  margin-inline: auto;
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  position: relative;
  display: block;
  padding: 1.5rem 3.5rem 1.5rem 0;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.22rem + 0.5vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
  list-style: none;
  transition: color 200ms var(--ease);
}

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

.faq summary:hover {
  color: var(--copper-deep);
}

/* A drawn plus sign; the upright stroke lies down when the answer opens. */
.faq summary::before,
.faq summary::after {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  width: 1rem;
  height: 1px;
  background: var(--copper);
  content: "";
  transition: transform 320ms var(--ease);
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open] summary::after {
  transform: rotate(0deg);
}

.faq__answer {
  max-width: var(--measure);
  padding-bottom: 1.75rem;
  color: var(--ink-soft);
}

/* Resources: categories open like the FAQ; each listing inside is a name, a note, and contact lines. */

.resource + .resource {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-soft);
}

.resource__name {
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.resource__contact {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.resource__contact li + li {
  margin-top: 0.3rem;
}

.resources__note {
  max-width: 50rem;
  margin: 2rem auto 0;
}

/* Heading beside its text: service area, training ------------------------------------ */

.area {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 7vw, 7rem);
  align-items: start;
}

/* About ------------------------------------------------------------------------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: start;
}

.story .portrait {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  margin: 0;
}

.story__body h2 {
  margin-bottom: 1.75rem;
}

.story__body p {
  max-width: var(--measure);
}

/* The story opens a little larger, like the first lines of a letter. */
.story__body h2 + p {
  margin-top: 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 1.07rem + 0.36vw, 1.3125rem);
  line-height: 1.62;
}

.signoff {
  margin-top: 2rem;
  color: var(--copper);
  font-family: var(--serif);
  font-size: 1.75rem;
  font-style: italic;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.25rem, 4vw, 3.25rem) clamp(1.75rem, 4vw, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.principles h3 {
  margin-bottom: 0.5rem;
}

.principles p {
  color: var(--ink-soft);
}

/* An open, ruled list rather than a box. */
.facts {
  margin: 0;
}

.facts > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0 1.25rem;
  padding-block: 1.05rem;
  border-top: 1px solid var(--rule);
}

.facts > div:last-child {
  border-bottom: 1px solid var(--rule);
}

.facts dt {
  padding-top: 0.3rem;
  color: var(--eucalyptus);
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  color: var(--ink);
}

/* Contact ----------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: start;
}

.contact-methods {
  margin: 2.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.contact-methods li {
  border-bottom: 1px solid var(--rule);
}

/* Each way to reach Tessa is one large link. The action sits to the right
   when there is room and drops underneath when there is not. */
.contact-method {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  min-height: 5.5rem;
  padding-block: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}

.contact-method__text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.contact-method__label {
  color: var(--eucalyptus);
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.contact-method__value {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.1rem + 1.5vw, 1.95rem);
  font-variant-numeric: lining-nums;
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.contact-method__go {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: var(--copper-deep);
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.contact-method__go::after {
  content: "\2192";
  font-size: 1.2em;
  letter-spacing: 0;
  transition: transform 260ms var(--ease);
}

a.contact-method:hover {
  color: var(--copper-deep);
}

a.contact-method:hover .contact-method__go::after {
  transform: translateX(0.3em);
}

.contact-method--plain {
  min-height: 0;
  padding-block: 1.4rem;
}

.contact-method--plain .contact-method__value {
  font-family: var(--sans);
  font-size: inherit;
  font-weight: 400;
  line-height: 1.7;
}

.letter {
  padding: clamp(2rem, 4vw, 2.75rem);
  border: 1px solid var(--rule);
  background: var(--paper-card);
}

.letter h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
}

.letter p {
  margin-top: 0;
  color: var(--ink-soft);
  text-wrap: wrap;
}

.letter .btn {
  width: 100%;
  margin-block: 0.75rem 1.5rem;
}

/* Closing card: the one framed moment, echoing the business card -------------------- */

.cta {
  overflow: clip;
  padding-block: var(--section);
  background: var(--grain), var(--paper-oat);
}

.cta__card {
  --art: 10.5rem; /* width of the top-right eucalyptus; it is about as tall */
  --art-bl: 14.5rem; /* width of the bottom-left eucalyptus; 0.61 times as tall */
  position: relative;
  overflow: hidden;
  max-width: 58rem;
  margin-inline: auto;
  padding: clamp(4rem, 9vw, 6.5rem) clamp(1.5rem, 9vw, 7.5rem);
  background: var(--paper-card);
  box-shadow: 0 30px 60px -45px rgba(58, 66, 53, 0.5);
  text-align: center;
}

/* The business card's open frame: two brass corners on the corners the
   eucalyptus leaves free (top left, bottom right) instead of a full rule.
   Same proportions as the card: set in from the edges by 6.2% of the card's
   width (percentage margins are measured from the width, even top and
   bottom), each arm 23% of the card's width or height. */
.cta__card::before,
.cta__card::after {
  --corner-inset: clamp(1.25rem, 6.2%, 3.5rem);
  position: absolute;
  width: clamp(4.5rem, 23%, 14rem);
  height: clamp(3rem, 23%, 8.5rem);
  border: 0 solid var(--rule);
  content: "";
  pointer-events: none;
}

.cta__card::before {
  top: 0;
  left: 0;
  margin: var(--corner-inset) 0 0 var(--corner-inset);
  border-top-width: 1px;
  border-left-width: 1px;
}

.cta__card::after {
  right: 0;
  bottom: 0;
  margin: 0 var(--corner-inset) var(--corner-inset) 0;
  border-right-width: 1px;
  border-bottom-width: 1px;
}

.cta__art {
  position: absolute;
  pointer-events: none;
}

/* Like the business card: eucalyptus bleeds off two opposite corners. */
.cta__art--tr {
  top: 0;
  right: 0;
  width: var(--art);
}

.cta__art--bl {
  bottom: 0;
  left: 0;
  width: min(var(--art-bl), 22%);
}

.cta__card > :not(.cta__art) {
  position: relative;
}

/* On wide screens the heading stays narrow enough to pass beside the
   top-right eucalyptus, whatever it says. (Narrow screens: see below.) */
.cta__card h2 {
  max-width: 10em;
  margin-inline: auto;
}

.cta__card .lede {
  margin: 1.35rem auto 0;
}

.cta__card .button-row {
  justify-content: center;
}

.cta__direct {
  margin-top: 1.5rem;
  color: var(--ink-soft);
}

.cta__direct a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.35rem);
  font-variant-numeric: lining-nums;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.cta__direct a:hover {
  color: var(--copper);
}

.dot {
  margin-inline: 0.7rem;
  color: var(--brass);
}

/* Prose pages ------------------------------------------------------------------- */

.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: 1.1rem;
}

.prose h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.75rem, 1.45rem + 1.2vw, 2.3rem);
}

.prose h2:first-child {
  margin-top: 0;
}

/* 404 ----------------------------------------------------------------------------- */

.not-found {
  display: grid;
  min-height: 55vh;
  place-items: center;
  padding-block: clamp(3.5rem, 8vw, 7rem);
  text-align: center;
}

.not-found__inner {
  max-width: 40rem;
}

.not-found__art {
  width: clamp(9rem, 22vw, 12rem);
  margin: 0 auto 1.75rem;
}

.not-found h1 {
  font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.6rem);
}

.not-found .lede {
  margin: 1.35rem auto 0;
}

.not-found .button-row {
  justify-content: center;
}

/* Footer -------------------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
  background: var(--evergreen);
  color: var(--on-dark-soft);
}

.site-footer a {
  color: var(--on-dark-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--on-dark);
  text-decoration: underline;
  text-decoration-color: var(--brass-on-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule-on-dark);
}

/* The logo's mark in its deep green colours, above the wordmark, its arch lined up with the "E". */
.footer-mark {
  --mark-h: 4.25rem;
  width: auto;
  height: var(--mark-h);
  margin: 0 0 1.1rem calc(var(--mark-h) * -0.103);
}

.footer-brand {
  margin-bottom: 0.3rem;
  color: var(--on-dark);
  font-family: var(--serif);
  font-size: clamp(2rem, 1.7rem + 1.2vw, 2.6rem);
  line-height: 1.05;
}

.footer-by {
  color: var(--brass-on-dark);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.footer-tagline {
  margin-top: 1.5rem;
  color: var(--on-dark);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.4;
}

.footer-description {
  max-width: 30em;
  margin-top: 0.9rem;
}

.footer-heading {
  margin-bottom: 0.9rem;
  color: var(--brass-on-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  font-size: 0.9375rem;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: underline;
  text-decoration-color: var(--rule-on-dark);
}

/* Contact bar: phones and tablets only ------------------------------------------------ */

.contact-bar {
  display: none;
}

/* Motion: CSS only, and only for people who have not asked for less ------------------- */

@media screen and (prefers-reduced-motion: no-preference) {
  /* Pages cross-fade into one another instead of flashing. */
  @view-transition {
    navigation: auto;
  }

  /* Blocks marked .reveal rise a little as they scroll into view. Browsers
     without scroll-driven animation simply show them. */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 25%;
    }

    @keyframes rise {
      from {
        opacity: 0;
        transform: translateY(1rem);
      }
    }
  }

  /* FAQ answers open and close smoothly where the browser can do it. */
  @supports (interpolate-size: allow-keywords) {
    .faq details {
      interpolate-size: allow-keywords;
    }

    .faq details::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 420ms var(--ease), content-visibility 420ms allow-discrete;
    }

    .faq details[open]::details-content {
      block-size: auto;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Wide screens: the header stays within reach ------------------------------------------ */

@media (min-width: 1080px) {
  .site-header {
    position: sticky;
    top: 0;
    background: rgba(250, 246, 236, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

/* Tablets and phones: stacked header, contact bar at the thumb ------------------------- */

@media (max-width: 1079px) {
  :root {
    --header-h: 0rem; /* the header is not sticky here */
  }

  .header-inner,
  .header-nav {
    flex-direction: column;
    gap: 0.35rem;
  }

  .header-inner {
    padding-block: 1.1rem 0.4rem;
    text-align: center;
  }

  .brand {
    align-items: center;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    justify-content: center;
  }

  .contact-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--rule-on-dark);
    background: var(--evergreen);
  }

  .contact-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: var(--bar-h);
    color: var(--on-dark);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-decoration: none;
    text-transform: uppercase;
  }

  .contact-bar a + a {
    border-left: 1px solid var(--rule-on-dark);
  }

  .contact-bar svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: var(--brass-on-dark);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
  }

  /* Focused links scroll clear of the bar, and on pages that have the bar
     the footer grows so the bar never covers its last line. */
  html {
    scroll-padding-bottom: calc(var(--bar-h) + 1rem);
  }

  .has-contact-bar .site-footer {
    padding-bottom: calc(2rem + var(--bar-h) + env(safe-area-inset-bottom, 0px));
  }
}

/* The contact bar waits until the page's first button has scrolled away.
   Browsers without scroll-driven animation show the bar from the start. */
@media screen and (max-width: 1079px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .contact-bar {
      animation: bar-in linear both;
      animation-timeline: scroll(root block);
      animation-range: 14rem 24rem;
    }

    @keyframes bar-in {
      from {
        transform: translateY(100%);
        visibility: hidden;
      }
    }
  }
}

/* Below 1024px the Meet eucalyptus moves under the text. */
@media (max-width: 1023px) {
  .meet {
    padding-bottom: clamp(11rem, 44vw, 17rem);
  }

  .meet__body {
    margin-left: 0;
  }
}

/* One column ------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero__grid,
  .intro,
  .package,
  .story,
  .area,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .package--sticky .price-card,
  .story .portrait {
    position: static;
  }

  .portrait,
  .story .portrait {
    width: min(100%, 22rem);
    margin-inline: auto;
  }

  .principles,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  /* The closing card's text sits between the two corner paintings: it
     starts below the top-right one and ends above the bottom-left one. */
  .cta__card {
    --art: clamp(7rem, 16vw, 9rem);
    --art-bl: clamp(7.5rem, 22vw, 11rem);
    padding-top: calc(var(--art) + 1rem);
    padding-bottom: calc(var(--art-bl) * 0.62 + 1rem);
  }

  /* The text runs nearly edge to edge here, so the corners keep to the
     space above and below it: each upright arm stops 1rem short of the text. */
  .cta__card::before,
  .cta__card::after {
    --corner-inset: 1.25rem;
    height: calc(min(var(--art), var(--art-bl) * 0.62) - 1.25rem);
  }

  .cta__art--bl {
    width: var(--art-bl);
  }

  .cta__card h2 {
    max-width: none;
  }
}

/* Phones ------------------------------------------------------------------------------ */

@media (max-width: 640px) {
  .announce {
    letter-spacing: 0.16em;
  }

  .announce__more {
    display: none;
  }

  .site-nav {
    gap: 0 0.85rem;
  }

  .site-nav a {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }

  .hero__area {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    letter-spacing: 0.16em;
  }

  /* The heading starts below the eucalyptus and may use the full width. */
  .page-hero {
    padding-top: 7.5rem;
  }

  .page-hero__art {
    width: 9rem;
  }

  .page-hero__inner {
    max-width: none;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .button-row .link {
    align-self: center;
  }

  .btn {
    padding-inline: 1.25rem;
    letter-spacing: 0.14em;
  }

  .supports li {
    grid-template-columns: 2.25rem minmax(0, 1fr);
  }

  .stats,
  .principles,
  .steps,
  .steps--three {
    grid-template-columns: 1fr;
  }

  .stat {
    padding-block: 1.75rem;
  }

  .stat + .stat {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .facts > div {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > :first-child {
    grid-column: auto;
  }

  .cta__card {
    padding-inline: 1.25rem;
  }

  .price-card {
    padding-inline: 1.25rem;
  }

  .cta__direct a {
    display: flex;
    justify-content: center;
  }

  .cta__direct .dot {
    display: none;
  }
}

/* The narrowest phones: keep button labels on one line. */
@media (max-width: 360px) {
  .btn,
  .price-card .btn {
    padding-inline: 0.75rem;
    letter-spacing: 0.1em;
  }
}

/* Print --------------------------------------------------------------------------- */

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .announce,
  .site-nav,
  .header-cta,
  .contact-bar,
  .button-row,
  .btn,
  .page-hero__art,
  .meet__art,
  .cta__art,
  .portrait,
  .not-found__art,
  .footer-mark,
  .footer-grid nav {
    display: none;
  }

  .site-header {
    position: static;
    background: none;
  }

  .section,
  .section--oat,
  .section--sage,
  .cta,
  .site-footer {
    padding-block: 1.5rem;
    background: none;
  }

  .cta__card {
    padding-block: 2rem;
    box-shadow: none;
  }

  /* Paper keeps the corners close to the edge, clear of the shorter padding. */
  .cta__card::before,
  .cta__card::after {
    --corner-inset: 0.6rem;
  }

  a,
  .site-footer,
  .site-footer a,
  .footer-brand,
  .footer-by,
  .footer-tagline,
  .footer-heading {
    color: #000;
  }
}
