/* Hallmark · macrostructure: Split Studio · theme: existing platform · genre: modern-minimal
 * tone: austere · nav: N9 · footer: Ft2 · enrichment: supplied full poster · motion: none
 * pre-emit critique: P4 H4 E4 S5 R5 V4 */
@import url('./tokens.css');

html, body { overflow-x: clip; }
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-inline: var(--portal-space-4);
  background: var(--portal-paper);
  color: var(--portal-ink);
}
.site-header, .portal, .site-footer {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--portal-space-3);
  padding-block: var(--portal-space-4);
}
.site-header a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--portal-ink);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.wordmark { font-size: var(--portal-text-link); font-weight: 700; }
.directory-link { font-size: var(--portal-text-small); }
.portal { flex: 1; padding-block: var(--portal-space-4) var(--portal-space-6); }
.portal-intro { margin-block-end: var(--portal-space-6); }
h1, h2 { min-width: 0; overflow-wrap: anywhere; font-style: normal; font-weight: 700; }
h1 { font-size: var(--portal-text-display); line-height: 1.15; letter-spacing: -0.035em; }
.portal-intro p, .product-description {
  margin-block-start: var(--portal-space-3);
  font-size: var(--portal-text-body);
  color: var(--portal-muted);
  line-height: 1.65;
}
.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--portal-space-5); }
.product-copy { min-width: 0; }
h2 { font-size: var(--portal-text-heading); line-height: 1.3; letter-spacing: -0.02em; }
.platform-list { list-style: none; margin-block-start: var(--portal-space-5); }
.platform-list li { border-block-end: 1px solid var(--portal-rule); }
.platform-list li:first-child { border-block-start: 1px solid var(--portal-rule); }
.platform-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--portal-space-3);
  min-height: 68px;
  padding: var(--portal-space-3) var(--portal-space-2);
  color: var(--portal-ink);
  font-size: var(--portal-text-link);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
.platform-list a:hover { background: var(--surface-3); }
.platform-list a:active { background: var(--portal-highlight); color: var(--on-accent); }
a:focus-visible { outline: 3px solid var(--portal-ink); outline-offset: 3px; border-radius: 2px; }
.site-header a:hover, .product-poster a:hover, .site-footer a:hover { text-decoration: underline; }
.site-header a:active, .product-poster a:active, .site-footer a:active { background: var(--surface-3); }
.product-poster { min-width: 0; width: 100%; max-width: 400px; margin: 0; }
.product-poster img { display: block; width: 100%; height: auto; }
.product-poster figcaption { margin-block-start: var(--portal-space-1); }
.product-poster a, .site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--portal-text-small);
  color: var(--portal-muted);
  white-space: nowrap;
  text-underline-offset: 3px;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--portal-space-1) var(--portal-space-4);
  padding-block: var(--portal-space-4);
  border-block-start: 1px solid var(--portal-rule);
  color: var(--portal-muted);
  font-size: var(--portal-text-small);
}
.site-footer a { text-decoration: none; }
@media (min-width: 60rem) {
  body { padding-inline: var(--portal-space-6); }
  .portal { padding-block-start: var(--portal-space-5); }
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: var(--portal-space-7); }
  .product-copy { padding-block-start: var(--portal-space-3); }
}
