/* =========================================================
   SouthCarolina.co.jp
   Editorial magazine system
   Theme: Lowcountry elegance, marsh light, Charleston memory
   ========================================================= */

:root{
  --ink:#1f211d;
  --soft-ink:#4c4a40;
  --muted:#766f61;
  --paper:#fbf7ef;
  --paper-2:#f4eadb;
  --paper-3:#eadcc7;
  --white:#fffdf8;

  --oak:#24342b;
  --moss:#6e765d;
  --marsh:#9d8d64;
  --water:#476c6b;
  --river:#244d50;
  --brick:#9b5c43;
  --rose:#c9a28c;
  --gold:#b9975b;
  --shadow:rgba(31,33,29,.16);
  --deep-shadow:rgba(31,33,29,.28);

  --serif: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  --max:1180px;
  --wide:1380px;
  --radius:26px;
  --radius-sm:16px;
  --line:rgba(31,33,29,.14);
}

/* ---------- base ---------- */

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:
    radial-gradient(circle at 12% 5%, rgba(185,151,91,.20), transparent 28%),
    radial-gradient(circle at 86% 0%, rgba(71,108,107,.17), transparent 31%),
    linear-gradient(180deg, var(--paper), #f8f1e6 44%, #efe2d0 100%);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.85;
  letter-spacing:.02em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

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

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

a:hover{
  color:var(--brick);
}

p{
  margin:0 0 1.25rem;
}

h1,h2,h3,h4{
  font-family:var(--serif);
  font-weight:500;
  line-height:1.25;
  letter-spacing:.03em;
  margin:0;
}

h1{
  font-size:clamp(2.6rem, 7vw, 6.8rem);
}

h2{
  font-size:clamp(2rem, 4vw, 4.25rem);
}

h3{
  font-size:clamp(1.35rem, 2vw, 2.1rem);
}

h4{
  font-size:1.05rem;
}

strong{
  color:var(--ink);
  font-weight:800;
}

::selection{
  background:rgba(185,151,91,.32);
}

/* ---------- utility ---------- */

.wrap{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}

.wrap-wide{
  width:min(var(--wide), calc(100% - 40px));
  margin:0 auto;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  color:var(--brick);
  font-family:var(--sans);
  font-size:.74rem;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.kicker::before{
  content:"";
  width:34px;
  height:1px;
  background:currentColor;
  opacity:.72;
}

.lede{
  color:var(--soft-ink);
  font-family:var(--serif);
  font-size:clamp(1.15rem, 2vw, 1.7rem);
  line-height:1.82;
}

.small{
  color:var(--muted);
  font-size:.92rem;
  line-height:1.75;
}

.rule{
  height:1px;
  background:linear-gradient(90deg, transparent, var(--line), transparent);
  margin:56px 0;
}

.jp-note{
  writing-mode:vertical-rl;
  text-orientation:mixed;
  font-family:var(--serif);
  color:rgba(31,33,29,.62);
  letter-spacing:.16em;
  line-height:1.8;
}

/* ---------- header / navigation ---------- */

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(251,247,239,.86);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(31,33,29,.1);
}

.nav{
  width:min(var(--wide), calc(100% - 36px));
  min-height:74px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  color:var(--oak);
}

.brand-mark{
  width:42px;
  height:42px;
  border-radius:50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(255,253,248,.85) 0 12%, transparent 13%),
    linear-gradient(135deg, var(--water), var(--oak));
  box-shadow:0 8px 22px rgba(36,52,43,.22);
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}

.brand-title{
  font-family:var(--serif);
  font-size:1.2rem;
  letter-spacing:.05em;
}

.brand-subtitle{
  color:var(--muted);
  font-size:.72rem;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.nav-links a{
  padding:9px 12px;
  border-radius:999px;
  color:var(--soft-ink);
  font-size:.88rem;
  font-weight:700;
}

.nav-links a:hover,
.nav-links a[aria-current="page"]{
  background:rgba(71,108,107,.12);
  color:var(--river);
}

/* ---------- hero ---------- */

.hero{
  position:relative;
  min-height:calc(100vh - 74px);
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  isolation:isolate;
  background:var(--oak);
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(15,22,18,.78) 0%, rgba(15,22,18,.42) 45%, rgba(15,22,18,.16) 100%),
    linear-gradient(180deg, rgba(15,22,18,.05) 0%, rgba(15,22,18,.8) 100%);
  z-index:1;
}

.hero img,
.hero-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
  transform:scale(1.02);
}

.hero-content{
  position:relative;
  z-index:2;
  width:min(var(--wide), calc(100% - 44px));
  margin:0 auto;
  padding:96px 0 82px;
  color:#fffaf0;
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.05fr) minmax(260px, .42fr);
  gap:48px;
  align-items:end;
}

.hero .kicker{
  color:#f0d8ad;
  margin-bottom:22px;
}

.hero h1{
  max-width:950px;
  text-shadow:0 22px 55px rgba(0,0,0,.38);
}

.hero p{
  max-width:760px;
  margin-top:28px;
  color:rgba(255,250,240,.88);
  font-family:var(--serif);
  font-size:clamp(1.05rem, 1.7vw, 1.45rem);
  line-height:1.88;
}

.hero-card{
  background:rgba(255,253,248,.12);
  border:1px solid rgba(255,253,248,.24);
  border-radius:var(--radius);
  padding:26px;
  backdrop-filter:blur(18px);
  box-shadow:0 28px 70px rgba(0,0,0,.24);
}

.hero-card h3{
  color:#fffaf0;
  font-size:1.55rem;
  margin-bottom:14px;
}

.hero-card p{
  margin:0;
  color:rgba(255,250,240,.82);
  font-family:var(--sans);
  font-size:.94rem;
  line-height:1.8;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:34px;
}

/* ---------- buttons ---------- */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:12px 20px;
  border-radius:999px;
  border:1px solid rgba(31,33,29,.16);
  background:var(--white);
  color:var(--ink);
  font-weight:800;
  font-size:.92rem;
  box-shadow:0 14px 34px rgba(31,33,29,.12);
}

.btn:hover{
  transform:translateY(-1px);
  color:var(--ink);
  box-shadow:0 18px 42px rgba(31,33,29,.18);
}

.btn-primary{
  background:linear-gradient(135deg, var(--oak), var(--water));
  color:#fffaf0;
  border-color:transparent;
}

.btn-primary:hover{
  color:#fffaf0;
}

.hero .btn{
  border-color:rgba(255,253,248,.28);
}

.hero .btn-primary{
  background:#fffaf0;
  color:var(--oak);
}

.hero .btn-ghost{
  background:rgba(255,253,248,.10);
  color:#fffaf0;
}

/* ---------- section system ---------- */

.section{
  padding:96px 0;
}

.section-tight{
  padding:64px 0;
}

.section-dark{
  background:
    radial-gradient(circle at 10% 10%, rgba(185,151,91,.18), transparent 28%),
    linear-gradient(135deg, #1f2c24, #173538);
  color:#fffaf0;
}

.section-dark p,
.section-dark .small{
  color:rgba(255,250,240,.75);
}

.section-head{
  display:grid;
  grid-template-columns:minmax(0, .75fr) minmax(260px, .45fr);
  gap:44px;
  align-items:end;
  margin-bottom:44px;
}

.section-head p{
  color:var(--soft-ink);
  margin:0;
}

.section-dark .section-head p{
  color:rgba(255,250,240,.78);
}

/* ---------- editorial intro ---------- */

.intro-panel{
  margin-top:-54px;
  position:relative;
  z-index:5;
}

.intro-card{
  background:rgba(255,253,248,.94);
  border:1px solid rgba(31,33,29,.1);
  border-radius:34px;
  padding:42px;
  box-shadow:0 30px 80px rgba(31,33,29,.14);
}

.intro-card-grid{
  display:grid;
  grid-template-columns:minmax(0, .9fr) minmax(260px, .45fr);
  gap:34px;
  align-items:start;
}

.intro-card h2{
  margin:12px 0 22px;
}

.stat-list{
  display:grid;
  gap:14px;
}

.stat{
  padding:18px 18px 16px;
  border-radius:20px;
  background:linear-gradient(180deg, #fffaf2, #f2e7d7);
  border:1px solid rgba(31,33,29,.1);
}

.stat b{
  display:block;
  color:var(--river);
  font-family:var(--serif);
  font-size:1.65rem;
  line-height:1.1;
}

.stat span{
  display:block;
  color:var(--muted);
  font-size:.84rem;
  line-height:1.55;
  margin-top:6px;
}

/* ---------- cards ---------- */

.card-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:24px;
}

.card{
  overflow:hidden;
  border-radius:var(--radius);
  background:var(--white);
  border:1px solid rgba(31,33,29,.1);
  box-shadow:0 18px 46px rgba(31,33,29,.1);
  transition:transform .18s ease, box-shadow .18s ease;
}

.card:hover{
  transform:translateY(-4px);
  box-shadow:0 28px 66px rgba(31,33,29,.16);
}

.card-media{
  position:relative;
  aspect-ratio:4 / 3;
  overflow:hidden;
  background:var(--paper-3);
}

.card-media img{
  height:100%;
  object-fit:cover;
  transition:transform .4s ease;
}

.card:hover .card-media img{
  transform:scale(1.045);
}

.card-label{
  position:absolute;
  left:16px;
  bottom:16px;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(255,253,248,.9);
  color:var(--oak);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.card-body{
  padding:25px;
}

.card-body h3{
  margin-bottom:12px;
}

.card-body p{
  color:var(--soft-ink);
  font-size:.95rem;
  line-height:1.75;
}

.card-link{
  display:inline-flex;
  margin-top:8px;
  color:var(--brick);
  font-weight:900;
  font-size:.9rem;
}

/* ---------- feature layout ---------- */

.feature-band{
  display:grid;
  grid-template-columns:minmax(0, .9fr) minmax(320px, .65fr);
  gap:36px;
  align-items:center;
  padding:36px;
  border-radius:34px;
  background:
    linear-gradient(135deg, rgba(255,253,248,.96), rgba(244,234,219,.92));
  border:1px solid rgba(31,33,29,.1);
  box-shadow:0 24px 70px rgba(31,33,29,.12);
}

.feature-band.reverse{
  grid-template-columns:minmax(320px, .65fr) minmax(0, .9fr);
}

.feature-band.reverse .feature-image{
  order:1;
}

.feature-band.reverse .feature-copy{
  order:2;
}

.feature-image{
  border-radius:26px;
  overflow:hidden;
  box-shadow:0 24px 55px rgba(31,33,29,.18);
}

.feature-image img{
  aspect-ratio:5 / 4;
  object-fit:cover;
}

.feature-copy h2{
  margin:12px 0 20px;
}

.feature-copy p{
  color:var(--soft-ink);
}

.feature-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:24px;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(71,108,107,.12);
  color:var(--river);
  font-size:.77rem;
  font-weight:800;
}

/* ---------- destination tiles ---------- */

.destination-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr .8fr;
  grid-auto-rows:260px;
  gap:18px;
}

.destination{
  position:relative;
  overflow:hidden;
  border-radius:var(--radius);
  background:var(--oak);
  color:#fffaf0;
  box-shadow:0 18px 46px rgba(31,33,29,.14);
}

.destination:first-child{
  grid-row:span 2;
}

.destination img{
  height:100%;
  object-fit:cover;
}

.destination::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.68));
}

.destination-copy{
  position:absolute;
  z-index:2;
  left:24px;
  right:24px;
  bottom:22px;
}

.destination-copy h3{
  font-size:clamp(1.35rem, 2vw, 2.25rem);
  margin-bottom:8px;
}

.destination-copy p{
  margin:0;
  color:rgba(255,250,240,.82);
  font-size:.92rem;
  line-height:1.65;
}

/* ---------- article pages ---------- */

.article-hero{
  padding:86px 0 52px;
  background:
    radial-gradient(circle at 14% 12%, rgba(185,151,91,.22), transparent 32%),
    linear-gradient(180deg, #fff8ec, var(--paper));
}

.article-head{
  width:min(980px, calc(100% - 40px));
  margin:0 auto;
  text-align:center;
}

.article-head .kicker{
  justify-content:center;
}

.article-head .kicker::after{
  content:"";
  width:34px;
  height:1px;
  background:currentColor;
  opacity:.72;
}

.article-head h1{
  margin:18px 0 24px;
  font-size:clamp(2.45rem, 6vw, 5.8rem);
}

.article-head .lede{
  margin:0 auto;
  max-width:820px;
}

.article-cover{
  width:min(var(--wide), calc(100% - 40px));
  margin:44px auto 0;
  border-radius:34px;
  overflow:hidden;
  box-shadow:0 30px 90px rgba(31,33,29,.18);
}

.article-cover img{
  aspect-ratio:16 / 8;
  object-fit:cover;
}

.article-layout{
  width:min(1120px, calc(100% - 40px));
  margin:0 auto;
  display:grid;
  grid-template-columns:230px minmax(0, 760px);
  gap:58px;
  padding:78px 0;
}

.article-sidebar{
  position:sticky;
  top:104px;
  align-self:start;
  color:var(--muted);
  font-size:.88rem;
}

.article-sidebar .box{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:20px 0;
}

.article-content{
  font-family:var(--serif);
  font-size:1.08rem;
  line-height:2.08;
}

.article-content p{
  margin-bottom:1.6rem;
}

.article-content h2{
  margin:3.1rem 0 1.15rem;
  font-size:clamp(1.75rem, 3vw, 3rem);
}

.article-content h3{
  margin:2.4rem 0 1rem;
  color:var(--river);
}

.article-content blockquote{
  margin:2.4rem 0;
  padding:28px 32px;
  border-left:5px solid var(--gold);
  background:rgba(255,253,248,.74);
  border-radius:0 22px 22px 0;
  color:var(--soft-ink);
  font-size:1.18rem;
  line-height:1.95;
}

.article-content figure{
  margin:2.5rem 0;
}

.article-content figure img{
  border-radius:26px;
  box-shadow:0 20px 58px rgba(31,33,29,.14);
}

figcaption{
  margin-top:12px;
  color:var(--muted);
  font-family:var(--sans);
  font-size:.84rem;
  line-height:1.6;
}

/* ---------- real places / directory ---------- */

.place-list{
  display:grid;
  gap:18px;
}

.place{
  display:grid;
  grid-template-columns:1fr auto;
  gap:18px;
  padding:22px;
  border-radius:22px;
  background:rgba(255,253,248,.78);
  border:1px solid rgba(31,33,29,.1);
}

.place h3{
  font-size:1.35rem;
  margin-bottom:8px;
}

.place p{
  color:var(--soft-ink);
  font-size:.94rem;
  margin:0;
}

.place address{
  margin-top:10px;
  color:var(--muted);
  font-style:normal;
  font-size:.88rem;
  line-height:1.65;
}

.place .btn{
  align-self:center;
  box-shadow:none;
}

/* ---------- gallery ---------- */

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:16px;
}

.gallery-item{
  position:relative;
  overflow:hidden;
  border-radius:20px;
  background:var(--paper-3);
  box-shadow:0 14px 34px rgba(31,33,29,.1);
}

.gallery-item img{
  aspect-ratio:1 / 1;
  object-fit:cover;
  transition:transform .35s ease;
}

.gallery-item:hover img{
  transform:scale(1.06);
}

.gallery-item.wide{
  grid-column:span 2;
}

.gallery-item.tall{
  grid-row:span 2;
}

.gallery-item.wide img{
  aspect-ratio:2 / 1;
}

.gallery-item.tall img{
  height:100%;
  aspect-ratio:auto;
}

/* ---------- tag cloud / sitemap ---------- */

.tag-cloud{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.tag-cloud a{
  display:inline-flex;
  align-items:center;
  padding:9px 13px;
  border-radius:999px;
  background:rgba(255,253,248,.78);
  border:1px solid rgba(31,33,29,.1);
  color:var(--soft-ink);
  font-size:.88rem;
  font-weight:700;
}

.tag-cloud a:hover{
  background:var(--oak);
  color:#fffaf0;
}

/* ---------- footer ---------- */

.site-footer{
  padding:72px 0 38px;
  background:#18221d;
  color:#fffaf0;
}

.footer-grid{
  display:grid;
  grid-template-columns:1fr .8fr .8fr;
  gap:42px;
}

.footer-brand{
  font-family:var(--serif);
  font-size:2rem;
  line-height:1.2;
  margin-bottom:16px;
}

.site-footer p,
.site-footer a{
  color:rgba(255,250,240,.75);
}

.site-footer a:hover{
  color:#fffaf0;
}

.footer-links{
  display:grid;
  gap:9px;
}

.footer-links h4{
  color:#fffaf0;
  margin-bottom:8px;
  font-family:var(--sans);
  font-size:.8rem;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.copyright{
  margin-top:54px;
  padding-top:24px;
  border-top:1px solid rgba(255,253,248,.14);
  color:rgba(255,250,240,.58);
  font-size:.82rem;
}

/* ---------- reveal animation ---------- */

.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .6s ease, transform .6s ease;
}

.reveal.is-visible{
  opacity:1;
  transform:none;
}

/* ---------- responsive ---------- */

@media (max-width:1020px){
  .nav{
    align-items:flex-start;
    flex-direction:column;
    padding:16px 0;
  }

  .nav-links{
    justify-content:flex-start;
  }

  .site-header{
    position:relative;
  }

  .hero{
    min-height:760px;
  }

  .hero-grid,
  .section-head,
  .intro-card-grid,
  .feature-band,
  .feature-band.reverse,
  .article-layout,
  .footer-grid{
    grid-template-columns:1fr;
  }

  .feature-band.reverse .feature-image,
  .feature-band.reverse .feature-copy{
    order:initial;
  }

  .article-sidebar{
    position:relative;
    top:auto;
  }

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

  .destination-grid{
    grid-template-columns:1fr 1fr;
  }

  .destination:first-child{
    grid-row:span 1;
    grid-column:span 2;
  }

  .gallery-grid{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }
}

@media (max-width:720px){
  body{
    font-size:15px;
  }

  .wrap,
  .wrap-wide,
  .nav,
  .hero-content,
  .article-head,
  .article-cover,
  .article-layout{
    width:min(100% - 26px, var(--max));
  }

  .nav-links{
    gap:4px;
  }

  .nav-links a{
    padding:7px 9px;
    font-size:.8rem;
  }

  .hero{
    min-height:720px;
  }

  .hero-content{
    padding:72px 0 48px;
  }

  .hero-card{
    padding:20px;
  }

  .section{
    padding:68px 0;
  }

  .intro-card,
  .feature-band{
    padding:24px;
    border-radius:26px;
  }

  .card-grid,
  .destination-grid,
  .gallery-grid{
    grid-template-columns:1fr;
  }

  .destination,
  .destination:first-child{
    grid-column:auto;
    grid-row:auto;
    min-height:270px;
  }

  .gallery-item.wide,
  .gallery-item.tall{
    grid-column:auto;
    grid-row:auto;
  }

  .gallery-item.wide img,
  .gallery-item.tall img,
  .gallery-item img{
    aspect-ratio:4 / 3;
    height:auto;
  }

  .place{
    grid-template-columns:1fr;
  }

  .article-cover img{
    aspect-ratio:4 / 3;
  }

  .article-layout{
    padding:54px 0;
  }

  .article-content{
    font-size:1rem;
    line-height:1.95;
  }

  .footer-grid{
    gap:28px;
  }
}

@media (max-width:440px){
  .brand-title{
    font-size:1.05rem;
  }

  .brand-subtitle{
    font-size:.66rem;
  }

  .hero-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .btn{
    width:100%;
  }

  .jp-note{
    writing-mode:horizontal-tb;
  }
}
