@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --cream: #F7F3EE;
  --warm-white: #FDFAF7;
  --ink: #1A1A18;
  --muted: #6E675F;
  --accent: #3F6E8F;
  --accent-light: #ECF3F8;
  --border: #DDD4CA;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--cream);
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}

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

.site-header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.menu-toggle { display: none; }

.main-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.main-nav a:hover { color: var(--ink); }

.hero {
  width: 100%;
  height: 360px;
  position: relative;
  overflow: hidden;
  background: #3A4758;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover; object-position: center center;
  object-position: center center;
  filter: brightness(0.86);
}
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 64px;
  background: linear-gradient(to top, rgba(26,26,24,0.85) 0%, transparent 100%);
}
.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  max-width: 820px;
  letter-spacing: -1px;
}
.hero-meta { margin-top: 14px; color: rgba(255,255,255,0.7); font-size: 12px; letter-spacing: 0.06em; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 48px;
}

.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.post-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
.post-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 4px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #d4cdc6;
}
.post-card-img img { width: 100%; height: 100%; object-fit: cover; background: #3A4758; }
.post-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.post-title {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.post-excerpt { font-size: 13px; color: var(--muted); line-height: 1.65; }
.post-meta { margin-top: 10px; font-size: 11px; color: #a09890; letter-spacing: 0.04em; }

.post-shell { display: block;
  max-width: 1080px;
  margin: 0 auto;
  padding: 42px 48px 64px;
}
.post-hero-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  background: #3A4758;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 14px 0 18px;
}
.post-body { font-size: 16px; }
.post-body p { margin-bottom: 1rem; }
.post-body ul { margin: .6rem 0 1rem 1.2rem; }
.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-body a:hover {
  color: var(--ink);
}
.back-link { color: var(--muted); font-size: 13px; }

.sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 32px; }
.sidebar-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
}
.sidebar-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  margin-bottom: 12px;
}
.sidebar-card p { font-size: 13px; color: var(--muted); }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
}
.tag-list a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

.newsletter-form { margin-top: 12px; display: grid; gap: 10px; }
.newsletter-form input {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  background: var(--cream);
}
.newsletter-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 11px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.tool-frame { width: 100%; min-height: 760px; border: 1px solid var(--border); border-radius: 8px; background:#fff; }
code { background: #eef4f8; border: 1px solid var(--border); padding: .1rem .35rem; border-radius: 6px; }

footer {
  background: var(--ink);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 32px 48px;
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-top: 24px;
}
.footer-nav { display: flex; justify-content: center; gap: 22px; list-style: none; margin-bottom: 14px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,0.7); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }

@media (max-width: 980px) {
  .container { grid-template-columns: 1fr; gap: 30px; }
  .sidebar { position: static; }
}

@media (max-width: 760px) {
  .header-inner, .container, .post-shell { display: block; padding-left: 18px; padding-right: 18px; }
  .main-nav { gap: 10px; }
  .main-nav a { font-size: 11px; }
  .hero { height: 280px; }
  .hero-overlay { padding: 20px 18px; }
  .hero-title { font-size: 26px; }
  .post-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1200px) {
  body { font-size: 17px; }
  .hero-title { font-size: 54px; }
  .post-title { font-size: 24px; }
  .post-excerpt { font-size: 15px; }
  .sidebar-card h3 { font-size: 19px; }
  .sidebar-card p { font-size: 15px; }
  .section-label { font-size: 12px; }
}

@media (min-width: 1600px) {
  body { font-size: 18px; }
  .hero-title { font-size: 62px; }
  .post-title { font-size: 28px; }
  .post-excerpt { font-size: 16px; }
  .sidebar-card h3 { font-size: 21px; }
  .sidebar-card p { font-size: 16px; }
}

@media (min-width: 1200px) {
  .brand { font-size: 26px; }
  .main-nav a { font-size: 14px; }
  .header-inner { height: 72px; }
}

@media (min-width: 1600px) {
  .brand { font-size: 30px; }
  .main-nav a { font-size: 15px; }
  .header-inner { height: 78px; }
}

@media (min-width: 1800px) {
  .header-inner { max-width: 1600px; padding: 0 48px; height: 84px; }
  .brand { font-size: 34px; }
  .main-nav a { font-size: 16px; }
  .container { max-width: 1600px; padding: 64px; }
  .hero { height: 480px; }
  .hero-overlay { padding: 56px 80px; }
  .hero-title { font-size: 72px; }
  .hero-meta { font-size: 14px; }
  body { font-size: 19px; }
  .post-title { font-size: 32px; }
  .post-excerpt { font-size: 17px; }
  .section-label { font-size: 13px; }
  .sidebar-card h3 { font-size: 23px; }
  .sidebar-card p { font-size: 17px; }
  .newsletter-form input { font-size: 15px; padding: 14px 18px; }
  .newsletter-form button { font-size: 15px; padding: 14px; }
  .tag-list a { font-size: 14px; padding: 7px 18px; }
  .footer-nav a { font-size: 13px; }
}
