/* woolf.accountants — one stylesheet for the whole site */

:root {
  --bg: #faf8f3;
  --ink: #1b1b1b;
  --muted: #444;
  --accent: #1d3d84;
  --accent-dark: #142c61;
  --line: #d9d4c7;
  --panel: #fff;
  --max: 46rem;
  --wide: 72rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
}

@media (min-width: 48rem) {
  body {
    font-size: 1.25rem; /* 20px */
  }
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 {
  font-size: 2.1rem;
  letter-spacing: -0.01em;
}

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

h3 {
  font-size: 1.2rem;
}

@media (min-width: 48rem) {
  h1 {
    font-size: 2.9rem;
  }

  h2 {
    font-size: 1.75rem;
  }
}

p,
ul,
ol {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

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

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

/* Skip link */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* Layout */

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 48rem) {
  .wrap {
    padding: 0 2rem;
  }
}

.narrow {
  max-width: var(--max);
}

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

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

/* Header */

.site-header {
  border-bottom: 3px solid var(--ink);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-name {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.site-name:hover {
  color: var(--accent);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.site-header .button {
  font-size: 1rem;
}

@media (max-width: 47.99rem) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header .button {
    width: 100%;
  }
}

/* Buttons */

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--accent);
  border-radius: 4px;
  line-height: 1.3;
}

.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.button:focus-visible {
  outline-color: var(--ink);
}

/* Main content */

main {
  padding-bottom: 2rem;
}

.intro {
  padding-top: 2.5rem;
}

.lead {
  font-size: 1.2em;
  color: var(--muted);
}

.points,
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 48rem) {
  .points {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
  }
}

.points h2 {
  font-size: 1.3rem;
  margin-bottom: 0.4em;
}

.points p {
  margin: 0;
}

.steps {
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  margin-bottom: 0.3em;
  padding-top: 0.2rem;
}

.steps p {
  margin: 0;
}

.closing h2 {
  font-size: 1.6rem;
}

/* Quote */

blockquote {
  margin: 1.5rem 0 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-left: 5px solid var(--accent);
  font-size: 1.25em;
  font-style: italic;
}

blockquote p {
  margin: 0;
}

/* Package cards */

.packages {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 60rem) {
  .packages {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.card {
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 1.5rem 1.25rem;
}

.card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.25em;
}

.price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.25em;
}

.price-note {
  font-weight: 600;
  margin-bottom: 0.75em;
}

.includes {
  font-weight: 700;
  margin-bottom: 0.5em;
}

.card ul {
  padding-left: 1.25rem;
  margin: 0;
}

.card li + li {
  margin-top: 0.5em;
}

.plain-list {
  padding-left: 1.25rem;
}

.plain-list li + li {
  margin-top: 0.5em;
}

/* Table */

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 2px solid var(--ink);
  margin-bottom: 1rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: var(--ink);
  color: #fff;
}

tbody th {
  font-weight: 700;
  width: 45%;
}

.small {
  font-size: 0.95em;
  color: var(--muted);
}

/* Callouts */

.callouts {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 48rem) {
  .callouts {
    grid-template-columns: 1fr 1fr;
  }
}

.callout {
  background: var(--panel);
  border-left: 6px solid var(--accent);
  padding: 1.25rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Contact */

.email-big {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 800;
  word-break: break-all;
  margin-bottom: 1.5rem;
}

@media (min-width: 48rem) {
  .email-big {
    font-size: 2rem;
  }
}

/* Footer */

.site-footer {
  border-top: 3px solid var(--ink);
  padding: 1.5rem 0 2rem;
  font-size: 1rem;
}

.site-footer p {
  margin: 0 0 0.4em;
}
