:root {
  --ink: #201078;
  --ink-deep: #140c4a;
  --orange: #e84800;
  --paper: #f3f5f7;
  --sheet: #ffffff;
  --line: #c5ced6;
  --text: #1a1630;
  --header-h: 4.75rem;
  --z-header: 20;
  --z-skip: 40;
  --space: clamp(2.5rem, 6vw, 4.75rem);
  --gutter: clamp(1.15rem, 4vw, 2rem);
  --measure: 68ch;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem + env(safe-area-inset-top));
  scroll-padding-bottom: calc(11.25rem + env(safe-area-inset-bottom));
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  padding-bottom: calc(11.25rem + env(safe-area-inset-bottom));
  touch-action: manipulation;
}

img,
video {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
  margin-top: 0;
}

h1,
.brand-type {
  font-family: Unbounded, "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(1.85rem, 7vw, 3.35rem);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

p,
li,
dd {
  max-width: var(--measure);
}

a {
  color: var(--ink);
}

a:hover {
  color: var(--ink-deep);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  transform: translateY(-150%);
  z-index: var(--z-skip);
  background: var(--sheet);
  color: var(--ink);
  padding: 0.7rem 1rem;
  min-height: 44px;
}

.skip:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--header-h);
  padding: 0.4rem var(--gutter);
  max-width: 76rem;
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
  min-height: 44px;
}

.brand img {
  width: min(148px, 52vw);
  height: auto;
}

.call,
.btn {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.call {
  display: inline-flex;
  background: var(--sheet);
  color: var(--ink);
}

.btn:hover,
.call:hover {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
  color: #fff;
}

.btn:active,
.call:active,
.filters button:active {
  background: var(--ink-deep);
  color: #fff;
}

.btn.secondary {
  background: var(--sheet);
  color: var(--ink);
}

.btn.secondary:hover {
  background: var(--ink);
  color: #fff;
}

.nav {
  display: none;
  gap: 0.35rem;
  padding: 0 var(--gutter) 0.8rem;
  max-width: 76rem;
  margin-inline: auto;
}

.nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
}

.nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.hero {
  display: grid;
  background: var(--ink);
  color: #fff;
}

.hero-photo {
  order: -1;
}

.hero-copy {
  padding: clamp(1.5rem, 4vw, 3.5rem) var(--gutter);
  max-width: 40rem;
}

.hero-copy h1,
.hero-copy p {
  color: #fff;
}

.hero-copy p {
  font-size: 1.15rem;
  max-width: 36ch;
}

.squeegee {
  display: block;
  width: 7.5rem;
  height: 0.55rem;
  margin-bottom: 1.25rem;
  background: var(--orange);
  transform-origin: left center;
  animation: pull 0.7s ease-out both;
}

.actions {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.actions .btn {
  width: 100%;
}

.hero .btn {
  background: var(--orange);
  border-color: var(--orange);
  color: #1a0a00;
}

.hero .btn:hover,
.hero .btn:active {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.hero .btn.secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.hero .btn.secondary:hover {
  background: #fff;
  color: var(--ink);
}

.hero-photo {
  position: relative;
  background: #0e0a24 center / cover no-repeat;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 11rem;
  object-fit: cover;
  object-position: center 45%;
}

.sheet::before,
.sheet::after {
  content: "";
  position: absolute;
  width: 1.35rem;
  height: 1.35rem;
  border-color: var(--orange);
  border-style: solid;
  z-index: 1;
  pointer-events: none;
}

.sheet::before {
  top: 0.7rem;
  left: 0.7rem;
  border-width: 3px 0 0 3px;
}

.sheet::after {
  right: 0.7rem;
  bottom: 0.7rem;
  border-width: 0 3px 3px 0;
}

.block {
  padding: var(--space) var(--gutter);
}

.wrap {
  max-width: 72rem;
  margin-inline: auto;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.steps li {
  padding-top: 0.8rem;
  border-top: 3px solid var(--orange);
}

.steps h2 {
  margin-bottom: 0.25rem;
}

.steps p {
  margin-bottom: 0;
}

.split {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.split img {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--sheet);
}

.entries {
  display: grid;
  gap: 0;
}

.entry {
  display: grid;
  gap: 0.8rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.entry img {
  width: 100%;
  max-height: 14rem;
  object-fit: cover;
  background: var(--sheet);
}

.entry h2 {
  margin-bottom: 0.2rem;
}

.entry p {
  margin-bottom: 0;
}

.entry:hover h2,
.entry:active h2 {
  text-decoration: underline;
}

.logos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.logos li {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 0.6rem 0.8rem;
  max-width: none;
}

.logos img {
  display: block;
  width: auto;
  max-height: 4.2rem;
  max-width: 9.5rem;
}

.facts {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 1.5rem;
}

.facts div {
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-weight: 700;
  color: var(--ink);
}

.facts dd {
  margin: 0.15rem 0 0;
}

.note {
  background: var(--sheet);
  border-left: 6px solid var(--orange);
  padding: 0.9rem 1rem;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

.gallery-wide {
  grid-template-columns: 1fr;
}

.product {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 0.45rem;
  margin: 0;
  width: 100%;
}

.product img,
.gallery-wide .product img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 14rem;
  object-fit: contain;
  margin-inline: auto;
}

.product figcaption {
  font-size: 0.95rem;
  padding-top: 0.35rem;
  max-width: 16rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.filters button {
  flex: 1 1 calc(50% - 0.5rem);
  min-height: 48px;
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--ink);
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.labels li {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 0.6rem;
  flex: 1 1 calc(50% - 0.8rem);
  width: auto;
  max-width: calc(50% - 0.4rem);
}

.labels img {
  width: 100%;
  height: 6.5rem;
  object-fit: contain;
}

.labels span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.figure-row {
  display: grid;
  gap: 1rem;
}

.figure-row figure {
  margin: 0;
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 0.6rem;
}

.figure-row figcaption {
  margin-top: 0.45rem;
  max-width: var(--measure);
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.portrait {
  width: min(100%, 14rem);
  border: 1px solid var(--line);
  background: var(--sheet);
}

form {
  display: grid;
  gap: 0.9rem;
  max-width: 36rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--ink);
}

input,
select,
textarea {
  font: inherit;
  color: var(--text);
  background: var(--sheet);
  border: 2px solid var(--ink);
  border-radius: 0;
  min-height: 48px;
  padding: 0.55rem 0.7rem;
  width: 100%;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.field-error {
  font-weight: 400;
  color: #7a1c00;
}

form [aria-invalid="true"] {
  border-color: #7a1c00;
}

.summary {
  border: 2px solid #7a1c00;
  background: #fff4ef;
  padding: 0.8rem 1rem;
}

.summary a {
  color: #7a1c00;
}

.status {
  min-height: 1.5rem;
  font-weight: 700;
}

.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 2rem var(--gutter) 2.5rem;
}

.site-footer a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.app-tabs {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--sheet);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

.app-tabs a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 3.5rem;
  min-width: 44px;
  padding: 0.45rem 0.35rem;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--ink);
  background: var(--sheet);
  text-decoration: none;
  text-align: center;
}

.app-tabs a:nth-child(2n) {
  border-right: 0;
}

.app-tabs svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-tabs span {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.app-tabs a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 3px 0 var(--orange);
}

.app-tabs a:active {
  background: var(--ink-deep);
  color: #fff;
}

.site-footer .wrap {
  display: grid;
  gap: 0.4rem;
}

.site-footer p {
  margin: 0;
  max-width: 40rem;
  color: #fff;
}

.legal a,
.contact-grid a[data-contact] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.legal p,
.legal li {
  max-width: var(--measure);
}

.legal h2 {
  margin-top: 1.75rem;
}

.legal ul {
  margin-bottom: 1rem;
  padding-left: 1.2rem;
}

.legal li + li {
  margin-top: 0.45rem;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .entry {
    grid-template-columns: 16rem 1fr;
    align-items: center;
    gap: 1.25rem;
  }

  .entry img {
    height: 10rem;
    max-height: none;
  }

  .figure-row,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
  }

  .product {
    width: auto;
  }

  .product img,
  .gallery-wide .product img {
    width: auto;
    max-width: min(100%, 16rem);
    max-height: none;
  }

  .gallery-wide .product img {
    max-width: min(100%, 32rem);
  }

  .filters button {
    flex: 0 0 auto;
  }
}

@media (min-width: 900px) {
  .app-tabs {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  html {
    scroll-padding-bottom: 0;
  }

  .bar {
    padding-bottom: 0;
  }

  .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0.35rem;
  }

  .hero {
    grid-template-columns: minmax(20rem, 36rem) 1fr;
    min-height: 70dvh;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-photo {
    order: 0;
  }

  .actions {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .actions .btn {
    width: auto;
  }

  .hero-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .squeegee {
    animation: none;
  }
}

@keyframes pull {
  from {
    transform: scaleX(0.15);
  }
  to {
    transform: scaleX(1);
  }
}
