/* ==========================================================================
   Edelstein Group — site styles
   Plain CSS, no build step. Tokens first, then base, layout, components,
   page sections, utilities. Edit the tokens to change the look site-wide.
   ========================================================================== */

:root {
  /* Colour */
  --ink: #12201d;
  --emerald-900: #0b3d33;
  --emerald-700: #145c4c;
  --emerald-100: #dce8e3;
  --paper: #f7f4ee;
  --stone: #eee9df;
  --white: #fffdf9;
  --muted: #4a5a55;
  --line: #d8d1c4;
  --accent: #c8902e;
  --accent-light: #e2b567;
  --accent-text: #8a5f14; /* accent for text on light backgrounds (AA) */
  --on-dark: #f3efe6;
  --on-dark-muted: #b9c9c3;

  /* Type */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, "Bitstream Charter", Georgia, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.45rem + 1.6vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.8vw, 3.75rem);

  /* Space & shape */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section: clamp(4rem, 2.5rem + 6vw, 8rem);
  --max: 72rem;
  --narrow: 44rem;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

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

ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
}

li + li {
  margin-top: 0.35em;
}

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

a:hover {
  color: var(--emerald-900);
  text-decoration-thickness: 2px;
}

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

.band--dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--accent-light);
}

strong {
  font-weight: 600;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(var(--narrow) + 2 * var(--gutter));
}

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

.section--tight {
  padding-block: calc(var(--section) * 0.6);
}

.band--stone {
  background: var(--stone);
}

.band--dark {
  background: var(--emerald-900);
  color: var(--on-dark);
}

.band--dark a {
  color: var(--on-dark);
}

.grid {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
}

@media (min-width: 48rem) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  background: var(--emerald-900);
  color: var(--white);
  padding: 0.75rem 1rem;
  font-weight: 600;
}

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

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.94);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(247, 244, 238, 0.82);
    backdrop-filter: blur(8px);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.brand__name span {
  color: var(--muted);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}

.nav-toggle__icon {
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__icon::before { top: -5px; }
.nav-toggle__icon::after { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  transform: translateY(-5px) rotate(-45deg);
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem var(--gutter) 1.5rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

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

.site-nav .nav-cta {
  margin-top: 1.25rem;
  border-bottom: 0;
}

.site-nav .nav-cta a {
  border: 0;
}

/* The toggle ships hidden and main.js reveals it. Without JS the mobile
   menu stays closed and the full navigation remains in the footer. */
.nav-toggle[hidden] { display: none; }

@media (min-width: 60rem) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    display: block;
    position: static;
    background: none;
    border: 0;
    padding: 0;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .site-nav a {
    padding: 0.4rem 0;
    border: 0;
    font-size: 0.95rem;
  }

  .site-nav a:not(.button):hover,
  .site-nav a[aria-current="page"]:not(.button) {
    box-shadow: inset 0 -1px 0 currentColor;
  }

  .site-nav .nav-cta {
    margin: 0 0 0 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--emerald-900);
  border-radius: var(--radius);
  background: var(--emerald-900);
  color: var(--white);
  font: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.button:hover {
  background: var(--emerald-700);
  border-color: var(--emerald-700);
  color: var(--white);
  text-decoration: none;
}

.site-nav a.button {
  display: inline-flex;
  padding: 0.6rem 1.1rem;
  min-height: 2.75rem;
  color: var(--white);
}

.button--ghost {
  background: transparent;
  color: var(--emerald-900);
}

.button--ghost:hover {
  background: var(--emerald-900);
  color: var(--white);
}

.band--dark .button {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--emerald-900);
}

.band--dark .button:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--emerald-900);
}

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

.button:hover .button__arrow {
  transform: translateX(3px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 currentColor;
}

.text-link:hover {
  box-shadow: inset 0 -2px 0 currentColor;
}

/* --------------------------------------------------------------------------
   Type helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  color: var(--emerald-700);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
}

.band--dark .eyebrow {
  color: var(--accent-light);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--muted);
  max-width: 40rem;
}

.band--dark .lede {
  color: var(--on-dark-muted);
}

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

/* Heading size helpers, for when the outline and the visual size differ. */
.h3 { font-size: var(--step-2); }
.h4 { font-size: var(--step-1); }

.small {
  font-size: var(--step--1);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.section-head p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 3rem + 7vw, 9rem) clamp(4rem, 3rem + 5vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 18ch;
}

.hero .lede {
  margin-bottom: 2.25rem;
}

.hero__gem {
  position: absolute;
  z-index: 0;
  right: -9rem;
  top: 50%;
  width: 34rem;
  height: auto;
  transform: translateY(-50%);
  color: var(--emerald-900);
  opacity: 0.09;
  pointer-events: none;
}

@media (min-width: 64rem) {
  .hero__gem {
    right: -2rem;
    width: 30rem;
    opacity: 0.16;
  }
}

.page-hero {
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 6.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: var(--step-4);
  max-width: 20ch;
}

.page-hero .lede {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Cards, lists, steps
   -------------------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--emerald-900);
}

.card h3 {
  font-size: var(--step-2);
}

.card__index {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--accent-text);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.card p {
  color: var(--muted);
}

.card .text-link {
  margin-top: auto;
  align-self: flex-start;
}

.facet-list {
  list-style: none;
  padding: 0;
}

.facet-list li {
  position: relative;
  padding-left: 1.6rem;
}

.facet-list li + li {
  margin-top: 0.6rem;
}

.facet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 0.6rem;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 40%, 50% 100%, 0 40%);
}

.audience {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--line);
}

@media (min-width: 48rem) {
  .audience {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 1rem + 3vw, 4rem);
  }
}

.audience li {
  margin: 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.audience h3 {
  font-size: var(--step-1);
  margin-bottom: 0.35rem;
}

.audience p {
  margin: 0;
  color: var(--muted);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.steps > li {
  counter-increment: step;
  margin: 0;
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-top: 1px solid rgba(243, 239, 230, 0.25);
}

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 1rem;
  color: var(--accent-light);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.steps h3 {
  font-size: var(--step-1);
  margin-bottom: 0.5rem;
}

.steps p {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 0.975rem;
}

.steps--light > li {
  border-top-color: var(--line);
}

.steps--light > li::before {
  color: var(--accent-text);
}

.steps--light p {
  color: var(--muted);
}

.steps.steps--stacked {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 1.5rem;
}

.steps--stacked > li {
  padding: 1.25rem 0;
}

.steps--stacked > li::before {
  margin-bottom: 0.5rem;
}

.reasons {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 48rem) {
  .reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 1rem + 3vw, 4rem);
  }
}

.reasons > div {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.reasons h3 {
  font-size: var(--step-1);
  margin-bottom: 0.4rem;
}

.reasons p {
  margin: 0;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Gem statement
   -------------------------------------------------------------------------- */

.statement {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 48rem) {
  .statement {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3.5rem;
  }
}

.statement__mark {
  width: 5.5rem;
  height: auto;
  color: var(--emerald-900);
}

.statement blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--step-2);
  line-height: 1.35;
  max-width: 38rem;
}

.statement blockquote p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Founder note
   -------------------------------------------------------------------------- */

.founder {
  position: relative;
  padding: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  background: var(--white);
  border: 1px solid var(--line);
}

.founder__body {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  line-height: 1.6;
}

.founder__sig {
  margin: 1.5rem 0 0;
  font-size: var(--step--1);
  color: var(--muted);
}

.founder__sig strong {
  display: block;
  color: var(--ink);
  font-size: var(--step-0);
}

/* --------------------------------------------------------------------------
   Service detail (services page)
   -------------------------------------------------------------------------- */

.service {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 5rem;
}

.service:last-of-type {
  border-bottom: 0;
}

.service__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 56rem) {
  .service__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 4rem;
  }
}

.service h2 {
  font-size: var(--step-3);
}

.service h3 {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald-700);
  margin: 2rem 0 0.75rem;
}

.service h3:first-child {
  margin-top: 0;
}

.callout {
  padding: 1.5rem 1.75rem;
  background: var(--stone);
  border-left: 2px solid var(--accent);
}

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

.callout h3 {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   Prose (privacy, long text)
   -------------------------------------------------------------------------- */

.prose h2 {
  font-size: var(--step-2);
  margin-top: 2.75rem;
}

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

.prose h3 {
  font-size: var(--step-1);
  margin-top: 2rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.75rem 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.prose th {
  font-weight: 600;
  width: 32%;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  border-top: 1px solid var(--line);
}

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

.faq summary {
  position: relative;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-family: var(--font-serif);
  font-size: var(--step-1);
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--emerald-700);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details > div {
  padding: 0 0 1.25rem;
  color: var(--muted);
  max-width: 44rem;
}

.faq details > div p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Definition list (company details)
   -------------------------------------------------------------------------- */

.details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
}

.details > div {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 36rem) {
  .details > div {
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: 1rem;
  }
}

.details dt {
  font-weight: 600;
}

.details dd {
  margin: 0;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form {
  display: grid;
  gap: 1.4rem;
}

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

.field label,
.field legend {
  font-weight: 600;
  font-size: 0.95rem;
}

.field .hint {
  font-size: var(--step--1);
  color: var(--muted);
  margin: 0;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  background: var(--white);
  border: 1px solid #8f9a95;
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  scroll-margin-top: 7rem; /* keep focused fields clear of the sticky header */
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.3rem) 1.3rem, calc(100% - 0.95rem) 1.3rem;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--emerald-700);
  box-shadow: 0 0 0 3px rgba(20, 92, 76, 0.25);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: #a32d23;
}

.field-error {
  margin: 0;
  color: #a32d23;
  font-size: var(--step--1);
  font-weight: 600;
}

.field-error:empty {
  display: none;
}

.checkbox {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.checkbox input {
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
  margin: 0.2rem 0 0;
  accent-color: var(--emerald-900);
}

.checkbox label {
  font-weight: 400;
  font-size: 0.95rem;
}

.visually-hidden,
.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form-panel {
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--emerald-900);
}

.button[aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
}

.cta__inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.cta__gem {
  position: absolute;
  right: -6rem;
  bottom: -8rem;
  width: 26rem;
  height: auto;
  color: var(--accent-light);
  opacity: 0.14;
  pointer-events: none;
}

.cta h2 {
  color: var(--white);
}

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

.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 0.925rem;
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
}

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

.site-footer a:hover,
.site-footer p a {
  text-decoration: underline;
}

.site-footer .brand,
.site-footer .brand:hover {
  color: var(--on-dark);
  text-decoration: none;
}

.site-footer .brand__name span {
  color: var(--on-dark-muted);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  }
}

.footer-grid h2 {
  margin: 0 0 1rem;
  color: var(--on-dark);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li + li {
  margin-top: 0.5rem;
}

.footer-tagline {
  margin: 1.25rem 0 0;
  max-width: 22rem;
}

.footer-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(185, 201, 195, 0.2);
  display: grid;
  gap: 0.75rem;
  font-size: var(--step--1);
  line-height: 1.6;
}

.footer-legal p {
  margin: 0;
  max-width: 60rem;
}

/* --------------------------------------------------------------------------
   Simple centred pages (thank-you, 404)
   -------------------------------------------------------------------------- */

.centred {
  min-height: 60vh;
  display: grid;
  align-content: center;
  padding-block: var(--section);
}

.centred__mark {
  width: 3.5rem;
  height: auto;
  margin-bottom: 2rem;
  color: var(--emerald-900);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

@media print {
  .site-header,
  .site-footer .footer-grid,
  .hero__gem,
  .cta__gem,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
  }
}
