:root {
  color-scheme: light;
  --paper: #f7f8f5;
  --ink: #172239;
  --muted: #49566a;
  --blue: #2245bc;
  --blue-dark: #193598;
  --line: #d8dedf;
  --page-width: 70rem;
  --gutter: clamp(1.125rem, 5vw, 3rem);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

h1, h2, h3, p, dl, dd { margin: 0; }

h1, h2, h3 {
  line-height: 1.08;
  letter-spacing: -0.045em;
}

a {
  color: var(--blue-dark);
  text-underline-offset: 0.2em;
}

a:hover { color: var(--blue); }

a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.container {
  width: min(var(--page-width), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1;
  top: 0.5rem;
  left: var(--gutter);
  padding: 0.625rem 1rem;
  background: white;
  transform: translateY(-180%);
}

.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }

.header-inner, .footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.375rem 1.25rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 0.5rem;
  background: var(--blue);
  color: white;
  font-weight: 800;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem clamp(0.875rem, 3vw, 1.875rem);
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}

h1 { font-size: clamp(2.75rem, 5.5vw, 5rem); }

.hero-copy > p {
  max-width: 35ch;
  margin-block: 1.4rem 1.75rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.65vw, 1.1875rem);
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.button-primary {
  background: var(--blue);
  color: white;
}

.button-primary:hover {
  background: var(--blue-dark);
  color: white;
}

.button-secondary {
  border-color: #a9b7df;
  background: white;
  color: var(--blue-dark);
}

.button-secondary:hover {
  border-color: var(--blue);
  background: #f0f3ff;
}

.hero-art {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 18rem;
  aspect-ratio: 1.13;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
  border-radius: 1.25rem;
  background-color: var(--blue);
  background-image: linear-gradient(#ffffff17 1px, transparent 1px),
    linear-gradient(90deg, #ffffff17 1px, transparent 1px);
  background-position: center;
  background-size: 1.625rem 1.625rem;
}

.art-orbit {
  position: absolute;
  z-index: -1;
  width: 82%;
  aspect-ratio: 1;
  border: 1px solid #ffffff45;
  border-radius: 50%;
}

.art-sheet {
  position: relative;
  width: 58%;
  max-width: 15rem;
  padding: 1.375rem 1rem 1rem;
  transform: translate(-5%, 2%) rotate(-8deg);
  border-radius: 0.875rem;
  background: white;
  box-shadow: 0 1rem 2.5rem #0b225d70;
}

.art-clip {
  position: absolute;
  top: -0.5rem;
  left: 30%;
  right: 30%;
  height: 0.875rem;
  border-radius: 0.25rem;
  background: #cfe0ff;
}

.art-heading {
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.art-caption {
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.art-row {
  display: flex;
  min-height: 2.0625rem;
  align-items: center;
  gap: 0.45rem;
  border-top: 1px solid #e4e9f2;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 650;
}

.art-line {
  width: 1.25rem;
  height: 0.2rem;
  margin-left: auto;
  border-radius: 1rem;
  background: #d7e0ef;
}

.art-check, .art-half, .art-empty {
  display: grid;
  flex: none;
  width: 0.9375rem;
  height: 0.9375rem;
  place-items: center;
  border-radius: 0.25rem;
}

.art-check { background: #d5f4e2; }

.art-check::before {
  width: 0.28rem;
  height: 0.5rem;
  transform: translateY(-0.06rem) rotate(45deg);
  border-right: 2px solid #176043;
  border-bottom: 2px solid #176043;
  content: "";
}

.art-half { background: #ffedc4; }

.art-half::before {
  width: 0.45rem;
  height: 2px;
  background: #83550c;
  content: "";
}

.art-empty { border: 1px solid #91a1bc; }

.art-tile {
  position: absolute;
  display: grid;
  right: 12%;
  bottom: 15%;
  width: clamp(3rem, 6.5vw, 5rem);
  aspect-ratio: 1;
  place-items: center;
  transform: rotate(12deg);
  border: 1px solid #a5e6c3;
  border-radius: 1rem;
  background: #bcf2d6;
  box-shadow: 0 0.75rem 1.75rem #0b225d55;
}

.art-tile .art-check { transform: scale(2.2); background: transparent; }

.products {
  padding-block: clamp(2.75rem, 6vw, 4.625rem);
  border-block: 1px solid var(--line);
  background: #eef1ed;
}

h2 { font-size: clamp(2rem, 4vw, 3rem); }

.product-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.product {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
}

.product-featured { background: white; }

.product-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product h3 { font-size: 1.625rem; }

.product p:not(.status) {
  max-width: 48ch;
  margin-top: 0.7rem;
  color: var(--muted);
}

.product .button { margin-top: 1.25rem; }

.product-symbol {
  display: grid;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.625rem;
  background: #e7edff;
  color: var(--blue-dark);
}

.book-symbol span {
  display: grid;
  width: 0.85rem;
  height: 1rem;
  place-items: center;
  border: 1.5px solid currentColor;
  border-left-width: 3px;
  border-radius: 0.125rem;
}

.book-symbol span::after {
  width: 55%;
  height: 2px;
  background: currentColor;
  box-shadow: 0 3px currentColor;
  content: "";
}

.status {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  background: #e4e9e2;
  color: #35483f;
  font-size: 0.875rem;
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
  padding-block: clamp(2.75rem, 6vw, 4.625rem);
}

.contact-intro p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.contact-details > div { padding-block: 0.75rem; }

.contact-details > div:first-child { padding-top: 0; }

.contact-details > div + div { border-top: 1px solid var(--line); }

.contact-details dt { font-weight: 700; }

.contact-details dd {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-inner { min-height: 4.5rem; }

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

  .hero-break { display: none; }

  .hero-art {
    min-height: 16rem;
    max-height: 23rem;
    aspect-ratio: 1.6;
  }
}

@media (max-width: 34rem) {
  .product-grid, .contact { grid-template-columns: 1fr; }

  .hero-art { aspect-ratio: 1.3; }

  .art-tile { right: 10%; }

  .art-row { white-space: nowrap; }
}
