/* Colours and type follow the Our Session app (TherapyColors, TherapyTypography). */
:root {
  color-scheme: light dark;
  --canvas: #F6F3EE;
  --card: #FFFFFF;
  --hairline: #E8E2D6;
  --primary: #192A56;
  --fill: #192A56;
  --on-fill: #FCFBFB;
  --text: #000000;
  --text-2: #54545C;
  --accent: #F7D794;
  --serif: "New York", ui-serif, Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0E1324;
    --card: #171E36;
    --hairline: #2B3352;
    --primary: #ECE6DA;
    --fill: #F7D794;
    --on-fill: #141A30;
    --text: #F1ECE2;
    --text-2: #BDBFCC;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

header, main, footer {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.wordmark {
  font: 600 1.5rem/1.2 var(--serif);
  letter-spacing: -0.02em;
  color: var(--primary);
}

a { color: var(--primary); text-underline-offset: 0.2em; }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); color: var(--primary); letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 2.5rem); line-height: 1.15; max-width: 20em; }
h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.25; margin-bottom: 1rem; }
h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
p { margin: 0; max-width: 40rem; }
p + p { margin-top: 0.75rem; }

.hero { padding: 3.5rem 0 1.5rem; }
.lead { font-size: 1.125rem; color: var(--text-2); margin-top: 1.25rem; }

.overline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 0.5rem;
}

/* The app's champagne accent, as a short rule under the hero overline. */
.hero .overline::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 1rem 0 0.5rem;
  background: var(--accent);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.button {
  display: inline-block;
  padding: 0.6rem 1.25rem; /* with the 1.6 line height: a 44px touch target */
  border: 1px solid var(--fill);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.button.primary { background: var(--fill); color: var(--on-fill); }
.button:hover { text-decoration: underline; }

section { padding: 2.5rem 0; border-top: 1px solid var(--hairline); }

/* One grid for cards, facts and screens; --min is the narrowest a column may get. */
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min), 100%), 1fr));
  gap: 1rem;
}

.services { --min: 20rem; }
.services li {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  padding: 1.5rem;
}

.screens { --min: 12rem; gap: 2rem 1.5rem; margin-top: 2rem; }
figure { margin: 0; }
figure img {
  display: block;
  width: 100%;
  max-width: 17rem;
  height: auto;
  border: 1px solid var(--hairline);
  border-radius: 1.75rem;
  box-shadow: 0 0.75rem 2rem rgb(26 23 48 / 0.10);
}
figcaption { margin-top: 0.75rem; max-width: 17rem; font-size: 0.875rem; color: var(--text-2); }
figcaption strong { color: var(--text); }

.facts { --min: 12rem; margin-top: 1rem; font-size: 0.875rem; color: var(--text-2); }
.facts li { border-top: 3px solid var(--accent); padding-top: 0.75rem; }
.facts strong { display: block; font-size: 1rem; color: var(--text); }

.built { margin-top: 2.5rem; }

address { font-style: normal; }
address p + p { margin-top: 0.5rem; }

footer {
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  color: var(--text-2);
  font-size: 0.875rem;
}
