@font-face { font-family: "Inter"; src: url("fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #0f0f0e;
  --bg-2: #171716;
  --bg-3: #1e1e1c;
  --line: #2a2a27;
  --text: #f3f1ec;
  --muted: #9d998f;
  --max: 1120px;
  --head: "Instrument Sans", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); }
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo img { height: 18px; width: auto; }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

/* Type */
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: -.035em; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 88px); line-height: .98; max-width: 13ch; }
h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.05; }
h3 { font-size: 26px; line-height: 1.15; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 8px;
  font: 600 15px/1.2 var(--sans); text-decoration: none; border: 1px solid var(--line); color: var(--text);
  transition: background .15s, border-color .15s;
}
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { background: #fff; border-color: #fff; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.note { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Hero */
.hero { padding: 88px 0 96px; }
.hero-lead { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: end; margin-top: 28px; }
.hero-lead p { color: var(--muted); font-size: 19px; margin: 0 0 24px; }

/* Sections */
section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.section-head p { color: var(--muted); max-width: 40ch; margin: 0; }

/* Tools */
.tools { display: grid; gap: 16px; }
.tool { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); overflow: hidden; }
.tool-info { padding: 36px 36px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 48px; }
.tool-info > div { display: flex; flex-direction: column; }
.tool-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.tool-brand img { height: 28px; width: auto; }
.tool-brand span { font: 650 22px/1 var(--sans); letter-spacing: -.02em; }
.tool-info p { color: var(--muted); margin: 0 0 24px; }
.tool-info .btn { align-self: flex-start; margin-top: auto; }
.tool-shot { padding: 0 36px; }
.tool-shot img { width: 100%; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; aspect-ratio: 2000 / 1000; object-fit: cover; object-position: top; }
.tool-next { display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px dashed var(--line); border-radius: 14px; padding: 24px 32px; color: var(--muted); }
.tool-next strong { color: var(--text); font-weight: 600; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.prose p { color: var(--muted); font-size: 18px; margin: 0 0 16px; max-width: 34em; }
.prose p:last-child { color: var(--text); }

/* Community */
.community-box { border-radius: 18px; background: var(--bg-3); border: 1px solid var(--line); padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.community-box p { color: var(--muted); margin: 18px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14.5px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Legal pages */
.legal { padding: 56px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(38px, 5vw, 52px); max-width: none; margin-bottom: 20px; }
.legal h2 { font: 600 19px/1.3 var(--sans); letter-spacing: 0; margin: 40px 0 10px; }
.legal p, .legal li, .legal address { color: #cfcbc2; }
.legal address { font-style: normal; }
.legal a { color: var(--text); }
.legal ul { padding-left: 20px; }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero-lead { grid-template-columns: 1fr; gap: 0; }
  section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .tool-info { grid-template-columns: 1fr; padding: 26px 22px 24px; }
  .tool-shot { padding: 0 22px; }
  .tool-shot img { aspect-ratio: 2000 / 1291; }
  .tool-next { flex-direction: column; align-items: flex-start; padding: 22px 26px; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .community-box { grid-template-columns: 1fr; padding: 32px 26px; gap: 24px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 18px; font-size: 14px; }
  .nav .hide-sm { display: none; }
}
