:root {
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --text: #171b2b;
  --text-muted: #565c66;
  --border: #e3e5e9;
  --accent: #b5700e;
  --accent-contrast: #ffffff;
  --accent-soft: #f6e9d6;
  --radius: 10px;
  --max-width: 1080px;
  --header-height: 64px;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12141a;
    --bg-alt: #1a1d24;
    --text: #edeef0;
    --text-muted: #a2a8b3;
    --border: #2a2e37;
    --accent: #e0a348;
    --accent-contrast: #1c1200;
    --accent-soft: #2a2013;
  }
}

:root[data-theme="dark"] {
  --bg: #12141a;
  --bg-alt: #1a1d24;
  --text: #edeef0;
  --text-muted: #a2a8b3;
  --border: #2a2e37;
  --accent: #e0a348;
  --accent-contrast: #1c1200;
  --accent-soft: #2a2013;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

a {
  color: inherit;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.logo-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.logo-word {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin-inline: auto;
  background: var(--text);
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.2rem);
  max-width: 18ch;
  margin: 0 auto 20px;
}

.hero-sub {
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  min-height: 44px;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.button-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 36px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg);
}

.card-featured {
  border-color: var(--accent);
}

.card-placeholder {
  opacity: 0.7;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.card p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.card-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-inner a {
  text-decoration: none;
  color: var(--text-muted);
}

.footer-inner a:hover {
  color: var(--text);
}

/* Mobile */
@media (max-width: 680px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
  }

  .hero {
    padding: 56px 0 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
