:root{
--ivory:#f5f1e8;
  --paper:#faf8f2;
  --green:#0d2f27;
  --burgundy:#5b0c20;
  --line:#d7cfc2;
  --gray:#74716c;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--ivory);color:#10231d;font-family:Inter,Arial,sans-serif}
a{text-decoration:none;color:inherit}
img{width:100%;display:block}
.site-header{height:86px;background:var(--paper);display:flex;align-items:center;justify-content:space-between;padding:0 38px;border-bottom:1px solid #e8e0d5;position:sticky;top:0;z-index:10}
.brand{display:flex;flex-direction:column}
.brand strong{
    font:700 34px/1 "Playfair Display",serif;
    color:#5d5d5d;
}
.brand span{font-size:14px;margin-top:8px}
.nav{display:flex;align-items:center;gap:42px;font-size:13px;font-weight:600}transform: translateY(3px);
.nav .active{color:var(--burgundy);border-bottom:2px solid var(--burgundy);padding-bottom:8px}
.soon-outline{border:1px solid #8f8c87;color:#66635f;border-radius:5px;padding:12px 18px}
.menu-toggle{display:none;border:0;background:none;font-size:25px}
.hero{height:490px;background:url('images/hero.jpg') center/cover no-repeat;position:relative}
.overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.38),rgba(0,0,0,.03) 70%)}
.hero-copy{
    position:relative;
    color:#fff;
    padding:90px 0 0 60px;
}
.hero h1{font:700 55px/1.05 "Playfair Display",serif;margin:0 0 18px}
.hero p{font-size:18px;line-height:1.65;margin:0 0 24px}
.button{display:inline-block;background:var(--burgundy);color:white;padding:14px 24px;border-radius:4px;font-size:12px;font-weight:700;letter-spacing:.6px}
.section{
    max-width:1200px;
    width:100%;
    margin:0 auto;
    padding:52px 56px 50px;
}
.eyebrow{display:block;color:var(--burgundy);font-size:11px;font-weight:700;letter-spacing:1.2px;margin-bottom:8px}
h2{font:700 25px/1.25 "Playfair Display",serif;margin:0}
.tool-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(240px,1fr));
    gap:22px;
    margin-top:26px;
}
.tool-card{
    min-height:190px;
    border:1px solid var(--line);
    border-radius:7px;
   padding:28px;
    display:grid;
    grid-template-columns:auto 1fr;
    grid-template-rows:auto 1fr auto;
    column-gap:18px;
    align-items:start;
    position:relative;
}

.tool-card h3{
    margin:2px 0 10px;
    font-size:16px;
    line-height:1.25;
}

.tool-card p{
    margin:0;
    font-size:12px;
    line-height:1.7;
}


.arrow{position:absolute;right:22px;bottom:18px;color:var(--burgundy);font-size:28px}
.coming{position:absolute;right:36px;bottom:20px;border:1px solid #8d8a86;color:var(--gray);border-radius:4px;padding:8px 17px;font-size:11px;font-weight:700;letter-spacing:.8px}
.name-symbol{width:54px;height:54px;border:3px solid var(--green);border-radius:8px;display:grid;place-items:center;font-family:"Playfair Display",serif;font-size:30px;font-weight:700;color:var(--green)}
.speech{width:54px;height:54px;border:3px solid var(--green);border-radius:50%;position:relative}
.speech:after{content:'';position:absolute;left:8px;bottom:-6px;width:16px;height:16px;border-left:3px solid var(--green);transform:skew(-30deg)}
.symbol{width:54px;height:54px;border:3px solid var(--green);border-radius:8px;display:grid;place-items:center;font-size:31px}

.gallery-box{
    border:1px solid #918f89;
    border-radius:6px;
    padding:10px;
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:8px;
}
.gallery-box img{
    width:100%;
    height:150px;
    object-fit:cover;
    display:block;
    border-radius:2px;
}
.dots{display:flex;justify-content:center;gap:8px;margin-top:18px}
.dots span,.dots b{width:9px;height:9px;border-radius:50%;background:#d2cabd}
.dots b{background:var(--burgundy)}
.stories{display:grid;grid-template-columns:200px 1fr;gap:38px;padding:45px 50px 38px}
.stories-copy h2{font-size:27px;line-height:1.35;margin-bottom:18px}
.story-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  align-items:start;
}
.story-card{border:1px solid var(--line);border-radius:6px;overflow:hidden}
.story-img{height:170px;position:relative}
.story-img img{width:100%;height:100%;object-fit:cover}
.story-img span{position:absolute;left:10px;bottom:10px;background:white;border-radius:18px;padding:3px 9px;font-size:9px;font-weight:700}
.story-body{padding:16px}
.story-body h3{
  font:600 19px/1.3 "IBM Plex Sans",sans-serif;
  margin:0 0 12px;
}
.story-body p{font-size:12px;line-height:1.75;margin:0 0 15px}
.story-body small{font-size:11px}
@media(max-width:900px){
  .menu-toggle{display:block}
  .nav{display:none;position:absolute;top:98px;left:0;right:0;background:var(--paper);padding:18px 22px;flex-direction:column;align-items:flex-start}
  .nav.open{display:flex}
  .tool-grid{grid-template-columns:1fr 1fr}
  .gallery-box{grid-template-columns:repeat(3,1fr)}
  .stories{grid-template-columns:1fr}
  .story-grid{grid-template-columns:1fr}
  .story-img{height:190px}
}
@media(max-width:560px){
  .site-header{height:82px;padding:0 20px}
  .nav{top:82px}
  .hero{height:420px}
  .hero-copy{padding:62px 22px 0}
  .hero h1{font-size:40px}
  .section{padding:30px 22px}
  .tool-grid{grid-template-columns:1fr}
  .gallery{padding:0 14px 24px}
  .gallery-box{grid-template-columns:1fr 1fr;gap:6px;padding:8px}
  .stories{padding:20px 22px}
  .story-grid{grid-template-columns:1fr}
  .social-col{align-items:flex-start;gap:20px}
}
/* Our Footsteps */

.footsteps{
    max-width:1200px;
    width:calc(100% - 96px);
    margin:40px auto;
    padding:55px 30px 40px;
    border:1px solid #ddd6ca;
    border-radius:8px;
    background:transparent;
    text-align:center;
}
.footsteps-title h2{
    font-family:"Playfair Display",serif;
    font-size:34px;
    margin:10px 0;
    color:#0d2f27;
     margin:8px 0 12px;
}

.footsteps-desc{
    color:#6d6d6d;
    font-size:18px;
    line-height:1.9;
    margin:30px 0 50px;
}

.footsteps-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:16px;
}

.footstep img{

    height:200px;

    object-fit:cover;

    border-radius:6px;

    transition:.3s;

}

.footstep img:hover{

    transform:translateY(-4px);

}

.footstep span{

    display:block;

    margin-top:12px;

    font-size:13px;

    color:#666;

}
/* =========================
   STORIES PAGE
========================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 42px;
    font-size: 13px;
    font-weight: 600;
}

.main-nav a {
    color: var(--green);
    text-decoration: none;
    padding-bottom: 8px;
}

.main-nav a.active {
    color: var(--burgundy);
    border-bottom: 2px solid var(--burgundy);
}

.stories-page {
    width: min(1680px, 92%);
    margin: 0 auto;
}

.stories-hero {
    padding: 90px 0 65px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.stories-hero .eyebrow {
    margin: 0 0 14px;
    color: var(--burgundy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.stories-hero h1 {
    margin: 0;
  color:#5d5d5d;
    font-family: "Playfair Display", serif;
    font-size: clamp(48px, 6vw, 82px);
    line-height: 1;
}

.stories-hero .intro {
    margin: 25px 0 0;
    color: var(--gray);
    font-size: 18px;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .main-nav {
        gap: 18px;
        font-size: 12px;
    }

    .stories-hero {
        padding: 65px 20px 45px;
    }
}
.story-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 32px 0 38px;
    border-bottom: 1px solid var(--line);
}

.category-button {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--green);
    border-radius: 999px;
    padding: 10px 18px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
}

.category-button:hover,
.category-button.active {
    background: var(--burgundy);
    border-color: var(--burgundy);
    color: white;
}
.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 55px 0 90px;
}

.story-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--paper);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.story-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

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

.story-category {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--burgundy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.story-card h2 {
    margin: 0 0 14px;
    color: #5d5d5d;
    font-family: "Playfair Display", serif;
    font-size: 26px;
    line-height: 1.2;
}

.story-card p {
    margin: 0 0 20px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
}

.story-card small {
    color: #8a8178;
    font-size: 11px;
    letter-spacing: 0.4px;
}

@media (max-width: 900px) {
    .stories-grid {
        grid-template-columns: 1fr;
    }

    .story-card img {
        height: 220px;
    }
}
/* FEATURED STORY */

.story-card:first-child {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
}

.story-card:first-child img {
    height: 100%;
    min-height: 360px;
}

.story-card:first-child .story-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px;
}

.story-card:first-child h2 {
    font-size: 38px;
    line-height: 1.12;
}

.story-card img {
    transition: transform 0.4s ease;
}

.story-card:hover img {
    transform: scale(1.035);
}

@media (max-width: 900px) {
    .story-card:first-child {
        grid-column: auto;
        display: block;
    }

    .story-card:first-child img {
        min-height: 0;
        height: 220px;
    }

    .story-card:first-child h2 {
        font-size: 28px;
    }
}
/* ABOUT */

.about-page{

max-width:1200px;
margin:auto;
padding:120px 40px;

}

.about-hero{

text-align:center;

padding-bottom:90px;

border-bottom:1px solid var(--line);

}

.about-hero h1{

font-size:72px;

font-family:"Playfair Display",serif;

color:#555;

margin:15px 0 30px;

}

.about-hero .intro{

    max-width:700px;

    margin:40px auto 0;

    text-align:center;

    font-size:24px;

    line-height:1.8;

    color:var(--gray);

}
/* ABOUT PAGE */

.about-page {
    width: min(1500px, 92%);
    margin: 0 auto;
    padding-bottom: 100px;
}

.about-hero {
    padding: 90px 20px 75px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.about-hero h1 {
    margin: 12px 0 24px;
    color: #5d5d5d;
    font-family: "Playfair Display", serif;
    font-size: clamp(52px, 7vw, 88px);
    line-height: 1;
}

.about-hero .intro {
    max-width: 700px;
    margin: 28px auto 0;
    text-align: center;
    color: var(--gray);
    font-size: 20px;
    line-height: 1.55;
}
.about-profile {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: center;
    padding: 85px 0;
    border-bottom: 1px solid var(--line);
}

.about-photo img {
    width: 100%;
    height: 680px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px;
}

.about-copy h2,
.about-madang h2 {
    margin: 12px 0 28px;
    color: #5d5d5d;
    font-family: "Playfair Display", serif;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.12;
}

.about-copy p,
.about-madang p {
    color: var(--gray);
    font-size: 18px;
    line-height: 1.9;
}

.about-copy p {
    margin: 0 0 20px;
}

.about-quote {
    margin-top: 38px !important;
    padding-left: 24px;
    border-left: 3px solid var(--burgundy);
    color: #5d5d5d !important;
    font-family: "Playfair Display", serif;
    font-size: 26px !important;
    font-style: italic;
    line-height: 1.6 !important;
}

.about-madang {
    max-width: 850px;
    margin: 0 auto;
    padding: 45px 0 20px;
    text-align: center;
}

@media (max-width: 900px) {
    .about-profile {
        grid-template-columns: 1fr;
        gap: 42px;
        padding: 55px 0;
    }

    .about-photo img {
        height: 520px;
    }

    .about-hero {
        padding: 65px 20px 50px;
    }
}
/* PRIVACY POLICY */

.legal-page {
    width: min(920px, 90%);
    margin: 0 auto;
}

.legal-hero {
    padding: 90px 20px 65px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
    margin: 12px 0 18px;
    color: #5d5d5d;
    font-family: "Playfair Display", serif;
    font-size: clamp(48px, 6vw, 76px);
    line-height: 1;
}

.legal-hero > p:last-child {
    color: var(--gray);
    font-size: 14px;
}

.legal-content {
    padding: 65px 0 20px;
}

.legal-content h2 {
    margin: 42px 0 12px;
    color: #5d5d5d;
    font-family: "Playfair Display", serif;
    font-size: 28px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin: 0;
    color: var(--gray);
    font-size: 16px;
    line-height: 1.9;
}

.legal-content a {
    color: var(--burgundy);
    text-decoration: underline;
    text-underline-offset: 4px;
}
/* CONTACT PAGE */

.contact-page {
    width: min(1180px, 90%);
    margin: 0 auto;
}

.contact-hero {
    padding: 90px 20px 70px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.contact-hero h1 {
    margin: 12px 0 24px;
    color: #5d5d5d;
    font-family: "Playfair Display", serif;
    font-size: clamp(52px, 7vw, 84px);
    line-height: 1;
}

.contact-hero .intro {
    margin: 0;
    color: var(--gray);
    font-size: 20px;
    line-height: 1.8;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 80px;
    align-items: start;
    padding: 80px 0 20px;
}

.contact-copy h2 {
    margin: 12px 0 26px;
    color: #5d5d5d;
    font-family: "Playfair Display", serif;
    font-size: clamp(38px, 4.5vw, 58px);
    line-height: 1.15;
}

.contact-copy > p {
    max-width: 650px;
    color: var(--gray);
    font-size: 17px;
    line-height: 1.9;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin-top: 34px;
}

.contact-list span {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    color: #5d5d5d;
    font-size: 16px;
}

.contact-card {
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.contact-card h3 {
    margin: 12px 0 18px;
    color: #5d5d5d;
    font-family: "Playfair Display", serif;
    font-size: 38px;
}

.contact-card p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
}

.contact-card a {
    display: inline-block;
    margin: 24px 0 28px;
    color: var(--burgundy);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid var(--burgundy);
    padding-bottom: 5px;
}

.contact-card small {
    display: block;
    color: #8a8178;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 45px;
        padding-top: 55px;
    }

    .contact-hero {
        padding: 65px 20px 50px;
    }

    .contact-card {
        padding: 30px;
    }
}


/* =========================
   FOOTER — FINAL
========================= */

.site-footer {
    margin-top: 20px;
    padding: 42px 0 24px;
    background: var(--green);
    color: #f5f1e8;
}

.footer-inner {
    width: min(1080px, 88%);
    margin: 0 auto;
    display: block;
}

.footer-brand h3 {
    margin: 0 0 10px;
    color: #f5f1e8;
    font-family: "Playfair Display", serif;
    font-size: 38px;
    line-height: 1;
}

.footer-brand p {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.footer-brand small {
    display: block;
    color: #d8d3c8;
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 20px;
}

.footer-links a {
    color: #8d7f73;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-bottom {
    width: min(1080px, 88%);
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #f2eee6;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 700px) {
    .site-footer {
        padding: 32px 0 18px;
    }

    .footer-links {
        gap:18px;
    }
}
.story-read-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--burgundy);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-bottom: 1px solid var(--burgundy);
    padding-bottom: 4px;
    transition: 0.2s ease;
}

.story-read-link:hover {
    transform: translateX(4px);
}
/* HOME STORY CARD LINK FIX */
.story-grid > a.story-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.story-grid > a.story-card:hover {
    color: inherit;
}

/* 첫 번째 큰 카드의 기존 2단 레이아웃 복구 */
.story-grid > a.story-card:first-child {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
}

/* 카드 안의 이미지와 본문이 정상 크기를 유지하도록 */
.story-grid > a.story-card .story-img,
.story-grid > a.story-card .story-body {
    min-width: 0;
}

.story-grid > a.story-card .story-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home-story-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--burgundy);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--burgundy);
  padding-bottom: 3px;
}

.home-story-link:hover {
  opacity: 0.75;
}
/* HOME CONTENT WIDTH FIX */
#tools,
#stories,
.footsteps {
    width: calc(100% - 80px);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

#stories {
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 900px) {
    #tools,
    #stories,
    .footsteps {
        width: calc(100% - 40px);
    }
}

/* Blogger RSS / JSONP automatic story cards */
.story-img {
  display: block;
  color: inherit;
}

.story-body h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.story-body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.home-story-link,
.story-read-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--burgundy);
  font-weight: 700;
}

#all-blog-feed .story-card > a {
  display: block;
}

#all-blog-feed .story-card > a img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

#all-blog-feed .story-card-body h2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}


/* HD Blogger feed cards */
#home-blog-feed {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

#home-blog-feed .story-card {
  min-width: 0;
}

#home-blog-feed .story-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  image-rendering: auto;
}

@media (max-width: 980px) {
  #home-blog-feed {
    grid-template-columns: 1fr;
  }

  #home-blog-feed .story-img img {
    height: auto;
    aspect-ratio: 16 / 10;
  }
}


/* =========================
   HOME — TOOLS + STORIES UNIFIED
========================= */

/* Both homepage sections share one visual width. */
#tools,
#stories {
  width: min(1160px, calc(100% - 80px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/* Tools: four equal cards. */
#tools .tool-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

#tools .tool-card {
  min-height: 214px;
  padding: 30px;
  border-radius: 8px;
  background: transparent;
}

/* Stories: heading column + three equal post cards. */
#stories {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-left: 0;
  padding-right: 0;
}

#home-blog-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px;
  align-items: stretch;
}

#home-blog-feed .story-card,
#home-blog-feed .story-card:first-child {
  display: flex !important;
  flex-direction: column;
  grid-column: auto !important;
  min-width: 0;
  min-height: 410px;
  border-radius: 8px;
  background: transparent;
}

#home-blog-feed .story-img,
#home-blog-feed .story-card:first-child .story-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  min-height: 0;
}

#home-blog-feed .story-img img,
#home-blog-feed .story-card:first-child .story-img img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

#home-blog-feed .story-body,
#home-blog-feed .story-card:first-child .story-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px;
}

#home-blog-feed .story-body h3,
#home-blog-feed .story-card:first-child h3 {
  min-height: 66px;
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.12;
}

#home-blog-feed .story-body p {
  min-height: 88px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.65;
}

#home-blog-feed .story-body small {
  margin-top: auto;
}

#home-blog-feed .home-story-link {
  margin-top: 8px;
  align-self: flex-start;
}

/* Featured layout belongs only to the full Stories page, not the homepage. */
#all-blog-feed .story-card:first-child {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
}

#all-blog-feed .story-card:first-child img {
  height: 100%;
  min-height: 360px;
}

#all-blog-feed .story-card:first-child .story-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
}

#all-blog-feed .story-card:first-child h2 {
  font-size: 38px;
  line-height: 1.12;
}

@media (max-width: 980px) {
  #tools,
  #stories {
    width: min(760px, calc(100% - 40px));
  }

  #tools .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #stories {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  #home-blog-feed {
    grid-template-columns: 1fr !important;
  }

  #home-blog-feed .story-card,
  #home-blog-feed .story-card:first-child {
    min-height: 0;
  }

  #home-blog-feed .story-img,
  #home-blog-feed .story-card:first-child .story-img {
    aspect-ratio: 16 / 10;
  }

  #all-blog-feed .story-card:first-child {
    grid-column: auto;
    display: block;
  }

  #all-blog-feed .story-card:first-child img {
    min-height: 0;
    height: 220px;
  }

  #all-blog-feed .story-card:first-child h2 {
    font-size: 28px;
  }
}

@media (max-width: 560px) {
  #tools .tool-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================
   HOME — SECTION TITLES UNIFIED
========================= */

/* Same overall content width for Tools and Stories. */
#tools,
#stories {
  width: min(1160px, calc(100% - 80px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Make the section headings feel like one system. */
#tools .section-title,
#stories .stories-copy {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

#tools .section-title .eyebrow,
#stories .stories-copy .eyebrow {
  margin-bottom: 12px;
}

#tools .section-title h2,
#stories .stories-copy h2 {
  margin: 0;
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1.05;
  max-width: 360px;
}

/* Add a matching burgundy action button under the Tools heading. */
#tools .section-title::after {
  content: "EXPLORE TOOLS →";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 24px;
  padding: 0 26px;
  border-radius: 4px;
  background: var(--burgundy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* Keep Stories button visually identical. */
#stories .stories-copy .button,
#stories .stories-copy a.button {
  min-height: 50px;
  padding: 0 26px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* Equal spacing between headings and card areas. */
#tools .tool-grid {
  margin-top: 34px;
}

#stories {
  padding-top: 84px;
}

#stories .stories-copy {
  padding-top: 0;
}

/* Desktop: align the left edges of both section headings. */
@media (min-width: 981px) {
  #tools {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  #tools .section-title {
    grid-column: 1;
  }

  #tools .tool-grid {
    grid-column: 2;
    margin-top: 0;
  }

  #stories {
    grid-template-columns: 220px minmax(0, 1fr) !important;
    gap: 48px !important;
  }
}

@media (max-width: 980px) {
  #tools,
  #stories {
    width: min(760px, calc(100% - 40px)) !important;
  }

  #tools {
    display: block;
  }

  #tools .section-title,
  #stories .stories-copy {
    min-height: 0;
  }

  #tools .section-title::after {
    margin-bottom: 28px;
  }

  #tools .tool-grid {
    margin-top: 0;
  }
}


/* =========================
   HOME FINAL — STORIES FIRST
========================= */

#stories,
#tools {
  width: min(1180px, calc(100% - 80px)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Both sections use the same left heading column and the same content width. */
#stories,
#tools {
  display: grid !important;
  grid-template-columns: 230px minmax(0, 1fr) !important;
  gap: 50px !important;
  align-items: start !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#stories {
  padding-top: 72px !important;
  padding-bottom: 72px !important;
}

#tools {
  padding-top: 58px !important;
  padding-bottom: 84px !important;
  border-top: 1px solid rgba(122, 15, 45, 0.16);
}

/* Left-side section headings */
#stories .stories-copy,
#tools .section-title {
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  padding: 0 !important;
}

#stories .stories-copy .eyebrow,
#tools .section-title .eyebrow {
  margin: 0 0 16px !important;
}

#stories .stories-copy h2,
#tools .section-title h2 {
  margin: 0 !important;
  max-width: 220px !important;
  font-size: 42px !important;
  line-height: 1.05 !important;
}

/* Real button in Stories */
#stories .stories-copy .button,
#stories .stories-copy a.button {
  min-height: 52px !important;
  margin-top: 26px !important;
  padding: 0 28px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
}

/* Matching visual button under Tools heading */
#tools .section-title::after {
  content: "EXPLORE TOOLS →" !important;
  min-height: 52px !important;
  margin-top: 26px !important;
  padding: 0 28px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--burgundy) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
}

/* Stories: three equal cards */
#home-blog-feed {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

#home-blog-feed .story-card,
#home-blog-feed .story-card:first-child {
  display: flex !important;
  flex-direction: column !important;
  grid-column: auto !important;
  min-width: 0 !important;
  min-height: 460px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

#home-blog-feed .story-img,
#home-blog-feed .story-card:first-child .story-img {
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  min-height: 0 !important;
}

#home-blog-feed .story-img img,
#home-blog-feed .story-card:first-child .story-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

#home-blog-feed .story-body,
#home-blog-feed .story-card:first-child .story-body {
  display: flex !important;
  flex: 1 !important;
  flex-direction: column !important;
  padding: 22px !important;
}

#home-blog-feed .story-body h3,
#home-blog-feed .story-card:first-child h3 {
  min-height: 76px !important;
  margin: 0 0 14px !important;
  font-size: 23px !important;
  line-height: 1.12 !important;
}

#home-blog-feed .story-body p {
  min-height: 112px !important;
  margin: 0 0 18px !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

#home-blog-feed .story-body small {
  margin-top: auto !important;
}

#home-blog-feed .home-story-link {
  margin-top: 8px !important;
}

/* Tools: four equal cards matching the same content width */
#tools .tool-grid {
  grid-column: 2 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin-top: 0 !important;
}

#tools .tool-card {
  min-height: 210px !important;
  padding: 28px !important;
  border-radius: 8px !important;
}

/* Keep tool card title hierarchy coherent with post cards */
#tools .tool-card h3 {
  font-size: 20px !important;
  line-height: 1.15 !important;
}

/* Responsive */
@media (max-width: 980px) {
  #stories,
  #tools {
    width: min(760px, calc(100% - 40px)) !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  #stories .stories-copy h2,
  #tools .section-title h2 {
    max-width: 100% !important;
    font-size: 36px !important;
  }

  #home-blog-feed {
    grid-template-columns: 1fr !important;
  }

  #home-blog-feed .story-card,
  #home-blog-feed .story-card:first-child {
    min-height: 0 !important;
  }

  #tools .tool-grid {
    grid-column: 1 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  #stories,
  #tools {
    width: min(100% - 28px, 620px) !important;
  }

  #tools .tool-grid {
    grid-template-columns: 1fr !important;
  }

  #stories .stories-copy h2,
  #tools .section-title h2 {
    font-size: 32px !important;
  }
}


/* =========================
   FINAL MOCKUP MATCH
   Force Local Tools to mirror Local Stories
========================= */

@media (min-width: 981px) {
  #tools {
    display: grid !important;
    grid-template-columns: 230px minmax(0, 1fr) !important;
    column-gap: 50px !important;
    row-gap: 0 !important;
    align-items: start !important;
  }

  #tools .section-title {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 230px !important;
    max-width: 230px !important;
    min-width: 230px !important;
    align-self: start !important;
    justify-self: start !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #tools .section-title .eyebrow {
    margin: 0 0 16px 0 !important;
    text-align: left !important;
  }

  #tools .section-title h2 {
    width: 230px !important;
    max-width: 230px !important;
    margin: 0 !important;
    text-align: left !important;
    font-size: 42px !important;
    line-height: 1.05 !important;
  }

  #tools .section-title::after {
    content: "EXPLORE TOOLS →" !important;
    margin-top: 26px !important;
    align-self: flex-start !important;
  }

  #tools .tool-grid {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    align-self: start !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }

  #tools .tool-card {
    min-width: 0 !important;
    min-height: 210px !important;
    padding: 28px !important;
  }
}

/* Match both left-side headings exactly */
#stories .stories-copy,
#tools .section-title {
  box-sizing: border-box !important;
}

#stories .stories-copy h2,
#tools .section-title h2 {
  font-family: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
}

/* Keep cards visually aligned with the mockup */
#tools .tool-card h3 {
  font-size: 18px !important;
  line-height: 1.15 !important;
  margin-top: 0 !important;
}

#tools .tool-card p {
  font-size: 14px !important;
  line-height: 1.55 !important;
}

@media (max-width: 980px) {
  #tools .section-title {
    text-align: left !important;
    align-items: flex-start !important;
  }

  #tools .section-title h2 {
    text-align: left !important;
    max-width: 100% !important;
  }
}


/* =========================
   FINAL FIX — MATCH APPROVED MOCKUP
========================= */

/* Use the same serif face and scale for both section titles. */
#stories .stories-copy h2,
#tools .section-title h2 {
  font-family: "Playfair Display", serif !important;
  font-weight: 700 !important;
  font-size: 42px !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
  color: var(--green) !important;
  margin: 0 !important;
}

/* Same two-column structure, width and top alignment. */
#stories,
#tools {
  width: min(1180px, calc(100% - 80px)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: grid !important;
  grid-template-columns: 230px minmax(0, 1fr) !important;
  gap: 50px !important;
  align-items: start !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#stories {
  padding-top: 72px !important;
  padding-bottom: 72px !important;
}

#tools {
  padding-top: 58px !important;
  padding-bottom: 84px !important;
  border-top: 1px solid rgba(122, 15, 45, 0.16);
}

#stories .stories-copy,
#tools .section-title {
  grid-column: 1 !important;
  width: 230px !important;
  min-width: 230px !important;
  max-width: 230px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
}
#stories .stories-copy .eyebrow,
#tools .section-title .eyebrow {
  margin: 0 0 16px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
}
.story-count {
  font-size: 18px !important;
  font-weight: 700 !important;
}

/* Disable the old pseudo-button and use the real button in HTML. */
#tools .section-title::after {
  content: none !important;
  display: none !important;
}

#stories .stories-copy .button,
#tools .section-title .tools-button {
  min-height: 52px !important;
  margin-top: 26px !important;
  padding: 0 28px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: flex-start !important;
  background: var(--burgundy) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  white-space: nowrap !important;
}

/* Right-side card areas start at the same vertical point. */
#home-blog-feed,
#tools .tool-grid {
  grid-column: 2 !important;
  margin: 0 !important;
  align-self: start !important;
}

#tools .tool-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
}

#tools .tool-card {
  min-height: 210px !important;
  padding: 28px !important;
  border-radius: 8px !important;
}

#tools .tool-card h3 {
  font-size: 18px !important;
  line-height: 1.15 !important;
}

#tools .tool-card p {
  font-size: 14px !important;
  line-height: 1.55 !important;
}

/* Only completed tools show arrows. */
#tools .tool-card:nth-child(3) .arrow,
#tools .tool-card:nth-child(4) .arrow {
  display: none !important;
}

@media (max-width: 980px) {
  #stories,
  #tools {
    width: min(760px, calc(100% - 40px)) !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  #stories .stories-copy,
  #tools .section-title {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  #stories .stories-copy h2,
  #tools .section-title h2 {
    font-size: 36px !important;
  }

  #home-blog-feed,
  #tools .tool-grid {
    grid-column: 1 !important;
  }

  #tools .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  #tools .tool-grid {
    grid-template-columns: 1fr !important;
  }

  #stories .stories-copy h2,
  #tools .section-title h2 {
    font-size: 32px !important;
  }
}


/* =========================
   FINAL TYPOGRAPHY POLISH
========================= */

/* Main section title: slightly larger */
#stories .stories-copy h2 {
  font-family: "Playfair Display", serif !important;
  font-size: 44px !important;
  line-height: 1.04 !important;
  font-weight: 700 !important;
  color: #2f3432 !important;
}

/* Secondary section title: 3px smaller */
#tools .section-title h2 {
  font-family: "Playfair Display", serif !important;
  font-size: 41px !important;
  line-height: 1.06 !important;
  font-weight: 700 !important;
  color: #2f3432 !important;
}

/* Card titles in both sections: same dark gray */
#home-blog-feed .story-body h3,
#home-blog-feed .story-card:first-child h3,
#tools .tool-card h3 {
  color: #2f3432 !important;
}

/* Keep the hierarchy on smaller screens */
@media (max-width: 980px) {
  #stories .stories-copy h2 {
    font-size: 38px !important;
  }

  #tools .section-title h2 {
    font-size: 35px !important;
  }
}

@media (max-width: 560px) {
  #stories .stories-copy h2 {
    font-size: 34px !important;
  }

  #tools .section-title h2 {
    font-size: 31px !important;
  }
}


/* =========================
   LOCAL TOOLS — FINAL BALANCE
========================= */

/* Lift the Local Tools heading block slightly and keep it aligned with the cards. */
#tools .section-title {
  transform: translateY(-10px);
}

/* Give tool cards a little more height so the section balances with Stories. */
#tools .tool-card {
  min-height: 232px !important;
  padding: 30px !important;
}

/* Refine typography inside tool cards. */
#tools .tool-card h3 {
  font-size: 19px !important;
  line-height: 1.18 !important;
  margin-bottom: 12px !important;
}

#tools .tool-card p {
  font-size: 13.5px !important;
  line-height: 1.6 !important;
}

/* Keep icons and arrows visually proportional. */
#tools .tool-card .symbol {
  margin-bottom: 18px !important;
}

#tools .tool-card .arrow {
  right: 20px !important;
  bottom: 18px !important;
}

/* Slightly reduce the visual gap above the tools section. */
#tools {
  padding-top: 52px !important;
}

/* Mobile/tablet: remove the lift and keep cards comfortable. */
@media (max-width: 980px) {
  #tools .section-title {
    transform: none;
  }

  #tools .tool-card {
    min-height: 210px !important;
  }
}


/* =========================
   MADANG FINAL BRAND COPY
========================= */

/* Match the gray used by the MADANG wordmark. */
#stories .stories-copy h2 {
  color: #6b6b6b !important;
}

#tools .section-title h2 {
  color: #6b6b6b !important;
  font-size: 41px !important;
  line-height: 1.06 !important;
}

/* Keep card titles in a clear dark gray. */
#home-blog-feed .story-body h3,
#home-blog-feed .story-card:first-child h3,
#tools .tool-card h3 {
  color: #343837 !important;
}


/* Mobile Our Footsteps: show all six photos in a compact 3 × 2 grid */
@media (max-width: 560px) {
  .footsteps {
    width: calc(100% - 24px);
    margin: 24px auto;
    padding: 28px 12px 24px;
  }

  .footsteps-title h2 {
    font-size: 28px;
  }

  .footsteps-desc {
    margin: 14px 0 24px;
    font-size: 14px;
    line-height: 1.55;
  }

  .footsteps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 8px;
  }

  .footstep {
    min-width: 0;
  }

  .footstep img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 7px;
  }

  .footstep span {
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
}
/* MADANG BACKGROUND + CARDS - FINAL */

/* 전체 배경 */
html,
body,
main,
section,
#stories,
#tools {
    background-color: #f5f1e8 !important;
}

/* 스토리 카드 + 미니 페이지 카드 */
#home-blog-feed .story-card,
#tools .tool-card {
    background-color: #e8e0d2 !important;
}

/* 헤더 */
.site-header {
    background-color: #faf8f2 !important;
}