/* Hallmark · macrostructure: Long Document · tone: utilitarian · anchor hue: 40 (coral)
 * genre: modern-minimal · theme: Coral · nav: N9 edge-aligned · footer: Ft2 inline line · enrichment: none
 */

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

html, body { overflow-x: clip; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-display); font-style: normal; margin: 0; }
p, dl, dd, address { margin: 0; }
address { font-style: normal; }

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

/* Links */
a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--color-rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color var(--dur-fast) var(--ease-out);
}
a:hover { text-decoration-color: var(--color-accent); }
a:active { text-decoration-color: var(--color-ink); }
a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Nav · N9 edge-aligned */
.nav-edge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding-block: var(--space-lg);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--color-muted); font-weight: 500; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.pill:hover { background: var(--color-paper-2); border-color: var(--color-muted); }
.pill:active { transform: translateY(1px); }
.pill:focus-visible { border-radius: var(--radius-pill); }

/* Document column */
.doc {
  max-width: 46rem;
  padding-block: var(--space-3xl) var(--space-4xl);
}

.intro h1 {
  font-size: var(--text-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 17ch;
  overflow-wrap: anywhere;
  min-width: 0;
}

.lede {
  margin-top: var(--space-lg);
  max-width: var(--measure);
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-muted);
}

.block { margin-top: var(--space-4xl); }

.block h2 {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  padding-bottom: var(--space-md);
  border-bottom: var(--rule-hair) solid var(--color-ink);
}

/* What we do: definition rows */
.lines > div {
  display: grid;
  gap: var(--space-2xs) var(--space-xl);
  padding-block: var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.lines dt { font-weight: 600; }
.lines dd { color: var(--color-muted); max-width: var(--measure); }

/* Products */
.products { list-style: none; margin: 0; padding: 0; }
.product {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: var(--space-xs) var(--space-lg);
  align-items: center;
  padding-block: var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.product-mark {
  width: 3.5rem;
  height: 3.5rem;
  padding: var(--space-2xs);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-sm);
  background: var(--color-paper-2);
  object-fit: contain;
}
.product-mark--full { padding: 0; object-fit: cover; }
.product h3 { font-size: var(--text-base); font-weight: 600; letter-spacing: -0.01em; }
.product p { color: var(--color-muted); font-size: var(--text-sm); }
.product .domain {
  grid-column: 2;
  justify-self: start;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  white-space: nowrap;
}

/* Company record · F3 spec sheet */
.record { width: 100%; border-collapse: collapse; }
.record th, .record td {
  text-align: left;
  vertical-align: top;
  padding-block: var(--space-md);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.record th {
  width: 11rem;
  padding-right: var(--space-lg);
  font-weight: 400;
  color: var(--color-muted);
}

/* Contact */
.contact-line {
  margin-top: var(--space-lg);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.4vw + 0.75rem, 2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.contact-line a { text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
.contact-line a:hover { text-decoration-color: var(--color-ink); }
.contact-note { margin-top: var(--space-md); color: var(--color-muted); max-width: var(--measure); }

/* Footer · Ft2 */
.foot-line {
  padding-block: var(--space-lg) var(--space-2xl);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

@media (min-width: 40rem) {
  .lines > div { grid-template-columns: 12rem minmax(0, 1fr); }
  .product { grid-template-columns: 3.5rem minmax(0, 1fr) auto; }
  .product .domain { grid-column: 3; justify-self: end; }
}

@media (max-width: 30rem) {
  .record th, .record td { display: block; width: auto; border-bottom: 0; padding: 0; }
  .record th { padding-top: var(--space-md); }
  .record td { padding-bottom: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .pill:active { transform: none; }
}
