/* Curto Serif — specimen site
   https://github.com/dqev/curto · SIL Open Font License 1.1 */

@font-face {
  font-family: "Curto Serif";
  src: url("/assets/webfonts/CurtoSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Curto Serif";
  src: url("/assets/webfonts/CurtoSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #1a1a1a;
  --text: #f4f4f4;
  --accent: #81acec;
  --accent-ink: #101418;
  --wrap: 1180px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

/* ---------- hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero-title {
  margin: 0;
  font-family: "Curto Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(64px, 14vw, 188px);
  line-height: .88;
}

.hero-title em { font-style: italic; }

.hero-title .dot { color: var(--accent); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

/* ---------- buttons (from components.html) ---------- */

.primary,
.secondary,
.accent,
.github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 200ms cubic-bezier(0.22, 1, 0.36, 1),
              color 200ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

.primary:active,
.secondary:active,
.accent:active,
.github:active {
  transform: translateY(1px);
}

.primary {
  background: #2a2a2a;
  color: #ffffff;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.04),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(0, 0, 0, 0.06),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.06),
    inset 0 0 0 1px rgba(196, 196, 196, 0.1);
}

.primary:hover { background: #323232; }

.secondary {
  background: #81ADEC;
  color: #0a0a0a;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.08),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.35),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.secondary:hover { background: #9dc0f2; }

.accent {
  background: rgba(129, 173, 236, 0.16);
  color: #81ADEC;
}

.accent:hover { background: rgba(129, 173, 236, 0.24); }

.github {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(237, 237, 237, 0.6);
  padding: 0 14px;
}

.github:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ededed;
}

.github svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.secondary svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 680px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .hero { padding-top: 64px; padding-bottom: 64px; }
  .hero-title { font-size: clamp(76px, 22vw, 140px); line-height: .92; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
