/* Synapse website - matches the Maku brand (maku.au): warm ink, paper text,
   clay + amber accents, Geist, square corners. Self-hosted fonts only. */

@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0a0907;
  --ink-2: #111010;
  --ink-3: #050504;
  --paper: #f2ece0;
  --paper-dim: #a8a092;
  --line: #2b2721;
  --clay: #e44f2c;
  --amber: #ffb000;
  --max: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Geist, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.brand img {
  width: 42px;
  height: 42px;
}
.brand small {
  font-weight: 400;
  font-size: 13px;
  color: var(--paper-dim);
  letter-spacing: 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}
.nav a {
  text-decoration: none;
  color: rgba(242, 236, 224, 0.7);
  transition: color 0.15s;
}
.nav a:hover {
  color: var(--paper);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--amber);
  color: var(--ink);
}
.btn-primary:hover {
  background: #ffc233;
}
.btn-outline {
  border-color: var(--clay);
  color: var(--clay);
}
.btn-outline:hover {
  background: var(--clay);
  color: var(--ink);
}
.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}
.btn .arrow {
  transition: transform 0.15s;
}
.btn:hover .arrow {
  transform: translateX(3px);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(64px, 12vw, 140px) clamp(56px, 9vw, 110px);
}
/* Clay glow burst with a dark fade behind the headline, as on maku.au */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero::before {
  background:
    linear-gradient(90deg, rgba(3, 3, 2, 0.92) 0%, rgba(3, 3, 2, 0.55) 35%, rgba(0, 0, 0, 0) 65%),
    radial-gradient(60% 75% at 92% 100%, rgba(228, 79, 44, 0.2), rgba(228, 79, 44, 0.06) 45%, rgba(0, 0, 0, 0) 72%),
    radial-gradient(28% 38% at 96% 104%, rgba(255, 176, 0, 0.08), rgba(0, 0, 0, 0) 70%);
}
/* Fine film grain */
.hero::after {
  background: url('noise.svg');
  opacity: 0.035;
}
.eyebrow {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--paper-dim);
}
.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero h1 em {
  font-style: normal;
  color: var(--clay);
}
.lede {
  max-width: 560px;
  margin: 28px 0 36px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: rgba(242, 236, 224, 0.82);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.fine {
  margin-top: 16px;
  font-size: 13px;
  color: var(--paper-dim);
}

/* Sections */
.section {
  border-top: 1px solid var(--line);
  padding-block: clamp(56px, 8vw, 96px);
}
.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 44px;
}
.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.section-head p {
  margin: 0;
  max-width: 620px;
  color: var(--paper-dim);
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.feature {
  padding: 28px 28px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature .icon {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  color: var(--clay);
}
@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  font-size: 15px;
  color: var(--paper-dim);
}

/* Subtle warm band (product section): ink with a faint red cast */
.band {
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(228, 79, 44, 0.07), rgba(0, 0, 0, 0) 70%),
    #120d0b;
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(40px, 6vw, 96px);
}
.about-intro h2 {
  margin: 0 0 20px;
}
.about-intro p {
  margin: 0;
  max-width: 460px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: rgba(242, 236, 224, 0.82);
}
.about-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 40px;
}
.about-points > div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.about-points h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.about-points p {
  margin: 0;
  font-size: 15px;
  color: var(--paper-dim);
}
@media (max-width: 900px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .about-points {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Download */
.downloads {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
}
.download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.download:last-child {
  border-bottom: 0;
}
.download .os {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.os-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: var(--paper);
}
.download.soon .os-icon {
  color: var(--paper-dim);
}
.download h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}
.download .meta {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--paper-dim);
}
.download.soon h3,
.download.soon .meta {
  color: var(--paper-dim);
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--paper-dim);
}
.checksums {
  margin-top: 28px;
  font-size: 14px;
  color: var(--paper-dim);
}
.checksums summary {
  cursor: pointer;
  color: var(--paper);
}
.checksums code {
  display: block;
  margin-top: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  background: var(--ink-2);
  border: 1px solid var(--line);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre;
}
.notes {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 15px;
  color: var(--paper-dim);
}
.notes li::before {
  content: '- ';
  color: var(--clay);
}

/* Privacy strip */
.privacy-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 40px;
}
.privacy-points .icon {
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  color: var(--clay);
}
.privacy-points h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 500;
}
.privacy-points p {
  margin: 0;
  font-size: 15px;
  color: var(--paper-dim);
}

/* Long-form (privacy page) */
.prose {
  max-width: 720px;
  padding-block: clamp(56px, 9vw, 100px);
}
.prose h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.prose .updated {
  margin: 0 0 40px;
  font-size: 14px;
  color: var(--paper-dim);
}
.prose h2 {
  margin: 44px 0 12px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.prose p,
.prose li {
  color: rgba(242, 236, 224, 0.82);
}
.prose ul {
  padding-left: 20px;
}
.prose li {
  margin-bottom: 6px;
}
.prose a {
  color: var(--amber);
}
.prose strong {
  color: var(--paper);
  font-weight: 500;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 36px;
  font-size: 14px;
  color: var(--paper-dim);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-footer nav {
  display: flex;
  gap: 24px;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}
.maku-logo {
  display: inline-flex;
  opacity: 0.9;
  transition: opacity 0.15s;
}
.maku-logo:hover {
  opacity: 1;
}
.maku-logo img {
  display: block;
  width: auto;
  height: 28px;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--paper);
}

@media (max-width: 640px) {
  .nav .hide-sm {
    display: none;
  }
  .nav {
    gap: 18px;
  }
}
/* Phones: keep the header on one line without horizontal scrolling */
@media (max-width: 480px) {
  .brand {
    font-size: 28px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .brand small,
  .nav a:not(.btn) {
    display: none;
  }
}
@media (max-width: 360px) {
  .site-header .wrap {
    gap: 12px;
  }
  .brand {
    gap: 8px;
    font-size: 24px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .nav .btn-sm {
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .btn .arrow {
    transition: none;
  }
}
