:root {
  color-scheme: light dark;
  --bg: #0f1115;
  --surface: #161a22;
  --text: #e8eaef;
  --muted: #9aa3b2;
  --accent: #6ea8fe;
  --border: #2a3140;
  --radius: 12px;
  --container: 960px;
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --text: #121826;
    --muted: #5b6475;
    --accent: #1f5eff;
    --border: #e3e6ee;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
}

.header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
}

.header_inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav_link {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
}

.nav_link:hover {
  border-color: var(--border);
  text-decoration: none;
}

.nav_link.is_active {
  border-color: color-mix(in oklab, var(--accent) 55%, var(--border));
  background: color-mix(in oklab, var(--accent) 12%, transparent);
}

.nav_toggle {
  display: none;
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav_toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-left: 0;
    padding-top: 8px;
  }

  .nav.is_open {
    display: flex;
  }

  .header_inner {
    flex-wrap: wrap;
  }
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 40px;
}

.footer_inner {
  display: grid;
  gap: 8px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.banners {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}

.banner_list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.banner_link {
  font-weight: 600;
}

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

.hero_title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 12px;
}

.hero_lead {
  margin: 0 0 20px;
  max-width: 62ch;
  color: color-mix(in oklab, var(--text) 86%, var(--muted));
}

.hero_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding: 28px 0 48px;
}

.section_tight {
  padding-top: 18px;
}

.section_title {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.page_title {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid color-mix(in oklab, var(--accent) 55%, var(--border));
  background: color-mix(in oklab, var(--accent) 18%, var(--surface));
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.button_ghost {
  background: transparent;
}

.card_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

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

.card_title {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.card_title a {
  color: var(--text);
  text-decoration: none;
}

.card_title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.card_price {
  margin: 0 0 8px;
  font-weight: 700;
}

.product_list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.product_row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.product_name {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.product_name:hover {
  color: var(--accent);
}

.product_meta {
  white-space: nowrap;
}

.product_price {
  font-weight: 800;
}

.tag_row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.tag {
  font-size: 0.82rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.breadcrumb {
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.detail_price {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 10px;
}

.detail_summary {
  margin: 0 0 12px;
  max-width: 70ch;
}

.related {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px dashed var(--border);
}

.prose {
  max-width: 72ch;
}

.prose code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 80%, transparent);
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

.form {
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin-top: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field_label {
  font-weight: 600;
}

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.textarea {
  resize: vertical;
  min-height: 120px;
}

.notice {
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  padding: 12px 14px;
  border-radius: var(--radius);
  margin: 12px 0;
}

.notice_ok {
  border-color: color-mix(in oklab, #2ee59d 35%, var(--border));
}

.lead {
  font-size: 1.05rem;
  color: color-mix(in oklab, var(--text) 88%, var(--muted));
}
