﻿:root {
  --bg: #f8f4ef;
  --surface: #ffffff;
  --ink: #1f1b16;
  --muted: #6b5d52;
  --accent: #c96b3c;
  --accent-2: #2f6f6c;
  --line: #e6dccf;
  --shadow: 0 10px 30px rgba(31, 27, 22, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1150px;
  --space: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Helvetica Neue", Helvetica, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff7ed 0%, #f8f4ef 45%, #f5efe8 100%);
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.container {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 22px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 1000;
}

.skip-link:focus {
  left: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.98rem;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a:focus {
  background: #f0e6d8;
}

.hero {
  padding: 70px 0 30px;
}

.hero-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.hero-card {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin: 0 0 12px;
}

.hero p {
  color: var(--muted);
  margin: 0 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn.secondary {
  background: #efe3d3;
  color: var(--ink);
}

.section {
  padding: 52px 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.9rem;
  margin: 0;
}

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid #f4ece2;
}

.card h3 {
  margin-top: 0;
  font-family: "Playfair Display", Georgia, serif;
}

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

.card a.btn {
  margin-top: 10px;
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 14px 0 0;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs li::after {
  content: "/";
  margin-left: 8px;
  color: #bda895;
}

.breadcrumbs li:last-child::after {
  content: "";
}

.main-content {
  padding: 24px 0 40px;
}

.article-header h1 {
  font-family: "Playfair Display", Georgia, serif;
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

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

.meta a {
  color: var(--accent-2);
  font-weight: 600;
}

.article-body h2 {
  font-family: "Playfair Display", Georgia, serif;
  margin-top: 30px;
}

.article-body h3 {
  margin-top: 22px;
}

.article-body p {
  margin: 14px 0;
}

.article-body ul {
  padding-left: 20px;
}

.tool-form {
  display: grid;
  gap: 14px;
}

.tool-form label {
  font-weight: 600;
}

.tool-form input,
.tool-form select,
.tool-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d7cabc;
  font-size: 1rem;
  font-family: inherit;
  background: #fffdf9;
}

.tool-output {
  background: #fff5e7;
  border: 1px dashed #e0bfa6;
  padding: 16px;
  border-radius: 12px;
  margin-top: 12px;
}

.faq {
  background: #fdf8f2;
  border: 1px solid #f1e4d4;
  border-radius: var(--radius-sm);
  padding: 20px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 40px;
  background: #f7efe6;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0e6d8;
  color: #5e4b3a;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    position: absolute;
    right: 20px;
    top: 62px;
    padding: 16px;
    box-shadow: var(--shadow);
    border-radius: 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

.nav-toggle {
  display: none;
  background: #f0e6d8;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
}

.fade-in {
  animation: fade 0.7s ease-out both;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger > * {
  animation: fade 0.7s ease-out both;
}

.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.2s; }
.stagger > *:nth-child(4) { animation-delay: 0.3s; }
.stagger > *:nth-child(5) { animation-delay: 0.4s; }

.note {
  background: #eef6f5;
  border: 1px solid #cde3e1;
  padding: 14px;
  border-radius: 12px;
  color: #2b5a57;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.table th,
.table td {
  border: 1px solid #eadbcb;
  padding: 10px;
  text-align: left;
  font-size: 0.95rem;
}

.table th {
  background: #f5ecdf;
}
.article-hero {
  overflow: hidden;
  border-radius: 14px;
}

.article-hero img {
  width: 100%;
  height: auto;
  max-height: 420px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

@media (max-width: 720px) {
  .article-hero img {
    max-height: 300px;
  }
}

.toc {
  margin: 18px 0 28px;
}

.toc h2 {
  margin-top: 0;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent-2);
}

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