/*
Theme Name: NEXORA
Theme URI: https://example.com/nexora
Author: NEXORA
Description: Cổng giới thiệu mạng lưới website con. Editorial, chuyển động nhẹ, SEO và header bảo mật.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexora
*/

:root {
  --ink: #0e1210;
  --surface: #171d19;
  --fg: #f6f3ea;
  --muted: #9aa392;
  --accent: #d6f25c;
  --accent-ink: #14180a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: Outfit, system-ui, sans-serif;
  line-height: 1.5;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--fg) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--fg) 7%, transparent) 1px, transparent 1px);
  background-size: 80px 80px;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-200%);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  z-index: 20;
}
.skip:focus { transform: none; }
.wrap { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  background: color-mix(in oklab, var(--ink) 84%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in oklab, var(--fg) 12%, transparent);
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.mark {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: Fraunces, serif;
  font-weight: 700;
}
.brand small { display: block; color: var(--muted); }
nav { display: flex; gap: 1.25rem; color: var(--muted); }
nav a { text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center; }
.hero { padding: 4.5rem 0 2rem; }
h1, h2, h3 { font-family: Fraunces, serif; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
h1 .lime { color: var(--accent); }
.kicker { color: var(--accent); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.8rem; }
.lede { max-width: 38rem; color: var(--muted); font-size: 1.125rem; }
.rule { height: 2px; width: min(16rem, 70%); background: var(--accent); margin: 1.25rem 0; transform-origin: left; animation: draw 1s ease both; }
.list { display: grid; gap: 1rem; padding: 0; list-style: none; }
.card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1.75rem;
  background: var(--surface);
  border: 1px solid color-mix(in oklab, var(--fg) 12%, transparent);
  transition: transform 200ms ease;
}
.card:hover { transform: translateY(-4px); }
.rank { font-family: Fraunces, serif; font-size: 2.4rem; color: var(--accent); margin: 0; }
.muted { color: var(--muted); }
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 500;
  border: 0;
}
.btn:active { scale: 0.96; }
.steps { display: grid; gap: 1rem; }
.faq details { background: var(--surface); border-radius: 1.25rem; padding: 1rem 1.2rem; border: 1px solid color-mix(in oklab, var(--fg) 12%, transparent); }
.faq summary { cursor: pointer; }
.site-footer { border-top: 1px solid color-mix(in oklab, var(--fg) 12%, transparent); padding: 2rem 0; color: var(--muted); }
.empty { padding: 2rem; border: 1px dashed color-mix(in oklab, var(--fg) 25%, transparent); border-radius: 1.75rem; color: var(--muted); }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (min-width: 800px) {
  .card { grid-template-columns: auto 1fr auto; align-items: center; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 799px) { nav { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rule, .card { animation: none; transition: none; }
}
