@font-face {
  font-family: 'Figtree';
  src: url('/fonts/Figtree-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
/* Arial resized to match Figtree's metrics, so the font swap causes minimal reflow */
@font-face {
  font-family: 'Figtree Fallback';
  src: local('Arial');
  font-weight: 400;
  size-adjust: 100.88%;
  ascent-override: 94.17%;
  descent-override: 24.78%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Figtree Fallback';
  src: local('Arial Bold'), local('Arial-BoldMT');
  font-weight: 600 700;
  size-adjust: 96.19%;
  ascent-override: 98.76%;
  descent-override: 25.99%;
  line-gap-override: 0%;
}

:root {
  --heart-teal: #3a8d93;
  --heart-coral: #f15b4b;
  --ink: #221c22;
  --paper: #fbf7f2;
  --deep-teal: #1f5a5e;
  --deep-coral: #b83a2c;
  --teal-mist: #dcedec;
  --sand: #efe6da;
  --line: #e5dacb;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Figtree', 'Figtree Fallback', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--deep-teal);
}
a:hover {
  color: var(--deep-coral);
}
:focus-visible {
  outline: 3px solid var(--heart-coral);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
}
h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
}
h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--deep-teal);
}
p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--deep-teal);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 10;
}
.skip-link:focus {
  top: 1rem;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.lead {
  font-size: 1.25rem;
  max-width: 36rem;
}
.hero__logo {
  margin: 0;
  justify-self: center;
}
.hero__logo img {
  width: min(100%, 26rem);
  mix-blend-mode: multiply;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}
.section--sand {
  background: var(--sand);
}
.section--mist {
  background: var(--teal-mist);
}
.section__head {
  margin-bottom: 2rem;
}

/* Service cards */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.cards li {
  display: flex;
}
.card {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 6px solid var(--heart-teal);
  padding: 1.5rem;
}
.cards li:nth-child(even) .card {
  border-top-color: var(--heart-coral);
}
.card p {
  margin: 0;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 3rem;
  align-items: start;
}
.contact .section__head {
  margin: 0;
}
.contact__details {
  font-style: normal;
  font-size: 1.1875rem;
}
.contact__name {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.contact__details ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.contact__details a {
  font-weight: 600;
}
.contact__details a .icon {
  display: inline-block;
  vertical-align: -0.2em;
}
.contact__social {
  display: flex;
  gap: 1rem;
}

/* Footer */
.site-footer {
  background: var(--deep-teal);
  color: var(--paper);
  font-size: 0.9375rem;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .hero {
    padding: 2.5rem 0 3rem;
  }
  .hero__inner,
  .contact {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero__logo {
    order: -1;
  }
  .hero__logo img {
    width: 14rem;
  }
  .section {
    padding: 3rem 0;
  }
}

[hidden] {
  display: none !important;
}

/* Buttons & header nav */
.btn {
  display: inline-block;
  background: var(--deep-teal);
  color: #fff;
  border: 0;
  padding: 0.8rem 1.5rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--deep-coral);
  color: #fff;
}
.btn--small {
  padding: 0.35rem 0.75rem;
  font-size: 0.9375rem;
}
.btn--ghost {
  background: transparent;
  color: var(--deep-teal);
  border: 2px solid var(--deep-teal);
}
.btn--ghost:hover {
  background: var(--deep-teal);
  color: #fff;
}
.hero__cta {
  margin-top: 1.5rem;
}
.site-footer a {
  color: var(--paper);
}
.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

/* Pages */
.hero--compact {
  padding: 3rem 0 2rem;
}
.prose {
  max-width: 42rem;
}
.prose ul {
  padding-left: 1.25rem;
}

/* Form */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 6px solid var(--heart-teal);
  padding: 1.75rem;
  max-width: 42rem;
}
.field {
  margin-bottom: 1.25rem;
}
.field label,
.field legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  padding: 0;
}
.field input[type='text'],
.field input[type='email'],
.field input[type='password'],
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid #8a8076;
  background: #fff;
  color: var(--ink);
}
.field textarea {
  min-height: 7rem;
  resize: vertical;
}
.field--error input,
.field--error textarea {
  border-color: var(--deep-coral);
  border-width: 2px;
}
.field__error {
  color: var(--deep-coral);
  font-weight: 600;
  margin: 0.35rem 0 0;
}
fieldset.field {
  border: 0;
  margin-inline: 0;
  padding: 0;
  min-width: 0;
}
.fieldset__note {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}
.choice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  cursor: pointer;
}
.choice input {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0.1rem 0 0;
  flex: none;
  accent-color: var(--deep-teal);
}
.group-title {
  font-size: 1.125rem;
  color: var(--deep-teal);
  margin: 1rem 0 0.25rem;
}
.error-summary {
  border: 2px solid var(--deep-coral);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  background: #fff;
}
.error-summary h2 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  color: var(--deep-coral);
}
.error-summary ul {
  margin: 0;
  padding-left: 1.25rem;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note {
  font-size: 0.9375rem;
  margin: 1rem 0;
}

/* Admin */
.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-bar form {
  display: inline;
}
.tiles {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 6px solid var(--heart-teal);
  padding: 1rem;
}
.tile__n {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}
.tile__label {
  font-size: 0.9375rem;
}
.table-scroll {
  overflow-x: auto;
}
table.subs {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 0.9375rem;
}
table.subs th,
table.subs td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
table.subs tr.is-unseen td:first-child {
  border-left: 5px solid var(--heart-coral);
}
.chip {
  display: inline-block;
  background: var(--teal-mist);
  color: var(--deep-teal);
  padding: 0.1rem 0.5rem;
  margin: 0 0.25rem 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 600;
}
.status--failed {
  color: var(--deep-coral);
  font-weight: 700;
}
.muted {
  opacity: 0.75;
}

@media (max-width: 760px) {
  .panel {
    padding: 1.25rem;
  }
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.site-header__brand {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--deep-teal);
  text-decoration: none;
}
