/* Gavry LLC — gavry.com
   Minimal, monochrome, cool. No warm tones. Zero client JS.
   Editorial masthead + labelled-record layout. */

/* Self-hosted Inter (Latin), weights 400 & 500. No third-party requests. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-500.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --rule: #111111;
  --border: #d8d8d8;
  --panel: #fafafa;

  --page: 820px;
  --label-col: 168px;
  --space: clamp(1.25rem, 4vw, 2.5rem);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Accessibility: skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 0.75rem;
  background: var(--text);
  color: var(--bg);
  z-index: 10;
}
.skip-link:focus {
  left: var(--space);
  top: var(--space);
}

/* Page container */
.page {
  max-width: var(--page);
  margin-inline: auto;
  padding: clamp(2rem, 7vh, 4rem) var(--space) var(--space);
}

/* Masthead + nav */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(2.5rem, 8vh, 4.5rem);
}

.wordmark {
  font-weight: 500;
  font-size: 1.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}
.site-nav a,
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}
.site-nav a:hover,
.footer-nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  margin-bottom: clamp(2.5rem, 9vh, 5rem);
}

.headline {
  margin: 0 0 1rem;
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 18ch;
}

.subhead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.5;
  max-width: 52ch;
}

.lead {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 60ch;
}

/* Labelled records: label column + content */
.record {
  display: grid;
  grid-template-columns: var(--label-col) 1fr;
  gap: clamp(1.5rem, 5vw, 3rem);
  padding: clamp(1.75rem, 5vh, 2.75rem) 0;
  border-top: 1px solid var(--border);
}

.record-label {
  margin: 0;
  padding-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.record-body {
  min-width: 0;
}
.record-body > :first-child {
  margin-top: 0;
}
.record-body > :last-child {
  margin-bottom: 0;
}

/* Platforms */
.platform-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.platform-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.platform-name {
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}
a.platform-name {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--border);
}
a.platform-name:hover {
  text-decoration-color: var(--text);
}

.platform-domain {
  font-size: 0.875rem;
  color: var(--muted);
}

.platform-desc {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

/* Trust & Safety: distinct, quieter bordered block — present, not dominant */
.trust-block {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--panel);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.trust-block p {
  margin: 0 0 0.85rem;
  max-width: 66ch;
}
.trust-block p:last-child {
  margin-bottom: 0;
}
.trust-contact {
  margin-top: 1rem !important;
  color: var(--muted);
}

.record-body p {
  max-width: 62ch;
}
.muted-note {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Contact */
.contact-lines {
  margin: 0;
}

.contact-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--border);
}
.contact-link:hover {
  text-decoration-color: var(--text);
}

/* Footer */
.site-footer {
  margin-top: clamp(2.5rem, 8vh, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.site-footer p {
  margin: 0;
}
.footer-nav {
  margin-top: 0.6rem;
}
.footer-nav a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}

/* Visible focus states everywhere */
a:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 1px;
}

/* Stack the label rail on narrow screens */
@media (max-width: 640px) {
  .record {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .record-label {
    padding-top: 0;
  }
}

/* Optional monochrome dark mode (cool/neutral only) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --text: #f2f2f2;
    --muted: #9a9a9a;
    --rule: #f2f2f2;
    --border: #2a2a2a;
    --panel: #141414;
  }
  a:focus-visible {
    outline-color: var(--text);
  }
}

/* Respect reduced motion (no essential motion exists, but keep the contract) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
