/* Public pages share tokens and the shell frame with the apps (tokens.css and
   shell.css load first from the shared bundle); this file styles only content. */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--app-surface);
  color: var(--app-text);
  font-family: var(--app-font);
  line-height: 1.5;
}

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

/* Product cards are whole-card links that keep their own text colors. */
.site-main a:not(.product) {
  color: var(--app-accent-ink);
  text-underline-offset: 4px;
}

.site-main a:hover {
  text-decoration-thickness: 2px;
}

.site-main a:focus-visible {
  outline: 3px solid var(--app-accent-ink);
  outline-offset: 5px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  padding: 12px;
  background: var(--app-surface);
  z-index: 1;
}

.skip-link:focus {
  top: 12px;
}

.site-main {
  max-width: 1392px;
  margin: 0 auto;
  padding: 64px 64px 48px;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 5.25vw, 4.75rem);
  line-height: 1.06;
  letter-spacing: -.055em;
  font-weight: 700;
}

.lead {
  margin: 0;
  color: var(--app-muted);
  font-size: 1.5rem;
  line-height: 1.45;
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 48px;
  margin-bottom: 52px;
}

.home-intro h1 span {
  display: block;
}

.home-intro .lead {
  max-width: 640px;
}

.studio-note {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  justify-self: end;
  margin-right: 40px;
}

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 18px;
  color: var(--app-text);
  text-decoration: none;
  box-shadow: 0 12px 32px #172d2608;
}

.product:hover {
  border-color: #94bdb2;
}

.product-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(210px, 18.25vw, 264px);
  background: #f1f8f5;
}

.product-retro .product-art {
  background: #f5f2fb;
}

.product-art img {
  width: 420px;
  max-width: 90%;
  max-height: calc(100% - 24px);
  object-fit: contain;
}

.product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 34px 30px;
}

.product h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.product p {
  flex: 1;
  margin: 0;
  color: var(--app-muted);
  font-size: 1.125rem;
}

.product-action {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  color: var(--app-accent-ink);
  font-size: 1.125rem;
  font-weight: 600;
}

.product-action > span[aria-hidden] {
  font-size: 1.5rem;
  line-height: 1;
}

.product:hover .product-action-label {
  text-decoration: underline;
}

.contact-page, .policy {
  max-width: 720px;
  margin: 0 auto;
}

.policy h1, .contact-page h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -.035em;
}

.contact-page .lead {
  font-size: 1.125rem;
}

.account-note {
  margin-top: 48px;
}

.account-note h2, .policy h2 {
  margin: 36px 0 12px;
  font-size: 1.2rem;
  letter-spacing: -.02em;
}

.account-note p, .policy p, .policy li {
  color: var(--app-muted);
}

.contact-address {
  margin-top: 28px;
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  overflow-wrap: anywhere;
}

.policy li {
  margin: 12px 0;
}

.policy ul {
  padding-left: 24px;
}

.policy-date {
  margin-bottom: 28px;
  color: var(--app-muted);
  font-size: .85rem;
}

.policy code {
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .site-main {
    padding: 48px 40px 40px;
  }

  .home-intro {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 24px;
  }

  .studio-note {
    margin-right: 20px;
  }

  .lead {
    font-size: 1.25rem;
  }

  .product-art {
    height: 210px;
  }

  .product-copy {
    padding: 24px;
  }

  .product h2 {
    font-size: 1.5rem;
  }

  .product p, .product-action {
    font-size: 1rem;
  }
}

@media (max-width: 700px) {
  .site-main {
    padding: 32px 24px 32px;
  }

  .home-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 32px;
  }

  .home-intro h1 {
    font-size: clamp(1.8rem, 7.1vw, 3rem);
    margin-bottom: 16px;
  }

  .lead {
    font-size: 1rem;
  }

  .studio-note {
    display: none;
  }

  .products {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .product {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    border-radius: 14px;
  }

  .product-art {
    height: 100%;
  }

  .product-art img {
    max-width: 100%;
  }

  .product-copy {
    padding: 18px 16px;
  }

  .product h2 {
    font-size: 1.2rem;
  }

  .product p {
    font-size: .875rem;
  }

  .product-action {
    gap: 8px;
    margin-top: 16px;
    font-size: .875rem;
  }
}

@media (max-width: 380px) {
  .site-main {
    padding-right: 16px;
    padding-left: 16px;
  }

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