/* El Nido Wellness — simple, clean magazine-style journal
   Design reference: Well+Good — cream background, oversized bold serif
   logo, minimal color, plain magazine story lists/cards. */
:root {
  --bg: #F7F3EA;
  --ink: #1A1A18;
  --body: #2B2B27;
  --muted: #77715F;
  --line: #E4DECE;
  --accent: #B5654A;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.4em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.cat-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.byline {
  font-size: 13px;
  color: var(--muted);
}
.section-title {
  font-size: clamp(24px, 3vw, 30px);
  margin: 0;
}

/* Nav: two rows — big centered logo, then category links */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav__logo-row {
  text-align: center;
  padding: 22px 24px 14px;
}
.nav__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.nav__logo-icon {
  height: 46px;
  width: auto;
}
.nav__logo-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.nav__menu-row {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
}
.nav__menu {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 14px 24px;
}
.nav__link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--body);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.nav__link:hover, .nav__link.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: absolute;
  right: 24px;
  top: 24px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
}
@media (max-width: 800px) {
  .nav__logo-row { position: relative; }
  .nav__menu-row { display: none; }
  .nav__menu-row.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
  }
  .nav__menu { flex-direction: column; gap: 0; width: 100%; padding: 0; }
  .nav__menu li { border-top: 1px solid var(--line); }
  .nav__link { display: block; padding: 16px 24px; border-bottom: none; }
  .nav__toggle { display: block; }
}

/* Intro strip below nav */
.intro-line {
  text-align: center;
  padding: 40px 24px 8px;
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
}

/* Section spacing */
.section { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 14px;
  margin-bottom: 32px;
}

/* Magazine homepage grid: sidebar list + big story cards */
.mag-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
}
@media (max-width: 900px) {
  .mag-grid { grid-template-columns: 1fr; }
}

.story-list { list-style: none; margin: 0; padding: 0; }
.story-list__item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.story-list__item:last-child { border-bottom: 1px solid var(--line); }
.story-list__item h3 {
  font-size: 19px;
  margin: 4px 0 6px;
}
.story-list__item h3 a:hover { text-decoration: underline; }

.story-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}
@media (max-width: 640px) {
  .story-card-grid { grid-template-columns: 1fr; }
}
.story-card__img {
  aspect-ratio: 4/3;
  margin-bottom: 14px;
  background: var(--ink);
  overflow: hidden;
}
.story-card__img img { width: 100%; height: 100%; object-fit: cover; }
.story-card h3 {
  font-size: 24px;
  margin-bottom: 6px;
}
.story-card:hover h3 { text-decoration: underline; }
.story-card__excerpt {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 8px;
}

/* 3-column story-card grid used on category pages / "more reading" */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* Flat category tiles */
.cat-flat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 900px) {
  .cat-flat-grid { grid-template-columns: repeat(2, 1fr); }
}
.cat-flat h3 { font-size: 26px; margin-bottom: 8px; }
.cat-flat p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.cat-flat__link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* Page hero (category / about) */
.page-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.page-hero h1 { font-size: clamp(34px, 5vw, 50px); margin-top: 6px; }
.page-hero p { color: var(--muted); max-width: 620px; font-size: 17px; }

/* Article */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 40px;
}
.article h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 10px; }
.article__meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.article__hero-img {
  margin-bottom: 8px;
  background: var(--ink);
}
.image-credit {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  margin-bottom: 28px;
}
.image-credit a { text-decoration: underline; }
.article__body h2 { font-size: 28px; margin-top: 44px; }
.article__body h3 { font-size: 21px; margin-top: 30px; }
.article__body p { color: var(--body); }
.article__body ul { padding-left: 20px; margin-bottom: 1em; }
.article__body li { margin-bottom: 6px; }
.article__body figure { margin: 28px 0; }
.article__body figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}
.article__body strong { color: var(--ink); }
.article__body blockquote {
  margin: 28px 0;
  padding: 4px 24px;
  border-left: 3px solid var(--ink);
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 21px;
  color: var(--ink);
}
.article__more {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 0;
}

/* About */
.about-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.about-body p { font-size: 17px; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 24px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.footer__logo-icon {
  height: 26px;
  width: auto;
}
.footer__tagline {
  color: var(--muted);
  font-size: 14px;
  max-width: 300px;
  margin-top: 10px;
}
.footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer__col h4 {
  font-family: 'Work Sans', sans-serif;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer__col a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}
.footer__col a:hover { color: var(--ink); }
.footer__bottom {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 18px 24px;
  font-size: 13px;
  color: var(--muted);
}
