/* Dogs in Boots: one page, system fonts, no scripts. Colours pass WCAG AA for their text in both themes. */
:root {
  --bg: #fbf8f3;
  --surface: #f2ece3;
  --ink: #1d1a17;
  --muted: #5b544c;
  --line: #e4dccf;
  --accent: #b4462a;
  --on-accent: #ffffff;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151311;
    --surface: #1f1c19;
    --ink: #f4efe8;
    --muted: #b7aea3;
    --line: #34302b;
    --accent: #e8825f;
    --on-accent: #151311;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem / 1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
}

.top,
main > section,
.foot {
  width: min(100% - 32px, 960px);
  margin-inline: auto;
}

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

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  text-decoration: none;
  z-index: 1;
}

.skip:focus {
  top: 12px;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 600 1.125rem / 1 var(--serif);
  text-decoration: none;
}

.mark {
  width: 28px;
  height: 28px;
  fill: var(--accent);
}

.top nav {
  display: flex;
  gap: 20px;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.top nav a:hover {
  color: var(--ink);
}

.hero {
  padding-block: clamp(48px, 10vw, 112px) clamp(40px, 8vw, 88px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  letter-spacing: -0.01em;
}

.lead {
  max-width: 38rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.125rem, 2.2vw, 1.3rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin: 36px 0 0;
}

.button {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  filter: brightness(1.08);
}

.link {
  font-weight: 600;
  text-underline-offset: 4px;
}

main > section {
  margin-block: 0 clamp(40px, 7vw, 72px);
}

.band {
  padding: clamp(28px, 5vw, 48px);
  border-radius: 24px;
  background: var(--surface);
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 3.6vw, 2.4rem);
}

.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px 40px;
}

.two p,
.intro {
  margin: 0 0 12px;
  max-width: 40rem;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.cards li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

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

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

.steps li {
  position: relative;
  padding-left: 48px;
  color: var(--muted);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.steps strong {
  color: var(--ink);
}

.contact {
  text-align: center;
}

.contact p {
  margin: 0 auto 20px;
  max-width: 34rem;
  color: var(--muted);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.foot p {
  margin: 0;
}
