:root {
  color-scheme: light;
  --background: hsl(40 20% 99%);
  --foreground: hsl(0 0% 7%);
  --muted-foreground: hsl(0 0% 45%);
  --border: hsl(0 0% 90%);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--foreground);
  font-family:
    "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
address,
dl,
dd,
figure {
  margin: 0;
  font: inherit;
}

address {
  font-style: normal;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.page-shell {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  padding-top: max(96px, env(safe-area-inset-top));
  padding-right: max(24px, env(safe-area-inset-right));
  padding-bottom: max(64px, env(safe-area-inset-bottom));
  padding-left: max(24px, env(safe-area-inset-left));
}

.site-header {
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.55;
}

.studio-description {
  margin-top: 2px;
}

.founder {
  margin-top: 0;
  color: var(--muted-foreground);
}

.introduction {
  max-width: 620px;
  margin-bottom: 64px;
  font-size: 16px;
  line-height: 1.55;
}

.introduction > * + *,
.prose > * + * {
  margin-top: 12px;
}

.inline-link,
.site-footer a,
.brand-link {
  text-decoration-line: underline;
  text-decoration-color: rgb(115 115 115 / 50%);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}

.inline-link:hover,
.site-footer a:hover,
.brand-link:hover {
  text-decoration-color: var(--foreground);
}

section {
  margin-bottom: 64px;
}

.section-label {
  margin-bottom: 4px;
  color: var(--muted-foreground);
}

section h2 {
  margin-bottom: 16px;
  font-size: 16px;
}

.prose {
  max-width: 620px;
}

.product-feature {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: hsl(40 18% 98%);
}

.product-image-link {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: hsl(44 24% 94%);
}

.product-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  padding: 48px 56px;
  object-fit: contain;
  object-position: center;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-image-link:hover .product-image {
  transform: scale(1.012);
}

.product-copy {
  padding: 24px;
}

.product-type {
  margin-bottom: 4px;
  color: var(--muted-foreground);
}

.product-copy h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.product-copy h3 a {
  text-decoration: none;
}

.product-copy h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.product-facts dt {
  color: var(--muted-foreground);
  font-size: 12px;
}

.product-facts dd {
  margin-top: 2px;
}

.product-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 24px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 5px;
  background: var(--foreground);
  color: var(--background);
  text-decoration: none;
  transition:
    background-color 150ms ease,
    transform 150ms ease;
}

.button-link:hover {
  background: hsl(0 0% 20%);
}

.button-link:active {
  transform: scale(0.98);
}

.text-link {
  text-decoration: underline;
  text-decoration-color: rgb(115 115 115 / 50%);
  text-underline-offset: 3px;
}

.rows {
  display: block;
  border-top: 1px solid var(--border);
}

.row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
}

.row-label {
  color: var(--muted-foreground);
}

.details {
  border-top: 1px solid var(--border);
}

.detail {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
}

.detail dt {
  color: var(--muted-foreground);
}

.detail dd {
  min-width: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.document-header {
  margin-bottom: 48px;
}

.document-header h1 {
  margin-top: 28px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.document {
  max-width: 620px;
  margin-bottom: 64px;
}

.document section {
  margin-bottom: 36px;
}

.document h2 {
  margin-bottom: 10px;
  font-size: 16px;
}

.document ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.document li + li {
  margin-top: 6px;
}

.product-hero {
  margin-bottom: 48px;
}

.product-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  padding: 56px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: hsl(44 24% 94%);
}

.product-page-intro {
  max-width: 620px;
  margin-bottom: 48px;
  font-size: 16px;
  line-height: 1.55;
}

.product-page-intro > * + * {
  margin-top: 12px;
}

.product-box-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 20px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: hsl(40 18% 98%);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.contact-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:nth-child(odd) {
  padding-right: 18px;
}

.contact-item:nth-child(even) {
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

.contact-item dt {
  margin-bottom: 4px;
  color: var(--muted-foreground);
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger > * {
  opacity: 0;
  animation: 400ms forwards fade-in-down;
}

.stagger > :nth-child(1) {
  animation-delay: 0ms;
}

.stagger > :nth-child(2) {
  animation-delay: 60ms;
}

.stagger > :nth-child(3) {
  animation-delay: 120ms;
}

.stagger > :nth-child(4) {
  animation-delay: 180ms;
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  .page-shell {
    padding-top: max(64px, env(safe-area-inset-top));
    padding-bottom: max(48px, env(safe-area-inset-bottom));
  }

  .introduction,
  section {
    margin-bottom: 48px;
  }

  .row {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
  }

  .product-copy {
    padding: 20px;
  }

  .product-image,
  .product-hero img {
    padding: 24px;
  }
}

@media (pointer: coarse), (max-width: 1024px) {
  .button-link,
  .product-actions .text-link,
  .product-copy h3 a,
  .brand-link,
  .site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .site-footer a {
    min-width: 44px;
    padding-inline: 4px;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .site-footer nav {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 0 8px;
  }

  .detail {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

  .product-facts {
    gap: 10px;
  }

  .contact-item:nth-child(odd),
  .contact-item:nth-child(even) {
    padding-inline: 0;
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stagger > * {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
