:root {
  color-scheme: light;
  --background: #f5f6f3;
  --surface: rgba(252, 253, 251, 0.9);
  --text: #111719;
  --muted: #536064;
  --blue: #1769e0;
  --blue-dark: #0b4eac;
  --line: rgba(17, 23, 25, 0.14);
  --content: 1180px;
}

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

html {
  min-width: 320px;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--background);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid rgba(23, 105, 224, 0.42);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: 0.65rem 1rem;
  transform: translateY(-200%);
  border-radius: 999px;
  color: #fff;
  background: var(--blue-dark);
}

.skip-link:focus {
  transform: translateY(0);
}

.cover {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
  background-image:
    linear-gradient(180deg, rgba(250, 251, 249, 0.38), rgba(245, 247, 245, 0.16)),
    url('/assets/poniso-background.webp');
  background-position: center;
  background-size: cover;
}

.cover::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: radial-gradient(circle at center, rgba(248, 250, 249, 0.68) 0, rgba(248, 250, 249, 0.2) 38%, transparent 68%);
}

.site-header {
  position: relative;
  display: grid;
  width: min(calc(100% - 4rem), 1500px);
  min-height: 8rem;
  margin-inline: auto;
  padding: 1.5rem 0;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.header-nav a,
.header-status {
  color: #243035;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-nav a:hover,
.header-status:hover {
  color: var(--blue-dark);
}

.header-brand {
  display: grid;
  min-width: 9rem;
  min-height: 4.25rem;
  place-items: center;
  text-decoration: none;
}

.logo-frame {
  display: grid;
  width: clamp(6.5rem, 10vw, 9rem);
  height: 4.5rem;
  place-items: center;
}

.logo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-frame.is-missing {
  display: none;
}

.logo-fallback {
  display: none;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 790;
  letter-spacing: 0.28em;
}

.logo-fallback.is-visible {
  display: block;
}

.header-status {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 0.7rem;
}

.header-status span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 105, 224, 0.11);
}

.hero {
  display: flex;
  width: min(calc(100% - 2rem), 1100px);
  margin-inline: auto;
  padding: clamp(4rem, 12vh, 8rem) 0;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--blue-dark);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

.hero h1 {
  margin: 0.85rem 0 1.4rem;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 320;
  letter-spacing: 0.07em;
  line-height: 0.95;
  white-space: nowrap;
  text-transform: uppercase;
}

.intro {
  max-width: 700px;
  margin: 0;
  color: #384448;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.hero-link {
  margin-top: 2.3rem;
  padding: 0.9rem 1.3rem;
  border-bottom: 1px solid var(--text);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-link:hover {
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}

.scroll-cue {
  display: flex;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  align-items: center;
  gap: 0.75rem;
  color: #475256;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.scroll-cue span {
  width: 2.5rem;
  height: 1px;
  background: currentColor;
}

.products {
  position: relative;
  padding: clamp(5.5rem, 10vw, 9rem) 1rem;
  background:
    linear-gradient(rgba(248, 249, 246, 0.96), rgba(248, 249, 246, 0.96)),
    url('/assets/poniso-background.webp') center bottom / cover;
}

.products-inner {
  width: min(100%, var(--content));
  margin-inline: auto;
}

.section-heading {
  display: grid;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  align-items: end;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 4rem;
}

.section-heading h2 {
  margin: 0.8rem 0 0;
  font-size: clamp(2.5rem, 5.7vw, 5.2rem);
  font-weight: 360;
  letter-spacing: -0.055em;
  line-height: 1;
}

.section-intro {
  max-width: 400px;
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.product-grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  list-style: none;
}

.product-card {
  position: relative;
  min-width: 0;
  min-height: 20rem;
  padding: 1.7rem clamp(1.2rem, 2.4vw, 2rem) 2rem;
  border-right: 1px solid var(--line);
}

.product-card:first-child {
  border-left: 1px solid var(--line);
}

.product-number {
  margin: 0 0 clamp(4rem, 7vw, 6rem);
  color: var(--blue-dark);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.product-card h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 630;
  letter-spacing: -0.025em;
}

.product-card > p:not(.product-number) {
  margin: 0.65rem 0 2rem;
  color: var(--muted);
}

.badge {
  position: absolute;
  bottom: 1.8rem;
  left: clamp(1.2rem, 2.4vw, 2rem);
  color: var(--blue-dark);
  font-size: 0.63rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

footer {
  display: flex;
  width: 100%;
  padding: 1.75rem max(1rem, calc((100% - var(--content)) / 2)) 2.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #f8f9f6;
  font-size: 0.82rem;
}

footer p {
  margin: 0;
}

footer nav {
  display: flex;
  gap: 1.5rem;
}

footer a {
  text-decoration: none;
}

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

.legal-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background:
    linear-gradient(rgba(248, 249, 247, 0.9), rgba(248, 249, 247, 0.97)),
    url('/assets/poniso-background.webp') center / cover fixed;
}

.legal-header {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
  padding: 2rem 0;
}

.wordmark-link {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 780;
  letter-spacing: 0.22em;
  text-decoration: none;
}

.legal-main {
  width: min(calc(100% - 2rem), 760px);
  margin-block: auto;
  padding: 4rem 0 7rem;
}

.legal-main h1 {
  margin: 0.8rem 0 1.25rem;
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  font-weight: 430;
  letter-spacing: -0.055em;
  line-height: 1;
}

.legal-lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.legal-main section {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.legal-main h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.legal-main section p {
  margin: 0;
  color: var(--muted);
}

.legal-main section a {
  color: var(--blue-dark);
}

@media (max-width: 900px) {
  .site-header {
    width: min(calc(100% - 2rem), 1500px);
  }

  .header-nav {
    gap: 1rem;
  }

  .header-nav a:first-child {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card:nth-child(3) {
    border-left: 1px solid var(--line);
  }

  .product-card:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .cover {
    background-position: 62% center;
  }

  .site-header {
    min-height: 6.5rem;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
  }

  .header-nav a,
  .header-status {
    font-size: 0.6rem;
    letter-spacing: 0.11em;
  }

  .header-status {
    width: 0.65rem;
    height: 0.65rem;
    font-size: 0;
  }

  .header-brand {
    min-width: 6.5rem;
  }

  .logo-frame {
    width: 6.5rem;
    height: 3.8rem;
  }

  .hero {
    padding-block: 3rem 5rem;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 15vw, 4.25rem);
    letter-spacing: 0.035em;
    white-space: normal;
  }

  .intro {
    max-width: 33rem;
    padding-inline: 0.3rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card,
  .product-card:first-child,
  .product-card:nth-child(3) {
    min-height: 15rem;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .product-card:first-child {
    border-top: 1px solid var(--line);
  }

  .product-number {
    margin-bottom: 2.5rem;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
