@font-face { font-family: "Fira Sans Condensed"; font-weight: 300; font-display: swap; src: url("fonts/fira-sans-condensed-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 400; font-display: swap; src: url("fonts/lexend-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 600; font-display: swap; src: url("fonts/lexend-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #3a393c;
  --muted: #66646a;
  --magenta: #f40c62;      /* logo colour: graphics and large type only */
  --magenta-text: #c1084d; /* darker for links and buttons (contrast) */
  --blush: #fdeef3;
  --rule: #f3cfdc;
  --display: "Fira Sans Condensed", "Arial Narrow", sans-serif;
  --body: "Lexend", "Verdana", sans-serif;
  --wrap: 68rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta-text); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--magenta-text); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.75rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1rem; max-width: 38em; }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.brand { display: flex; flex-direction: column; align-items: center; width: clamp(200px, 42vw, 400px); container-type: inline-size; text-decoration: none; color: var(--muted); }
.brand img { width: 100%; }
.brand .sub { font-family: var(--display); font-weight: 300; font-size: max(12px, 5.1cqi); line-height: 1; margin-top: 3.25cqi; color: #2d2c2f; }
.brand .owner { font-family: var(--display); font-weight: 300; font-size: max(11px, 4.5cqi); line-height: 1.2; margin-top: 0.4em; letter-spacing: 0.01em; }
.top .call { font-weight: 600; text-decoration: none; white-space: nowrap; }
.top .call:hover { text-decoration: underline; }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 2rem; padding-top: clamp(2rem, 6vw, 5rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lead { font-size: 1.3rem; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; }
.btn { display: inline-block; padding: 0.8rem 1.4rem; border: 2px solid var(--magenta-text); border-radius: 999px; font-weight: 600; text-decoration: none; }
.btn-fill { background: var(--magenta-text); color: #fff; }
.btn-fill:hover { background: #a30641; border-color: #a30641; }
.btn-line:hover { background: var(--blush); }
.handover { margin-top: 2.5rem; padding-left: 1rem; border-left: 3px solid var(--rule); color: var(--muted); font-size: 1rem; }

/* the hand-drawn O from the logo */
.ring { position: relative; aspect-ratio: 1120 / 960; width: min(100%, 30rem); justify-self: center; display: grid; place-items: center; text-align: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: var(--magenta); }
.ring .inner { position: relative; margin: 0; padding: 14% 16% 10%; }
.ring .inner span { display: block; font-family: var(--display); font-weight: 300; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.25; }
.ring .inner a { display: inline-block; margin-top: 0.75rem; font-family: var(--display); font-weight: 300; font-size: clamp(1.6rem, 3.4vw, 2.3rem); text-decoration: none; color: var(--ink); }
.ring .inner a:hover { color: var(--magenta-text); }

@media (prefers-reduced-motion: no-preference) {
  /* reveal the ring clockwise, like a pen drawing it */
  @property --sweep { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
  .hero .ring svg { --sweep: 0deg; -webkit-mask: conic-gradient(from -40deg, #000 var(--sweep), transparent 0); mask: conic-gradient(from -40deg, #000 var(--sweep), transparent 0); animation: draw 1.3s 0.3s cubic-bezier(.6,.1,.3,1) forwards; }
  @keyframes draw { to { --sweep: 360deg; } }
}

section { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.intro { color: var(--muted); margin-bottom: 2.5rem; }

/* treatment areas */
.areas { margin: 0; }
.area { display: grid; grid-template-columns: 16rem 1fr; gap: 1rem 2.5rem; padding: 1.75rem 0; border-top: 1px solid var(--rule); }
.area:last-child { border-bottom: 1px solid var(--rule); }
.area dt { font-family: var(--display); font-weight: 300; font-size: 1.6rem; line-height: 1.2; }
.area dd { margin: 0; max-width: 38em; }

/* location */
.find { background: var(--blush); }
.find-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.map { margin: 0; }
.map .frame { position: relative; border-radius: 6px; overflow: hidden; background: #eee; }
.map .pin { position: absolute; left: 50%; top: 50%; width: 10%; aspect-ratio: 1120 / 960; transform: translate(-50%, -52%); fill: var(--magenta); }
.map figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.map figcaption a { color: inherit; }
.facts { margin: 0; }
.facts div { padding: 0 0 1.25rem; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
.routes { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.5rem; }

/* team */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 2.5rem 2rem; }
.team li { display: grid; grid-template-columns: 2.6rem 1fr; align-items: start; gap: 1rem; }
.mono { position: relative; width: 2.6rem; aspect-ratio: 1120 / 960; margin-top: 0.1rem; }
.mono svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: var(--magenta); }
.team .name { font-weight: 600; display: block; }
.team .role { display: block; color: var(--muted); font-size: 1rem; line-height: 1.45; }

/* footer */
footer { border-top: 1px solid var(--rule); padding-top: 3rem; padding-bottom: 3rem; font-size: 1rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.foot p { margin: 0; }
.foot-legal { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
.foot nav { display: flex; gap: 1.5rem; }
.foot .credit { font-size: 0.8rem; color: var(--muted); }

/* legal pages */
.legal { padding-top: 2rem; padding-bottom: 4rem; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.6rem; margin: 2.25rem 0 0.75rem; }
.legal p, .legal li { max-width: 40em; }
.todo { background: #fff3a8; color: #5a4a00; padding: 0 0.25em; }

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; }
  .ring { width: min(100%, 22rem); }
  .area { grid-template-columns: 1fr; gap: 0.5rem; }
  .find-grid { grid-template-columns: 1fr; }
}
@media (max-width: 30rem) {
  .top .call span { display: none; }
  .foot-legal { align-items: flex-start; }
}
