/* ===== Reset & base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Work Sans', -apple-system, sans-serif;
  background: #FAF9F6;
  color: #14141A;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.article-wrap, .page-wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header { border-bottom: 1px solid #E4E1D8; background: #FAF9F6; position: relative; z-index: 50; }
@media (max-width: 859px) {
  .site-header .wrap { padding-left: 24px; padding-right: 24px; }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-word { font-family: 'Fraunces', serif; font-weight: 600; font-size: 21px; color: #1F2D50; }
.logo-word span { opacity: 0.72; }

.nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: #1F2D50; border-radius: 2px; }

.main-nav { display: none; gap: 24px; font-size: 15px; font-weight: 500; color: #1F2D50; align-items: center; }
.main-nav a { text-decoration: none; color: #1F2D50; padding: 8px 0; }
.nav-item { position: relative; }
.nav-item-btn { background: none; border: none; font: inherit; color: #1F2D50; display: flex; align-items: center; gap: 5px; cursor: pointer; padding: 8px 0; }
.caret { width: 8px; height: 8px; border-right: 1.5px solid #1F2D50; border-bottom: 1.5px solid #1F2D50; transform: rotate(45deg); margin-top: -3px; }

.dropdown { display: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); width: 320px; background: #FFFFFF; border: 1px solid #E4E1D8; border-radius: 14px; box-shadow: 0 12px 32px rgba(31,45,80,0.12); padding: 22px 24px; }
.nav-item.open .dropdown { display: block; }
.dropdown-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #9A968A; font-weight: 600; margin-bottom: 14px; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.cat-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 2px; border-bottom: 1px solid #F0EEE7; font-size: 14px; color: #14141A; font-weight: 500; text-decoration: none; }
.cat-count { font-size: 11.5px; color: #9A968A; font-weight: 400; }

/* Mobile nav open state */
body.nav-open .main-nav { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 100%; left: 0; right: 0; background: #FAF9F6; border-bottom: 1px solid #E4E1D8; padding: 8px 20px 20px; gap: 4px; }
body.nav-open .dropdown { position: static; transform: none; width: 100%; margin-top: 8px; box-shadow: none; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex; }
}

/* ===== Hero / Featured ===== */
.hero-label, .grid-label { font-size: 12.5px; letter-spacing: 0.07em; text-transform: uppercase; color: #5F5E5A; margin: 32px 0 14px; font-weight: 500; }

.featured { display: grid; grid-template-columns: 1fr; gap: 0; background: #fff; border: 1px solid #E4E1D8; border-radius: 16px; overflow: hidden; margin-bottom: 44px; text-decoration: none; color: inherit; }
.featured-img { width: 100%; height: 220px; object-fit: cover; background: linear-gradient(135deg, #1F2D50, #3A4A78); }
.featured-text { padding: 26px 22px 30px; }
.tag { display: inline-block; font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; background: #EDEBE3; color: #1F2D50; padding: 4px 12px; border-radius: 20px; font-weight: 600; margin-bottom: 12px; }
.featured h1 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 24px; line-height: 1.25; margin-bottom: 12px; color: #14141A; }
.featured p { font-size: 14.5px; color: #5F5E5A; line-height: 1.6; margin-bottom: 14px; }

.rating { font-size: 13.5px; color: #1F2D50; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.rating .stars { color: #C9A227; letter-spacing: 2px; }

@media (min-width: 720px) {
  .featured { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px; }
  .featured-img { height: 100%; min-height: 320px; }
  .featured-text { padding: 32px 40px 32px 0; }
  .featured h1 { font-size: 32px; }
}

/* ===== Card grid ===== */
.grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: 56px; }
.card { background: #fff; border: 1px solid #E4E1D8; border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; display: block; }
.card-img { width: 100%; height: 160px; object-fit: cover; background: #EDEBE3; }
.card-body { padding: 16px 18px 20px; }
.card .tag { margin-bottom: 10px; }
.card h2 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 16.5px; line-height: 1.35; margin-bottom: 8px; color: #14141A; }
.card p { font-size: 13.5px; color: #5F5E5A; line-height: 1.55; margin-bottom: 12px; }
.card .rating { font-size: 13px; }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 940px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Article page ===== */
.breadcrumb { font-size: 12.5px; color: #9A968A; margin: 24px 0 18px; }
.breadcrumb a { color: #9A968A; text-decoration: none; }

h1.article-title { font-family: 'Fraunces', serif; font-weight: 600; font-size: 28px; line-height: 1.22; color: #14141A; margin: 14px 0 16px; }
.meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; font-size: 13px; color: #5F5E5A; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: #C9C6BA; }

.featured-img-full { width: 100%; height: auto; border-radius: 14px; margin-bottom: 32px; }

.prose { font-size: 16px; line-height: 1.78; color: #24242A; }
.prose p { margin-bottom: 20px; }
.prose h2 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 21px; color: #14141A; margin: 36px 0 14px; }
.prose blockquote { border-left: 3px solid #1F2D50; padding: 4px 0 4px 18px; margin: 24px 0; font-style: italic; color: #3A3A42; font-size: 16px; }
.prose ul, .prose ol { margin: 0 0 20px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { font-weight: 600; }

.verdict-box { background: #FFFFFF; border: 1px solid #E4E1D8; border-radius: 14px; padding: 24px 26px; margin: 32px 0; }
.verdict-box .verdict-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #9A968A; font-weight: 600; margin-bottom: 10px; }
.verdict-box .verdict-score { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.verdict-box .verdict-score .num { font-family: 'Fraunces', serif; font-weight: 600; font-size: 28px; color: #1F2D50; }
.verdict-box p { margin: 0; font-size: 14px; color: #5F5E5A; }

.share-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #E4E1D8; }
.share-label { font-size: 13px; color: #5F5E5A; font-weight: 500; }
.share-icons { display: flex; align-items: center; gap: 10px; }
.share-btn { width: 36px; height: 36px; border-radius: 50%; background: #FFFFFF; border: 1px solid #E4E1D8; display: flex; align-items: center; justify-content: center; color: #1F2D50; text-decoration: none; flex-shrink: 0; }
.copy-btn { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 15px; border-radius: 20px; background: #FFFFFF; border: 1px solid #E4E1D8; color: #1F2D50; font-size: 12.5px; font-weight: 500; cursor: pointer; font-family: inherit; }

@media (min-width: 640px) {
  h1.article-title { font-size: 34px; }
  .featured-img-full { height: 380px; object-fit: cover; }
}

/* ===== Static page (Write for Us / Privacy / Terms) ===== */
.page-header { padding: 36px 0 4px; }
.page-label { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #9A968A; font-weight: 600; margin-bottom: 12px; }
h1.page-title { font-family: 'Fraunces', serif; font-weight: 600; font-size: 30px; line-height: 1.2; color: #14141A; margin-bottom: 14px; }
.page-intro { font-size: 15.5px; line-height: 1.7; color: #5F5E5A; max-width: 620px; }

.cta-box { background: #1F2D50; border-radius: 14px; padding: 26px 24px; margin: 40px 0 0; display: flex; flex-direction: column; gap: 18px; }
.cta-box .cta-text h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 18px; color: #FAF9F6; margin-bottom: 6px; }
.cta-box .cta-text p { font-size: 13px; color: rgba(250,249,246,0.85); margin: 0; }
.cta-btn { flex-shrink: 0; background: #FAF9F6; color: #1F2D50; font-size: 14px; font-weight: 600; padding: 12px 20px; border-radius: 8px; text-decoration: none; text-align: center; }

@media (min-width: 640px) {
  h1.page-title { font-size: 36px; }
  .cta-box { flex-direction: row; align-items: center; justify-content: space-between; padding: 30px 34px; }
}

/* ===== Footer ===== */
.site-footer { background: #1F2D50; color: #FAF9F6; padding: 40px 0 22px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: 28px; border-bottom: 1px solid rgba(250,249,246,0.15); }
.footer-logo-row { display: flex; align-items: center; gap: 9px; }
.footer-logo-word { font-family: 'Fraunces', serif; font-weight: 600; font-size: 20px; color: #FAF9F6; }
.footer-logo-word span { opacity: 0.78; }
.about-text { max-width: 420px; font-size: 13px; line-height: 1.7; color: rgba(250,249,246,0.88); margin-top: 12px; text-align: justify; }
.footer-col-title { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(250,249,246,0.75); font-weight: 500; margin-bottom: 14px; }
.footer-post-link { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-bottom: 12px; }
.footer-post-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: rgba(250,249,246,0.12); }
.footer-post-title { font-size: 13px; color: rgba(250,249,246,0.9); line-height: 1.4; }
.footer-bottom-row { display: flex; flex-direction: column; gap: 14px; align-items: center; padding-top: 20px; font-size: 12px; color: rgba(250,249,246,0.75); text-align: center; }
.footer-nav-links { display: flex; gap: 20px; color: rgba(250,249,246,0.88); }
.footer-nav-links a { color: inherit; text-decoration: none; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: rgba(250,249,246,0.88); display: flex; }

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; }
  .footer-bottom-row { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-nav-links { justify-content: center; flex: 1; }
}

/* ===== Utility ===== */
main { min-height: 40vh; }
