/* =========================================
   WordGeek.net Shared Stylesheet
   ========================================= */

/* ---------- Root Variables ---------- */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-alt: #eef3f9;
  --text: #18212b;
  --muted: #566474;
  --line: #d6deea;
  --line-strong: #bbc7d8;
  --accent: #1f6fd6;
  --accent-soft: #e7f0ff;
  --shadow: 0 14px 34px rgba(24, 33, 43, 0.08);
  --radius: 18px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    linear-gradient(180deg, #f9fbfe 0%, #f3f7fb 100%);
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand-badge {
  flex: 0 0 auto;
  background: linear-gradient(135deg, #0f1722, #273750);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 0.5rem 0.75rem;
}

.brand-badge img {
  width: 260px;
  max-width: 100%;
  height: auto;
}

.brand-text {
  min-width: 0;
}

.brand-text h1,
.brand-text .brand-name {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.tagline {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Navigation ---------- */
.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  font-weight: bold;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  color: var(--text);
  font-weight: bold;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  padding: 3rem 0 1.5rem;
}

.hero-card {
  background: linear-gradient(135deg, #ffffff, #f4f8fd);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 0;
}

.hero-copy,
.hero-panel {
  padding: 2rem;
}

.hero-copy h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
}

.hero-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: bold;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.button:hover,
.button:focus {
  text-decoration: none;
  filter: brightness(0.98);
}

.hero-panel {
  background: linear-gradient(180deg, #0f1722 0%, #223553 100%);
  color: #f8fbff;
}

.hero-panel h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.hero-panel ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.hero-panel li {
  margin-bottom: 0.6rem;
}

/* ---------- Page Intro ---------- */
.page-intro {
  padding: 2.25rem 0 1rem;
}

.page-intro h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.page-intro p {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
}

/* ---------- Content Layout ---------- */
.content-wrap {
  padding: 1.25rem 0 3rem;
}

.two-column {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
}

.sidebar,
.card,
.article-card,
.policy-list,
.notice,
.sitemap-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar {
  padding: 1.25rem;
  align-self: start;
  position: sticky;
  top: 6.5rem;
}

.sidebar h3 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
}

.sidebar ul {
  margin: 0;
  padding-left: 1rem;
}

.sidebar li + li {
  margin-top: 0.55rem;
}

.card {
  padding: 1.5rem;
}

.card h3:first-child,
.card h4:first-child {
  margin-top: 0;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

/* ---------- Grids ---------- */
.grid-2,
.grid-3 {
  display: grid;
  gap: 1.2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- Blog Cards ---------- */
.article-list {
  display: grid;
  gap: 1.2rem;
}

.article-card {
  overflow: hidden;
}

.article-card .article-body {
  padding: 1.4rem;
}

.article-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: bold;
}

.article-card h3 {
  margin: 0.4rem 0 0.8rem;
}

.media-placeholder {
  min-height: 180px;
  background:
    linear-gradient(135deg, rgba(31, 111, 214, 0.14), rgba(24, 33, 43, 0.04)),
    linear-gradient(90deg, #eaf1fb, #f7faff);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: bold;
  text-align: center;
  padding: 1rem;
}

/* ---------- Policy Lists ---------- */
.policy-list {
  padding: 1.25rem 1.4rem;
}

.policy-list h3 {
  margin-top: 0;
}

.policy-list ul {
  margin: 0;
  padding-left: 1rem;
}

.notice {
  padding: 1rem 1.15rem;
  background: #fffdf7;
  border-color: #ead7a3;
}

.notice p {
  margin: 0;
}

/* ---------- Site Map ---------- */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.sitemap-block {
  padding: 1.25rem;
}

.sitemap-block h3 {
  margin-top: 0;
}

.sitemap-block ul {
  margin: 0;
  padding-left: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: 3rem;
}

.footer-top {
  padding: 1.35rem 0 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  margin-bottom: 0.85rem;
}

.footer-links a {
  color: var(--muted);
  font-weight: bold;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Utility ---------- */
.section-stack > * + * {
  margin-top: 1.2rem;
}

.small {
  font-size: 0.95rem;
  color: var(--muted);
}

.list-tight li + li {
  margin-top: 0.45rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .two-column,
  .grid-2,
  .grid-3,
  .sitemap-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.75rem;
  }

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

  .site-nav a {
    border-radius: 12px;
  }

  .brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-badge img {
    width: 220px;
  }

  .hero-copy,
  .hero-panel {
    padding: 1.5rem;
  }
}
