@font-face {
  font-family: "Sora";
  src: url("./fonts/sora-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("./fonts/sora-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("./fonts/sora-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("./fonts/sora-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("./fonts/fraunces-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("./fonts/fraunces-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fafaf8;
  --bg-elevated: #ffffff;
  --text: #141414;
  --muted: #5c5c57;
  --border: rgba(20, 20, 20, 0.1);
  --accent: #0f766e;
  --accent-soft: rgba(15, 118, 110, 0.1);
  --accent-strong: #0b5f59;
  --shadow: 0 18px 50px rgba(20, 20, 20, 0.08);
  --radius: 18px;
  --max: 1440px;
  --page-inset: clamp(32px, 6.4vw, 64px);
  --font: "Sora", sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(15, 118, 110, 0.12), transparent 55%),
    radial-gradient(700px 420px at 90% 0%, rgba(154, 52, 18, 0.08), transparent 50%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.34);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - var(--page-inset)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px) saturate(120%);
  background: rgba(250, 250, 248, 0.9);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}
.brand-logo {
  display: block;
  width: 116px;
  height: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  background: rgba(20, 20, 20, 0.04);
  outline: none;
}
.nav--legal a {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(15, 118, 110, 0.2);
}
.nav--legal a:hover,
.nav--legal a:focus-visible {
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.16);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 18px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus-visible { background: #000; }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-login {
  background: var(--accent-soft);
  border-color: rgba(15, 118, 110, 0.2);
  color: var(--accent-strong);
}
.btn-login:hover,
.btn-login:focus-visible { background: rgba(15, 118, 110, 0.16); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--text); }

::selection {
  background: rgba(15, 118, 110, 0.2);
  color: var(--text);
}

@media (max-width: 900px) {
  .nav:not(.nav--legal) { display: none; }
  .header-tools { gap: 8px; }
  .site-footer__inner { flex-direction: column; }
}

@media (max-width: 768px) {
  body { background-attachment: scroll; }
  .site-header {
    backdrop-filter: none;
    background: var(--bg);
  }
}

@media (max-width: 560px) {
  :root { --page-inset: 20px; }
  .site-header__inner { gap: 8px; min-height: 64px; }
  .brand { gap: 8px; font-size: 0.98rem; }
  .brand-logo { width: 104px; }
  .header-tools { gap: 6px; min-width: 0; }
  .nav--legal { flex: 0 0 auto; }
  .nav--legal a { padding: 7px 8px; font-size: 0; }
  .nav--legal a::after { content: "home"; font-size: 0.78rem; }
  .header-actions { gap: 6px; flex: 0 0 auto; }
  .header-actions .btn { padding: 9px 8px; font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header {
    backdrop-filter: none;
    background: var(--bg);
  }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
