/* Practice Sites — single stylesheet.
   Colours, spacing and type are all set from the custom properties below. */

:root {
  --ink:        #1c2a29;  /* body text            */
  --ink-soft:   #4a5a58;  /* secondary text       */
  --accent:     #0f5f58;  /* the one accent       */
  --accent-dk:  #0a423d;  /* accent, hover state  */
  --wash:       #edf3f1;  /* soft accent tint     */
  --page:       #fbfaf8;  /* page background      */
  --card:       #ffffff;
  --rule:       #e3e0da;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;   /* comfortable reading width */
  --gutter: 1.5rem;
  --radius: 14px;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- shared layout ---------- */

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

main > section {
  padding-block: 3rem;
  border-top: 1px solid var(--rule);
}

main > section:first-child { border-top: 0; }

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: 2.25rem;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.4rem;
  margin: 0 0 1.5rem;
}

h3 {
  font-size: 1.125rem;
  margin: 0 0 0.35rem;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent-dk); }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: var(--gutter);
  top: 0.5rem;
  z-index: 10;
  background: var(--card);
  color: var(--accent);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(28, 42, 41, 0.18);
}

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

.hero {
  padding-block: 3.5rem 3rem;
  background: linear-gradient(var(--wash), var(--page));
}

.wordmark {
  font-family: var(--serif);
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 2.25rem;
}

.lede {
  font-size: 1.1875rem;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  text-wrap: pretty;
}

.hero-contact {
  font-size: 1.0625rem;
  line-height: 2;
}

.hero-contact .sep {
  color: var(--ink-soft);
  padding-inline: 0.5rem;
}

/* ---------- what you get ---------- */

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

.features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.15rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.features li:last-child { margin-bottom: 0; }

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.features strong {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- how it works ---------- */

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

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
}

.steps li:last-child { margin-bottom: 0; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--wash);
  color: var(--accent-dk);
  font-family: var(--serif);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ---------- price ---------- */

.price-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.amount {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--accent-dk);
  line-height: 1.1;
}

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

.price-note {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- who / contact ---------- */

.who,
.visit {
  color: var(--ink-soft);
  text-wrap: pretty;
}

.contact-lines {
  font-size: 1.1875rem;
  line-height: 2;
  margin-bottom: 1.25rem;
}

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

footer {
  padding-block: 2rem 3rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* ---------- wider screens ---------- */

@media (min-width: 40rem) {
  :root { --gutter: 2rem; }

  body { font-size: 1.125rem; }

  h1 { font-size: 3rem; }
  h2 { font-size: 1.5rem; }

  .hero { padding-block: 5.5rem 4.5rem; }
  .lede { font-size: 1.3125rem; }

  main > section { padding-block: 4rem; }

  .price-card { padding: 2.25rem 2rem; }
  .amount { font-size: 2rem; }
}

/* ---------- laptops and up ----------
   The section heading moves out into a left-hand rail beside its content,
   so the page fills the width without the text lines getting too long. */

@media (min-width: 64rem) {
  :root { --measure: 51rem; }

  .hero { padding-block: 7rem 5.5rem; }

  h1 { font-size: 3.5rem; }

  .lede { max-width: 34rem; }

  main > section {
    display: grid;
    grid-template-columns: 12rem minmax(0, 36rem);
    column-gap: 3rem;
    padding-block: 4.5rem;
  }

  main > section > h2 {
    grid-column: 1;
    font-size: 1.25rem;
    /* nudged down so the heading sits level with the first line of body text */
    margin: 0.2rem 0 0;
  }

  main > section > :not(h2) { grid-column: 2; }
}
