/* =========================================================================
   Stylesheet for lukasz-pudlo.
   The client sites carry the page. A project page, a portfolio band and the
   selected client on the homepage each take that client's colours; pages with
   no client use the house colours. One family, Archivo: condensed and heavy
   for names and headings, normal width for text.

   Breakpoints: 600px (fact rows side by side), 760px (two columns),
   880px (heading beside content).
   ========================================================================= */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Archivo";
  src: url("../../fonts/archivo.de2f1fe81758.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* A fallback sized to Archivo's metrics, so text barely moves when the web font
   arrives. Figures measured from the two fonts' average glyph widths. */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 101%;
  ascent-override: 86.93%;
  descent-override: 20.79%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */

/* Registered so that the colours animate when the selected client changes. */
@property --paper {
  syntax: "<color>";
  inherits: true;
  initial-value: #f4f5f3;
}

@property --ink {
  syntax: "<color>";
  inherits: true;
  initial-value: #000;
}

@property --ink-muted {
  syntax: "<color>";
  inherits: true;
  initial-value: #54585c;
}

@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #000;
}

@property --accent-ink {
  syntax: "<color>";
  inherits: true;
  initial-value: #fff;
}

:root {
  --paper: #f4f5f3;
  --ink: #000;
  --ink-muted: #54585c;
  --accent: #000;
  --accent-ink: #fff;
  --sheet: #f9eba0;
  --sheet-line: #cfbb4c;
  --screen: #fff;

  --font-sans: "Archivo", "Archivo Fallback", Arial, Helvetica, sans-serif;
  --condensed: 62%;

  --text-sm: 0.875rem;
  --leading-sm: 1.25rem;
  --text-base: 1.0625rem;
  --leading-base: 1.6875rem;
  --text-lead: 1.375rem;
  --leading-lead: 1.875rem;
  --text-h3: 1.1875rem;
  --text-h2: clamp(2rem, 1.2rem + 3vw, 3.25rem);
  --text-h1: clamp(2.75rem, 1.4rem + 6vw, 5rem);
  --text-say: clamp(2rem, 0.9rem + 4.4vw, 4.25rem);
  --text-poster: clamp(4rem, 1.6rem + 13.5vw, 12rem);

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-24: 6rem;
  --section-gap: clamp(4rem, 9vw, 7rem);

  --measure: 62ch;
  --shell: 76rem;
  --gutter: clamp(16px, 5vw, 48px);
}

/* Derived from the colours above. Declared again on every themed element, because a
   value that refers to another token is fixed where it is declared. */
:root,
.theme {
  --line: color-mix(in srgb, var(--ink) 26%, transparent);
  --accent-hover: color-mix(in srgb, var(--accent) 82%, var(--paper));
  --rule: 1px solid var(--line);
  --rule-ink: 1px solid var(--ink);
}

/* ---------- Client themes ----------
   One block per project slug. It applies to a project page (the class is on
   <html>), to a portfolio band, and to the homepage while that client is
   selected. A new project needs a block here and a line in the stage rule
   further down; pages/tests/test_views.py checks for both. Each pair of text
   and ground is at least 4.5 to 1. */

.theme--taigh-tuaram,
html:has(#client-taigh-tuaram:checked) {
  --paper: #1f5a6a;
  --ink: #f3f6f4;
  --ink-muted: #b9d2d6;
  --accent: #f3f6f4;
  --accent-ink: #123c47;
}

.theme--tracey-exton,
html:has(#client-tracey-exton:checked) {
  --paper: #e9b44c;
  --ink: #23170a;
  --ink-muted: #5c4420;
  --accent: #23170a;
  --accent-ink: #f6d58d;
}

.theme--south-by-five,
html:has(#client-south-by-five:checked) {
  --paper: #5e2182;
  --ink: #fff;
  --ink-muted: #dcc6ea;
  --accent: #ffd83d;
  --accent-ink: #2a0f3b;
}

.theme--creek-crosby,
html:has(#client-creek-crosby:checked) {
  --paper: #c8161d;
  --ink: #fff;
  --ink-muted: #ffe3e0;
  --accent: #000;
  --accent-ink: #fff;
}

.theme--ula-studio,
html:has(#client-ula-studio:checked) {
  --paper: #1a2c78;
  --ink: #f4f1ea;
  --ink-muted: #b8c0e6;
  --accent: #f0531c;
  --accent-ink: #000;
}

.theme--racehere,
html:has(#client-racehere:checked) {
  --paper: #0f3a30;
  --ink: #f1e7d6;
  --ink-muted: #a9c2b6;
  --accent: #e2491f;
  --accent-ink: #1a0a04;
}

.theme {
  color: var(--ink);
  background: var(--paper);
}

/* ---------- Reset and type ---------- */

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

html {
  color-scheme: light;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  transition:
    --paper 450ms ease,
    --ink 450ms ease,
    --ink-muted 450ms ease,
    --accent 450ms ease,
    --accent-ink 450ms ease;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-weight: 800;
  font-stretch: var(--condensed);
  line-height: 1;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
}

h2 {
  font-size: var(--text-h2);
}

h3 {
  font-size: var(--text-h3);
  line-height: 1.3;
  font-weight: 700;
}

/* Links in text are ink and underlined. Navigation links drop the underline until
   they are current or hovered. */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

.small {
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
}

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

.lead {
  max-width: 34em;
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
}

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

.prose p + p,
.prose ul,
.prose ol {
  margin-top: var(--s-4);
}

/* The one gap between a page heading and the lead beneath it. */
h1 + .lead {
  margin-top: var(--s-6);
}

/* ---------- Shell ---------- */

.site-header,
.case-tabs,
.page-shell,
.site-footer,
.wrap {
  width: min(var(--shell), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-shell {
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

/* A page whose sections run the full width and bring their own .wrap. */
.page-shell--bleed {
  width: 100%;
  padding-inline: 0;
}

.section + .section {
  margin-top: var(--section-gap);
}

/* The section that opens a page with its heading sits closer to what it introduces. */
.section:has(> h1:first-child) + .section {
  margin-top: var(--s-12);
}

.section__title {
  margin-bottom: var(--s-8);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 2;
  padding: var(--s-2) var(--s-4);
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--s-2);
}

/* ---------- Site header ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-2) var(--s-8);
  padding-block: var(--s-6) var(--s-4);
}

.site-header__brand {
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 800;
  font-stretch: var(--condensed);
  text-decoration: none;
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-6);
}

.site-header__nav a {
  font-weight: 500;
  text-decoration: none;
}

.site-header__nav a:hover,
.site-header__nav a[aria-current="page"] {
  text-decoration: underline;
}

/* ---------- Project tabs, beneath the header ---------- */

.case-tabs {
  font-size: 1.125rem;
  line-height: 1.5rem;
  font-weight: 700;
  font-stretch: 75%;
}

.case-tabs__list {
  list-style: none;
  margin: 0;
  padding: var(--s-3) 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-6);
  border-block: var(--rule);
}

.case-tabs a {
  color: var(--ink-muted);
  text-decoration: none;
}

.case-tabs a:hover {
  color: var(--ink);
}

.case-tabs a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- Buttons, links and rows ---------- */

.button {
  display: inline-block;
  padding: var(--s-3) var(--s-6);
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 700;
  line-height: var(--leading-base);
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: background-color 120ms ease, border-color 120ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.link {
  font-weight: 600;
}

/* A button that reads as a link, for an action that stays on the page. */
.link-button {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.link-button:hover {
  text-decoration-thickness: 2px;
}

/* Actions that sit together: a button and a plain link, or two links. */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-6);
}

* + .actions {
  margin-top: var(--s-6);
}

/* A list whose rows are separated by a rule. Used for facts and prices. */
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--rule);
}

.rows > * {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-1) var(--s-6);
  padding: var(--s-3) 0;
  border-bottom: var(--rule);
}

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

.rows dd {
  margin: 0;
}

@media (min-width: 600px) {
  .rows--facts > * {
    grid-template-columns: 9rem minmax(0, 1fr);
  }
}

/* The steps are a genuine sequence, so they carry numbers. */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-8) var(--s-12);
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.steps > li {
  display: grid;
  gap: var(--s-2);
  align-content: start;
}

.steps > li::before {
  counter-increment: step;
  content: counter(step);
  color: var(--ink-muted);
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 800;
  font-stretch: var(--condensed);
}

/* ---------- Form controls ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  min-width: 0;
}

.field label {
  font-weight: 600;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  margin: 0;
  padding: var(--s-3) var(--s-4);
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: var(--rule-ink);
  border-radius: 0;
  box-shadow: none;
  appearance: none;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}

.field__select {
  position: relative;
}

.field__select select {
  padding-right: var(--s-12);
  cursor: pointer;
}

.field__select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: var(--s-4);
  width: 0.55em;
  height: 0.55em;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field [aria-invalid="true"] {
  border-width: 2px;
}

.field__error {
  font-weight: 600;
}

/* ---------- Home: the sentence and the stage ---------- */

/* The opening sentence. Each client name in it is a radio input, and the checked
   one decides which panel shows and which colours the page takes. */
.stage__say {
  max-width: 22em;
  color: var(--ink-muted);
  font-size: var(--text-say);
  line-height: 1.06;
  text-wrap: pretty;
}

.stage__name {
  position: relative;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 0.03em;
  text-underline-offset: 0.13em;
}

.stage__name:hover {
  text-decoration-thickness: 0.07em;
}

/* The selected name is marked by weight of line, not by colour alone. */
.stage__name:has(:checked) {
  text-decoration-thickness: 0.15em;
}

.stage__name:has(:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.stage__radio {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.stage__panels {
  display: grid;
  gap: var(--s-16);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.stage__panel {
  display: grid;
  gap: var(--s-6);
  align-content: start;
}

.stage__shot {
  display: block;
  background: var(--screen);
  outline: var(--rule);
}

.stage__shot img {
  width: 100%;
}

.stage__meta {
  display: grid;
  gap: var(--s-6) var(--s-12);
  align-items: start;
}

@media (min-width: 880px) {
  .stage__meta {
    grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto;
  }
}

.stage__outcome {
  font-size: 1.5rem;
  line-height: 1.28;
  font-weight: 500;
  text-wrap: balance;
}

.stage__acts {
  display: grid;
  gap: var(--s-3);
  justify-items: start;
}

/* With :has(), the panels stack in one cell and only the selected one shows.
   Without it they stay a plain list, each under its own heading. */
@supports selector(:has(*)) {
  .stage__panels {
    gap: 0;
  }

  .stage__panel {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 450ms ease, visibility 0s linear 450ms;
  }

  html:has(#client-taigh-tuaram:checked) .stage__panel[data-client="taigh-tuaram"],
  html:has(#client-tracey-exton:checked) .stage__panel[data-client="tracey-exton"],
  html:has(#client-south-by-five:checked) .stage__panel[data-client="south-by-five"],
  html:has(#client-creek-crosby:checked) .stage__panel[data-client="creek-crosby"],
  html:has(#client-ula-studio:checked) .stage__panel[data-client="ula-studio"],
  html:has(#client-racehere:checked) .stage__panel[data-client="racehere"] {
    opacity: 1;
    visibility: visible;
    transition: opacity 450ms ease, visibility 0s;
  }

  .stage__client {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.quotes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-8);
  max-width: var(--measure);
}

.quotes__text {
  margin-bottom: var(--s-2);
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
}

/* Guide prices as name and amount. */
.price-rows > * {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-1) var(--s-8);
}

.price-rows dt {
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 500;
}

.price-rows dd {
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 800;
  font-stretch: var(--condensed);
}

.price-note {
  max-width: var(--measure);
  margin-top: var(--s-4);
  color: var(--ink-muted);
}

/* ---------- Portfolio: one band per client ---------- */

.bands {
  list-style: none;
  margin: var(--section-gap) 0 0;
  padding: 0;
}

.band {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.band__inner {
  display: grid;
  gap: var(--s-6);
}

.band__name {
  font-size: clamp(3rem, 1.4rem + 8vw, 7.5rem);
  line-height: 0.92;
}

.band__name a {
  text-decoration: none;
}

.band__name a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.1em;
}

.band__shot {
  display: block;
  background: var(--screen);
  outline: var(--rule);
}

.band__shot img {
  width: 100%;
}

.band__meta {
  display: grid;
  gap: var(--s-4) var(--s-12);
  align-items: start;
}

@media (min-width: 760px) {
  .band__meta {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.band__text {
  display: grid;
  gap: var(--s-2);
  max-width: var(--measure);
}

.portfolio-close {
  margin-top: var(--section-gap);
}

/* ---------- Project page ---------- */

.poster {
  font-size: var(--text-poster);
  line-height: 0.9;
}

.poster + .lead {
  margin-top: var(--s-8);
}

.screen {
  display: grid;
  gap: var(--s-3);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.screen__shot {
  background: var(--screen);
  outline: var(--rule);
}

.screen__shot img {
  width: 100%;
}

/* On a phone the live site needs more height than a 16:10 box gives it. */
.screen__frame {
  width: 100%;
  height: min(72vh, 760px);
  min-height: 28rem;
  border: 0;
  background: var(--screen);
}

/* From here up the live site takes exactly the screenshot's box, so nothing
   below it moves when it loads. */
@media (min-width: 760px) {
  .screen__shot {
    aspect-ratio: 1120 / 700;
  }

  .screen__frame {
    height: 100%;
    min-height: 0;
  }
}

.screen__caption {
  display: grid;
  gap: var(--s-1);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  color: var(--ink-muted);
}

.screen__caption a,
.screen__caption .link-button {
  color: var(--ink);
}

.case__facts {
  margin-top: var(--s-8);
}

@media (min-width: 880px) {
  .case__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--s-12);
    border-top: 0;
  }

  .case__facts > * {
    border-top: var(--rule);
    margin-top: -1px;
  }
}

.case__body {
  display: grid;
  gap: var(--section-gap);
  margin-top: var(--section-gap);
}

/* Heading on the left, content on the right. */
.case__part {
  display: grid;
  gap: var(--s-4) var(--s-12);
  align-items: start;
}

@media (min-width: 880px) {
  .case__part {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
}

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

.parts {
  margin: var(--s-4) 0 0;
  padding-left: 1.2em;
  list-style: disc;
}

.parts li + li {
  margin-top: var(--s-1);
}

.case__outcome {
  display: grid;
  gap: var(--s-6) var(--s-12);
  align-items: start;
}

@media (min-width: 760px) {
  .case__outcome {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
}

.case__phone {
  width: 240px;
  background: var(--screen);
  outline: var(--rule);
}

.case__services {
  margin-top: var(--s-4);
}

/* ---------- Services ---------- */

.service-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--rule);
}

.service-rows > li {
  display: grid;
  gap: var(--s-2) var(--s-12);
  padding: var(--s-6) 0;
  border-bottom: var(--rule);
}

@media (min-width: 880px) {
  .service-rows > li {
    grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(8rem, auto);
    align-items: baseline;
  }

  .service-rows__price {
    text-align: right;
  }
}

.service-rows__name {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
}

.service-rows__name a {
  text-decoration: none;
}

.service-rows__name a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.1em;
}

.service-rows__price {
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 800;
  font-stretch: var(--condensed);
}

.service-rows__price span {
  display: block;
  margin-top: var(--s-1);
  color: var(--ink-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: 400;
  font-stretch: 100%;
}

.service__cost {
  display: grid;
  gap: var(--s-6);
  justify-items: start;
}

.service__cost .rows {
  justify-self: stretch;
}

.service__work {
  margin-top: var(--section-gap);
}

/* A portfolio band at half height: the name and outcome beside the screenshot. */
.bands--brief {
  margin-top: 0;
}

.band--brief {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.band--brief .band__name {
  font-size: var(--text-h2);
  line-height: 1;
  font-weight: 800;
  font-stretch: var(--condensed);
}

@media (min-width: 760px) {
  .band--brief .band__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s-12);
    align-items: center;
  }
}

.asked {
  display: grid;
  gap: var(--s-8);
}

.asked h3 + p {
  margin-top: var(--s-2);
}

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

.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  align-items: start;
}

@media (min-width: 760px) {
  .about {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: var(--s-12);
  }
}

.about__text .prose {
  margin-top: var(--s-6);
}

.about__photo {
  width: 100%;
  max-width: 280px;
}

.about__practice {
  margin-top: var(--s-12);
}

.about__practice,
.coverage {
  max-width: 76ch;
}

@media (min-width: 600px) {
  .about__practice > *,
  .coverage > * {
    grid-template-columns: 13rem minmax(0, 1fr);
  }
}

.about__tools {
  margin-top: var(--s-6);
}

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

.brief-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6) var(--s-8);
  max-width: var(--measure);
}

@media (min-width: 760px) {
  .brief-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field--wide {
    grid-column: 1 / -1;
  }
}

.brief-form__submit {
  align-items: flex-start;
}

.contact-direct {
  display: grid;
  gap: var(--s-1);
  justify-items: start;
  margin-top: var(--s-12);
}

.contact-email {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-1) var(--s-6);
  max-width: 100%;
}

.contact-email__link {
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Reserved line: the confirmation appears here so nothing moves when it shows. */
.contact-email__status {
  min-height: var(--leading-sm);
}

.notice {
  display: grid;
  gap: var(--s-4);
  justify-items: start;
  max-width: var(--measure);
}

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

/* ---------- Prices: options and one sheet ----------
   Each option is a radio input, its label and its sheet, as siblings. The
   checked input shows the sheet that follows its label, so the rules below
   work for any number of price tiers. */

.ask {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: var(--rule);
}

.ask__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.ask__option {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0 var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: var(--rule);
  cursor: pointer;
}

.ask__option::before {
  content: "";
  grid-row: span 2;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.3rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.ask__radio:checked + .ask__option::before {
  background: radial-gradient(circle, var(--ink) 0 42%, transparent 46%);
}

.ask__radio:focus-visible + .ask__option {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.ask__name {
  font-size: 1.75rem;
  line-height: 1.15;
  font-weight: 800;
  font-stretch: var(--condensed);
}

.ask__summary {
  grid-column: 2;
  color: var(--ink-muted);
}

.sheet {
  display: none;
  gap: var(--s-6);
  align-content: start;
  min-width: 0;
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  background: var(--sheet);
}

.ask__radio:checked + .ask__option + .sheet {
  display: grid;
}

@media (min-width: 880px) {
  .ask {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: repeat(var(--options), auto) 1fr;
    column-gap: var(--s-16);
    border-top: 0;
  }

  .ask__option {
    grid-column: 1;
  }

  .ask__option:first-of-type {
    border-top: var(--rule);
  }

  /* Every sheet takes the same cell, so the page keeps its height when the choice changes. */
  .sheet {
    display: grid;
    grid-column: 2;
    grid-row: 1 / -1;
    visibility: hidden;
  }

  .ask__radio:checked + .ask__option + .sheet {
    visibility: visible;
  }
}

.sheet__name {
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: 700;
  font-stretch: 100%;
}

.sheet__amount,
.service__amount {
  font-size: clamp(3.5rem, 2rem + 6vw, 6rem);
  line-height: 0.95;
  font-weight: 800;
  font-stretch: var(--condensed);
}

.sheet__amount span,
.service__amount span {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  font-weight: 400;
  font-stretch: 100%;
}

.sheet__say {
  font-size: 1.5rem;
  line-height: 1.28;
  font-weight: 500;
}

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

.sheet__includes li {
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--sheet-line);
}

.sheet__proof {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: var(--s-4);
  align-items: center;
}

.sheet__proof img {
  outline: 1px solid var(--ink);
}

.sheet__note {
  font-size: var(--text-sm);
  line-height: 1.5;
}

.sheet .button {
  justify-self: start;
}

/* ---------- Error pages ---------- */

.error-page {
  display: grid;
  gap: var(--s-6);
  justify-items: start;
}

/* ---------- Site footer ---------- */

.site-footer {
  display: grid;
  gap: var(--s-1);
  margin-top: var(--s-24);
  padding-block: var(--s-6) var(--s-12);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  color: var(--ink-muted);
}

.site-footer::before {
  content: "";
  margin-bottom: var(--s-4);
  border-top: var(--rule);
}

.site-footer a {
  color: var(--ink);
}

.site-footer__copyright {
  margin-top: var(--s-3);
}

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

/* Where the browser supports it, a screenshot carries from a list into its
   project page. Elsewhere the next page simply loads. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

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

/* ---------- Utility ---------- */

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