/* Product pages (noisefactor.io/<product>). Generated by
   scripts/generate-product-pages.mjs; every page shares one outline, so
   style the outline here and never per product. */

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--hf-font-family);
  color: var(--hf-text-normal);
  background: var(--hf-bg-base);
}

a {
  color: var(--hf-link-color);
  text-decoration: none;
}

a:hover {
  color: var(--hf-link-hover);
  text-decoration: underline;
}

.product-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  line-height: 1.6;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--hf-text-dim);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--hf-text-muted);
}

/* Header block: mark, name, summary, actions, facts */
.product-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.25rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--hf-border-subtle);
}

.product-mark {
  width: 64px;
  height: 64px;
  margin-top: 0.35rem;
}

.product-mark-mask {
  background-color: var(--hf-accent);
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
}

img.product-mark {
  object-fit: contain;
}

.product-kind {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hf-accent);
}

.product-head h1 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.15;
  color: var(--hf-text-bright);
}

.product-summary {
  margin: 0.75rem 0 1.25rem;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--hf-text-normal);
  max-width: 40em;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.product-action {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius);
  color: var(--hf-text-bright);
  font-weight: 600;
}

.product-action:hover {
  border-color: var(--hf-accent);
  color: var(--hf-text-bright);
  text-decoration: none;
}

.product-action-primary {
  background: var(--hf-accent);
  border-color: var(--hf-accent);
  color: var(--hf-color-1);
}

.product-action-primary:hover {
  background: var(--hf-accent-hover);
  color: var(--hf-color-1);
}

.product-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-facts li {
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--hf-border-subtle);
  border-radius: var(--hf-radius-pill);
  font-size: 0.8rem;
  color: var(--hf-text-dim);
}

.product-shot {
  margin: 2rem 0 0;
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--hf-radius-lg);
  border: 1px solid var(--hf-border-subtle);
}

.product-shot figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--hf-text-dim);
}

/* Outline sections */
.product-section {
  margin-top: 3rem;
}

.product-section h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: var(--hf-text-bright);
}

.product-section p {
  margin: 0 0 1rem;
  max-width: 44em;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--hf-accent);
}

.feature-list p {
  margin: 0;
  color: var(--hf-text-normal);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  overflow-wrap: anywhere;
}

.spec-table th,
.spec-table td {
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--hf-border-subtle);
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 12rem;
  font-weight: 600;
  color: var(--hf-text-dim);
}

.start-steps {
  margin: 0;
  padding-left: 1.5rem;
}

.start-steps li {
  margin-bottom: 0.5rem;
}

code {
  font-family: var(--hf-font-family-mono);
  font-size: 0.9em;
  padding: 0.05em 0.3em;
  border-radius: var(--hf-radius-sm);
  background: var(--hf-bg-muted);
  overflow-wrap: anywhere;
}

.resource-list {
  margin: 0;
  padding-left: 1.25rem;
}

.resource-list li {
  margin-bottom: 0.4rem;
}

.faq dt {
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--hf-text-bright);
}

.faq dd {
  margin: 0.35rem 0 0;
  max-width: 44em;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-list a {
  display: block;
  height: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--hf-border-subtle);
  border-radius: var(--hf-radius);
  color: var(--hf-text-normal);
}

.related-list a:hover {
  border-color: var(--hf-accent);
  text-decoration: none;
}

.related-list strong {
  display: block;
  color: var(--hf-text-bright);
}

.related-list span {
  font-size: 0.9rem;
  color: var(--hf-text-dim);
}

.product-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hf-border-subtle);
  font-size: 0.85rem;
  color: var(--hf-text-dim);
}

@media (max-width: 700px) {
  .product-page {
    padding: 1.5rem 1rem 3rem;
  }

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

  .product-mark {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
  }

  .product-head h1 {
    font-size: 2rem;
  }

  .feature-list,
  .related-list {
    grid-template-columns: 1fr;
  }

  .spec-table th {
    width: 8rem;
  }
}
