/* Greg's Tech Services. Built for older eyes and thumbs first:
   big text, big tap targets, strong contrast, one thing per line. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-next-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/young-serif-latin-400-normal.woff2") format("woff2");
}

:root {
  --ink: #10263a;
  --ink-soft: #1a3750;
  --lake: #1d5c8a;
  --mist: #e6eef2;
  --paper: #f8fafb;
  --white: #ffffff;
  --sign: #f6c62b;
  --go: #167a3a;
  --go-dark: #0f5f2c;
  --muted: #3b4f60;
  --error: #b42318;
  --error-bg: #fdecea;
  --line: #9aaab6;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 1rem;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.25rem; /* 20px */
  line-height: 1.6;
}

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

a {
  color: var(--lake);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--ink);
}

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

.wrap {
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-wide {
  max-width: 64rem;
}

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

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

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -10rem;
  z-index: 10;
  background: var(--sign);
  color: var(--ink);
  padding: 0.75rem 1rem;
  font-weight: 800;
  border-radius: 0.5rem;
}
.skip-link:focus {
  top: 0.5rem;
}

/* ---------- Header and the two tabs ---------- */

.site-header {
  background: var(--ink);
  color: var(--white);
  padding-top: 1rem;
}

.brand {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1.15;
}
.brand:hover {
  color: var(--white);
}

.brand-sub {
  margin: 0.25rem 0 0;
  font-size: 1.125rem;
  color: #dbe5ec;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.75rem;
  padding: 0.5rem 0.75rem;
  border: 3px solid #dbe5ec;
  border-bottom: 0;
  border-radius: 0.875rem 0.875rem 0 0;
  color: var(--white);
  background: var(--ink-soft);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
.tab:hover {
  color: var(--white);
  background: #24486a;
}
.tab[aria-current="page"] {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Page body ---------- */

.page {
  padding-top: 1.75rem;
  padding-bottom: 3rem;
}

.title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.15;
  text-wrap: balance;
}

@media (min-width: 40rem) {
  .title {
    font-size: 3rem;
  }
}

h2 {
  margin: 2.75rem 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.875rem;
  line-height: 1.2;
}

h3 {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 800;
}

p {
  margin: 0.75rem 0 0;
}

.lead {
  font-size: 1.375rem;
  line-height: 1.5;
}

.call-line {
  margin-top: 1rem;
  font-size: 1.25rem;
}
.call-line a {
  font-weight: 800;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 4rem;
  padding: 0.75rem 1.5rem;
  border: 3px solid transparent;
  border-radius: 0.875rem;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn svg {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
}

.btn-primary {
  background: var(--go);
  border-color: var(--go);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--go-dark);
  border-color: var(--go-dark);
  color: var(--white);
}
.btn-primary[disabled] {
  opacity: 0.75;
  cursor: wait;
}

.btn-outline {
  background: var(--white);
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--mist);
  color: var(--ink);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ---------- The form ---------- */

.form {
  margin-top: 1.75rem;
}

.field {
  margin: 0 0 1.75rem;
  padding: 0;
  border: 0;
}

.label,
.field legend {
  display: block;
  padding: 0;
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.3;
}

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

.hint {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.45;
}

.input {
  display: block;
  width: 100%;
  margin-top: 0.6rem;
  min-height: 3.75rem;
  padding: 0.75rem 1rem;
  border: 3px solid var(--ink);
  border-radius: 0.75rem;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 1.375rem; /* never below 16px, so phones don't zoom in */
  line-height: 1.4;
}
.input:focus {
  outline: 4px solid var(--sign);
  outline-offset: 2px;
}
textarea.input {
  min-height: 9rem;
  resize: vertical;
}

.field-error {
  display: none;
  margin: 0.5rem 0 0;
  padding: 0.5rem 0.75rem;
  border-left: 6px solid var(--error);
  background: var(--error-bg);
  color: var(--error);
  font-weight: 700;
  font-size: 1.125rem;
}
.field.has-error .field-error {
  display: block;
}
.field.has-error .input {
  border-color: var(--error);
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
  padding: 0.75rem 1rem;
  border: 3px solid var(--ink);
  border-radius: 0.75rem;
  background: var(--white);
  font-weight: 800;
  font-size: 1.375rem;
  cursor: pointer;
}
.choice input {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  accent-color: var(--go);
}
.choice:has(input:checked) {
  border-color: var(--go);
  background: #e3f3e8;
  box-shadow: inset 0 0 0 2px var(--go);
}
.choice:has(input:focus-visible) {
  outline: 4px solid var(--sign);
  outline-offset: 2px;
}

/* Spam trap: hidden from people, visible to bots. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.small-print {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.error-summary {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 4px solid var(--error);
  border-radius: 0.75rem;
  background: var(--error-bg);
  color: var(--ink);
}
.error-summary h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--error);
}
.error-summary ul,
.error-list {
  margin: 0.5rem 0 0;
  padding-left: 1.5rem;
}
.error-summary a {
  color: var(--error);
  font-weight: 700;
}

.sent {
  margin-top: 1.75rem;
  padding: 1.5rem 1.25rem;
  border: 4px solid var(--go);
  border-radius: 1rem;
  background: #e3f3e8;
}
.sent h2 {
  margin: 0;
  color: var(--go-dark);
}
.sent .check {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--go);
  color: var(--white);
  display: grid;
  place-items: center;
}
.sent .check svg {
  width: 2rem;
  height: 2rem;
}

[hidden] {
  display: none !important;
}

/* ---------- "Or call" box ---------- */

.phone-box {
  margin-top: 2.5rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--mist);
}
.phone-box h2 {
  margin: 0;
  font-size: 1.625rem;
}
.phone-number {
  margin: 0.25rem 0 0;
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 0.01em;
}

/* ---------- What I do ---------- */

.price {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--ink);
  color: var(--white);
}
.price-amount {
  margin: 0;
  font-family: var(--display);
  font-size: 2.75rem;
  line-height: 1.1;
  color: var(--sign);
}
.price p {
  color: var(--white);
}

.services {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  border-top: 2px solid var(--line);
}
.services li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 2px solid var(--line);
}
.services .icon {
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.875rem;
  background: var(--mist);
  color: var(--lake);
  display: grid;
  place-items: center;
}
.services .icon svg {
  width: 1.75rem;
  height: 1.75rem;
}
.services p {
  margin-top: 0.35rem;
  color: var(--muted);
}

.steps {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0 0 1.5rem 4rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.375rem;
}
.steps p {
  margin-top: 0.25rem;
  color: var(--muted);
}

.checks {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.checks li {
  position: relative;
  padding: 0.35rem 0 0.35rem 2.5rem;
  font-weight: 700;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.55rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--go)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 1rem no-repeat;
}

.faq {
  margin-top: 1rem;
  border-top: 2px solid var(--line);
}
.faq details {
  border-bottom: 2px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.75rem 0;
  font-weight: 800;
  font-size: 1.3125rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "\2212";
  background: var(--ink);
  color: var(--white);
}
.faq details p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.cta {
  margin-top: 2.75rem;
  padding: 1.5rem 1.25rem;
  border-radius: 1rem;
  background: var(--ink);
  color: var(--white);
}
.cta h2 {
  margin: 0;
  color: var(--white);
}
.cta p {
  color: #dbe5ec;
}
.cta .btn {
  margin-top: 1.25rem;
}
.cta a:not(.btn) {
  color: var(--white);
  font-weight: 800;
}

/* ---------- Plain text pages ---------- */

.prose h2 {
  font-size: 1.625rem;
}
.prose ul {
  margin: 0.75rem 0 0;
  padding-left: 1.5rem;
}
.prose li + li {
  margin-top: 0.4rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #dbe5ec;
  padding: 2rem 0 2.5rem;
}
.site-footer a {
  color: var(--white);
}
.footer-name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--white);
}
.footer-links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.footer-links li {
  margin-top: 0.25rem;
}
.footer-links a {
  display: inline-block;
  padding: 0.5rem 0;
  font-weight: 700;
}
.copyright {
  margin-top: 1.25rem;
  font-size: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .tab,
  .choice {
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }
}

@media (forced-colors: active) {
  .tab[aria-current="page"] {
    border: 3px solid CanvasText;
  }
  .choice:has(input:checked) {
    border-width: 6px;
  }
}
