/* Verdanly — shared design system
   Palette + type sampled from the live verdanly.com (sage green / cream, Playfair + Work Sans). */

:root {
  --cream: #FAF7F2;
  --cream-deep: #F4EDE7;
  --sage: #8FA37E;
  --sage-dark: #64775A;
  --sage-tint: #CAD2C2;
  --hero-heading: #253B35;
  --terracotta: #C77B4D;
  --ink: #292A22;
  --ink-soft: #575A4C;
  --linen: #DDD6C8;
  --white: #FFFFFF;
  --mist: #EFEBE3;

  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Work Sans", Arial, sans-serif;
  --font-eyebrow: "Work Sans", Arial, sans-serif;
  --font-card-label: "Nanum Myeongjo", Georgia, serif;

  --content-width: 1290px;
  --header-bg: #FAF7F2;

  --hover: #64775A;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--cream-deep);
}

.page-card {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 56px 24px;
}

@media (max-width: 860px) {
  .page-card { padding: 24px 16px; }
}

.page-card-inner {
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 15px 15px -10px rgba(0, 0, 0, 0.08);
  padding: 56px 32px;
}

@media (max-width: 860px) {
  .page-card-inner { padding: 32px 16px; }
}

.page-card-inner.no-pad { padding: 0; box-shadow: none; background: transparent; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 4rem); line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 1rem + 2vw, 2.75rem); line-height: 1.25; }
h3 { font-size: 1.4rem; }

.eyebrow {
  font-family: var(--font-eyebrow);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage-dark);
  margin-bottom: 10px;
}

p { margin: 0 0 1.1em; }

.site-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--header-bg);
  color: var(--ink);
  border-bottom: 1px solid var(--linen);
  position: relative;
  z-index: 50;
}

.site-header .site-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.logo img { height: 44px; width: auto; display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  font-size: 0.98rem;
  padding: 10px;
  color: var(--ink);
  opacity: 0.85;
  transition: opacity 0.15s;
}

.main-nav a:hover { opacity: 1; color: var(--sage-dark); }

.main-nav details { position: relative; }
.main-nav summary { list-style: none; cursor: pointer; font-size: 0.98rem; padding: 10px; color: var(--ink); }
.main-nav summary::-webkit-details-marker { display: none; }

.dropdown {
  position: absolute;
  top: 32px;
  left: 0;
  background: var(--white);
  border: 1px solid var(--linen);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.dropdown a { padding: 8px 16px; font-size: 0.85rem; opacity: 1; }
.dropdown a:hover { background: var(--cream-deep); }

.nav-shop {
  background: var(--sage);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 3px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 1 !important;
  margin-left: 12px;
}

.nav-shop:hover { background: var(--sage-dark); }

.menu-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px 24px;
    gap: 14px;
    align-items: flex-start;
    border-bottom: 1px solid var(--linen);
  }
  .site-header.nav-open .dropdown { position: static; border: none; box-shadow: none; padding: 6px 0 0 12px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 26px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-fill { background: var(--sage); color: var(--white); }
.btn-fill:hover { background: var(--sage-dark); }

.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* ---------- Hero ---------- */

.hero { background: var(--cream-deep); padding: 48px 24px 64px; }

.hero-card {
  max-width: var(--content-width);
  margin: 0 auto;
  background: var(--sage-tint);
  border-radius: 28px;
  padding: 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-figure { border-radius: 20px; overflow: hidden; }
.hero-figure img { aspect-ratio: 4/5; object-fit: cover; }

.hero-text { display: flex; flex-direction: column; justify-content: center; }
.hero-text h1 { color: var(--hero-heading); }
.hero-text p { font-size: 1.15rem; color: var(--hero-heading); opacity: 0.85; }

@media (max-width: 860px) {
  .hero-card { padding: 20px; border-radius: 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-figure { order: 0; }
  .hero-text { order: 1; }
}

/* ---------- Category grid (homepage) ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card { text-align: left; }
.category-card img { aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }
.category-card h3 { font-size: 1.05rem; margin-bottom: 0; }

@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- CTA duo card ---------- */

.duo-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0;
}

.duo-card {
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 40px;
}

.duo-card-text { background: var(--sage-tint); }
.duo-card-photo { background-size: cover; background-position: center; aspect-ratio: 1/1; border-radius: 20px; }

@media (max-width: 860px) {
  .duo-cards { grid-template-columns: 1fr; }
}

/* ---------- Section / grid helpers ---------- */

section { padding: 64px 0; }

.section-cream { background: var(--cream-deep); }
.section-sage { background: var(--sage-tint); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Post cards (blog listing) ---------- */

.post-card {
  background: transparent;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--linen);
  padding-bottom: 32px;
}

.post-card img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }

.post-card-body { padding: 20px 0 0; flex: 1; display: flex; flex-direction: column; }

.post-card-cat {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

.post-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.post-card h3 a:hover { color: var(--sage-dark); }

.post-card-byline { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 10px; }

.post-card-excerpt { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 14px; }

.post-card-more {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.post-card-more:hover { color: var(--sage-dark); }

/* Compact variant — sidebar recent posts, similar-posts horizontal row */
.post-card-compact {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--linen);
  padding-bottom: 0;
}
.post-card-compact img { aspect-ratio: 3/2; object-fit: cover; border-radius: 0; }
.post-card-compact .post-card-body { padding: 16px 18px; }
.post-card-compact h3 { font-size: 1.05rem; }

/* ---------- Article / single post ---------- */

.article-hero { background: var(--cream-deep); padding: 56px 0 40px; }

.article-byline { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }

.article-body { max-width: 740px; margin: 0 auto; padding: 56px 24px; }

.article-body h2 { margin-top: 1.6em; }
.article-body h3 { margin-top: 1.4em; }
.article-body figure { margin: 2em 0; }
.article-body figcaption { font-size: 0.85rem; color: var(--ink-soft); text-align: center; margin-top: 8px; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin-bottom: 1.1em; }
.article-body li { margin-bottom: 0.4em; }
.article-body img { border-radius: 12px; }

/* ---------- Article layout: content + sidebar ---------- */

.article-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 56px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

.article-layout .article-body { max-width: none; margin: 0; padding: 40px 0 0; }

.article-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 40px;
}

.sidebar-widget {
  background: var(--cream-deep);
  border: 1px solid var(--linen);
  border-radius: 12px;
  padding: 22px;
}

.sidebar-widget h4 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 16px; }

.sidebar-post { display: flex; gap: 12px; margin-bottom: 14px; }
.sidebar-post:last-child { margin-bottom: 0; }
.sidebar-post img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.sidebar-post a { font-size: 0.88rem; line-height: 1.4; color: var(--ink); }
.sidebar-post a:hover { color: var(--sage-dark); }

.sidebar-cats { list-style: none; padding: 0; margin: 0; }
.sidebar-cats li { border-bottom: 1px solid var(--linen); }
.sidebar-cats li:last-child { border-bottom: none; }
.sidebar-cats a { display: block; padding: 10px 0; font-size: 0.9rem; color: var(--ink-soft); }
.sidebar-cats a:hover { color: var(--sage-dark); }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; padding-top: 0; }
}

/* ---------- Prev / next post nav ---------- */

.post-nav-section { border-top: 1px solid var(--linen); border-bottom: 1px solid var(--linen); }

.post-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.post-nav-link { max-width: 45%; }
.post-nav-next { text-align: right; margin-left: auto; }
.post-nav-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 6px;
}
.post-nav-title { color: var(--ink); font-size: 0.95rem; line-height: 1.4; }
.post-nav-title:hover { color: var(--sage-dark); }

@media (max-width: 600px) {
  .post-nav-link { max-width: 100%; }
}

/* ---------- Similar posts ---------- */

.similar-posts-section { padding: 56px 0; }

.similar-posts-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
}

.similar-posts-row .post-card { flex: 0 0 260px; scroll-snap-align: start; }

/* ---------- Forms ---------- */

.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-field .required { color: var(--terracotta); }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--linen);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sage);
}

.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--cream-deep); color: var(--ink-soft); padding: 56px 0 32px; border-top: 1px solid var(--linen); }

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-logo { font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; color: var(--ink); margin-bottom: 8px; }
.footer-col h5 { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: 10px; }
.footer-col a { display: block; padding: 3px 0; font-size: 0.92rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.footer-col a:hover { color: var(--sage-dark); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  padding-top: 24px;
  border-top: 1px solid var(--linen);
}

.footer-links a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--sage-dark); }

.footer-copy { font-size: 0.85rem; text-align: center; margin-top: 20px; }
.footer-copy a { color: var(--sage-dark); text-decoration: underline; }

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mw-740 { max-width: 740px; margin-left: auto; margin-right: auto; }
.mw-900 { max-width: 900px; margin-left: auto; margin-right: auto; }
