@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

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

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --primary: #f54e00;
  --primary-active: #d04200;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --on-primary: #ffffff;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --semantic-success: #1f8a65;
  --semantic-error: #cf2d56;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-pill: 9999px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--body);
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; letter-spacing: -0.05em; }
h2 { font-size: 2rem; letter-spacing: -0.03em; }
h3 { font-size: 1.4rem; letter-spacing: -0.02em; }

p { color: var(--body); line-height: 1.6; }

nav.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--ink); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

.hero-band {
  padding: 80px 0;
  background: var(--canvas);
}

.hero-band h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  color: var(--ink);
  line-height: 1.1;
  max-width: 700px;
  margin-bottom: 20px;
}

.hero-band .hero-sub {
  font-size: 1rem;
  color: var(--body);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

.hero-image {
  margin-top: 48px;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  max-height: 480px;
}

.hero-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-heading {
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

section { padding: 80px 0; }
section + section { border-top: 1px solid var(--hairline-soft); }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  transition: border-color 0.15s;
}

.article-card:hover { border-color: var(--hairline-strong); }

.article-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-body {
  padding: 24px;
}

.article-card-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.article-card-title {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 12px;
}

.article-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 20px;
}

.article-card-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 2px;
  transition: border-color 0.15s;
}

.article-card-link:hover { border-color: var(--ink); }

.badge-pill {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  border-radius: var(--rounded-pill);
  padding: 4px 10px;
}

.tips-band {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.tip-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
}

.tip-card-number {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.tip-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.tip-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.contact-section {
  background: var(--canvas);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 48px;
}

.contact-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  height: 44px;
  outline: none;
  transition: border-color 0.15s;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--semantic-error);
}

.field-error {
  font-size: 12px;
  color: var(--semantic-error);
  margin-top: 4px;
  display: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 10px 18px;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 10px 18px;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s;
}

.btn-secondary:hover { border-color: var(--ink); }

.form-message {
  padding: 12px 16px;
  border-radius: var(--rounded-md);
  font-size: 14px;
  margin-top: 16px;
  display: none;
}

.form-message.success {
  background: #e8f5f0;
  color: var(--semantic-success);
  border: 1px solid #b8e0d2;
  display: block;
}

.form-message.loading {
  background: var(--canvas-soft);
  color: var(--muted);
  border: 1px solid var(--hairline);
  display: block;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--on-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

footer.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s;
}

.footer-col ul li a:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-bottom a:hover { color: var(--ink); }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: 20px 24px;
  z-index: 999;
  display: none;
}

.cookie-banner.visible { display: block; }

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 14px;
  color: var(--canvas);
  line-height: 1.5;
  flex: 1;
}

.cookie-text a {
  color: var(--canvas);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.btn-cookie-reject {
  background: transparent;
  color: var(--canvas);
  border: 1px solid rgba(247,247,244,0.3);
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.article-page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.article-page-header .breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.article-page-header .breadcrumb a {
  color: var(--muted);
  transition: color 0.15s;
}

.article-page-header .breadcrumb a:hover { color: var(--ink); }

.article-page-header h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1.15;
  max-width: 760px;
  margin-bottom: 16px;
}

.article-page-header .article-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-featured-image {
  margin: 48px 0;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.article-featured-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.article-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  padding: 48px 0 80px;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin: 40px 0 16px;
}

.article-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 12px;
}

.article-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 20px 24px;
}

.article-content li { margin-bottom: 8px; }

.article-content blockquote {
  border-left: 3px solid var(--hairline-strong);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--canvas-soft);
  border-radius: 0 var(--rounded-sm) var(--rounded-sm) 0;
}

.article-content blockquote p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.article-content a {
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
}

.article-content a:hover { border-color: var(--ink); }

.article-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0;
}

.sidebar-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-card ul li a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s;
  line-height: 1.4;
}

.sidebar-card ul li a:hover { color: var(--ink); }

.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.04em;
}

.page-header .page-updated {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

.page-content {
  max-width: 760px;
  padding: 48px 0 80px;
}

.page-content h2 {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin: 40px 0 16px;
}

.page-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 10px;
}

.page-content p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 16px;
}

.page-content ul {
  color: var(--body);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px 24px;
}

.page-content li { margin-bottom: 6px; }

.page-content a { color: var(--ink); border-bottom: 1px solid var(--hairline-strong); }
.page-content a:hover { border-color: var(--ink); }

.disclaimer-box {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 64px 0 80px;
}

.about-image {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-body { grid-template-columns: 1fr; gap: 40px; }
  .article-sidebar { position: static; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  section { padding: 48px 0; }
  .hero-band { padding: 48px 0; }
  .hero-band h1 { font-size: 2rem; }
  .hero-image img { height: 240px; }
  .articles-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
  .article-featured-image img { height: 220px; }
}
