:root {
  --bg: #eef3f5;
  --bg-deep: #dce6ea;
  --ink: #12252c;
  --muted: #4d636c;
  --accent: #0e8f7a;
  --accent-dark: #0a6b5c;
  --teal: #0f3d4c;
  --teal-soft: #1a5a6e;
  --card: #f8fbfc;
  --line: rgba(18, 37, 44, 0.12);
  --shadow: 0 18px 50px rgba(15, 61, 76, 0.12);
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1100px 480px at 8% -8%, rgba(14, 143, 122, 0.14), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(15, 61, 76, 0.12), transparent 50%),
    linear-gradient(180deg, #f4f8f9 0%, var(--bg) 40%, #e3ecef 100%);
  min-height: 100vh;
  line-height: 1.55;
}

.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; width: min(1080px, calc(100% - 2rem)); margin: 0 auto; padding: 0 0 4rem; }

a { color: var(--teal-soft); }
a:hover { color: var(--accent-dark); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(244, 248, 249, 0.9);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.site-brand {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.site-brand-tech { color: var(--teal); }
.site-brand-tld { color: var(--accent); font-weight: 600; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.2rem 0.75rem; justify-content: flex-end; max-width: 70%; }
.site-nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav-link:hover,
.site-nav-link.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.home-hero {
  position: relative;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  min-height: 0;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f7f3ec;
}
.home-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(15, 61, 76, 0.94) 0%, rgba(15, 61, 76, 0.78) 48%, rgba(14, 143, 122, 0.45) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(160deg, #0f3d4c, #1a5a6e 50%, #0a6b5c);
  animation: heroShift 18s ease-in-out infinite alternate;
}
@keyframes heroShift {
  from { transform: scale(1); }
  to { transform: scale(1.03); }
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.25rem 0 2rem;
}
.brand-hero {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 600;
  margin: 0 0 0.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.78);
  animation: fadeUp 0.55s ease both;
}
.hero-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 28rem;
  animation: fadeUp 0.65s ease 0.06s both;
}
.hero-line {
  margin: 0;
  max-width: 32rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(247, 243, 236, 0.88);
  animation: fadeUp 0.7s ease 0.1s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  background: rgba(255, 253, 248, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 253, 248, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255, 253, 248, 0.22); color: #fff; }
.btn-accent { background: var(--accent); border-color: transparent; color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-solid {
  background: var(--teal);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  text-decoration: none;
  font-weight: 700;
}

.section { margin-top: 2.4rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-kicker {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-dark);
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}
.section-more {
  flex-shrink: 0;
  font-weight: 700;
  text-decoration: none;
  color: var(--teal);
  white-space: nowrap;
}
.section-more:hover { text-decoration: underline; }
.page-intro { padding-top: 2rem; }
.page-intro h1 {
  margin: 0.2rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
}
.lead { color: var(--muted); max-width: 40rem; margin: 0; }

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.topic-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.25rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.topic-card:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 92, 38, 0.35);
  color: inherit;
}
.topic-card strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.topic-card span { color: var(--muted); font-size: 0.95rem; }

.article-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.feed-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 0.85rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}
.feed-item:hover { transform: translateY(-2px); color: inherit; }
.feed-thumb {
  border-radius: 12px;
  overflow: hidden;
  min-height: 100px;
  background: var(--bg-deep);
}
.feed-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-thumb--empty {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--teal);
  background: linear-gradient(145deg, #dfe8ec, #f3ebe2);
}
.feed-cat {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
}
.feed-meta { margin: 0.15rem 0; color: var(--muted); font-size: 0.85rem; }
.feed-title {
  margin: 0.15rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.25;
}
.feed-excerpt { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.95rem; }
.empty-feed { color: var(--muted); }

.article-detail { padding-top: 1.5rem; max-width: 720px; }
.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0.3rem 0 0.5rem;
}
.article-meta { color: var(--muted); }
.article-body { font-size: 1.05rem; }
.article-body h2, .article-body h3 { font-family: var(--font-display); margin-top: 1.6em; }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; }
.article-back { margin-top: 2rem; }

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(26, 58, 74, 0.06);
}
.site-footer-inner {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}
.site-footer-brand span { color: var(--accent-dark); }
.site-footer-copy { color: var(--muted); margin: 0.35rem 0 0; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; }
.site-footer-links a { text-decoration: none; font-weight: 600; color: var(--teal); }

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  background: var(--teal);
  color: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.cookie-banner a { color: #f0a574; }
.cookie-banner button {
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

.pager { display: flex; gap: 0.5rem; margin-top: 1.5rem; flex-wrap: wrap; }
.pager a, .pager-current {
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--card);
}
.pager-current { background: var(--teal); color: #fff; border-color: transparent; }

.section-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}
.section-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 7.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.section-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 143, 122, 0.45);
  color: inherit;
}
.section-tile strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--teal);
}
.section-tile span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

@media (max-width: 800px) {
  .feed-item { grid-template-columns: 96px 1fr; }
  .site-header-inner { flex-direction: column; align-items: flex-start; }
  .site-nav { max-width: 100%; justify-content: flex-start; }
  .home-hero-inner { padding: 1.75rem 0 1.5rem; }
}
