/* =========================================================
   Moon.co.jp / site.css
   Matched to current /4.html class names:
   home-hero, editor-letter, issue-cover, doors-section,
   lead-features, departments, utility-section, site-index
   ========================================================= */

*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(216,184,112,.12), transparent 34rem),
    radial-gradient(circle at 84% 10%, rgba(117,148,205,.10), transparent 34rem),
    #05070d;
  color:#f5efe2;
  font-family:
    "Hiragino Mincho ProN",
    "Yu Mincho",
    "YuMincho",
    "Noto Serif JP",
    "Times New Roman",
    serif;
  line-height:1.85;
}

img,
picture,
video,
canvas,
svg{
  display:block;
  max-width:100%;
}

img{
  height:auto;
}

a{
  color:#f4d98b;
  text-decoration-color:rgba(244,217,139,.44);
  text-underline-offset:.18em;
}

a:hover{
  color:#fff2c4;
  text-decoration-color:#fff2c4;
}

button,
input,
textarea,
select{
  font:inherit;
}

::selection{
  background:rgba(216,184,112,.38);
  color:#fff8dd;
}

:root{
  --bg:#05070d;
  --ink:#f5efe2;
  --cream:#fff5dc;
  --soft:#cfc5b2;
  --softer:#a79f90;
  --gold:#d8b870;
  --gold2:#f4d98b;
  --line:rgba(255,255,255,.14);
  --line-soft:rgba(255,255,255,.09);
  --shadow:0 24px 70px rgba(0,0,0,.34);
  --max:1180px;
  --read:880px;
}

/* Header */

.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:14px clamp(18px,4vw,42px);
  background:rgba(5,7,13,.84);
  border-bottom:1px solid rgba(255,255,255,.10);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.brand,
.site-logo{
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff3cf;
  text-decoration:none;
  font-weight:900;
  letter-spacing:.05em;
  white-space:nowrap;
}

.brand-mark{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border:1px solid rgba(216,184,112,.58);
  border-radius:50%;
  background:rgba(216,184,112,.12);
  color:#f4d98b;
  font-size:1.18rem;
}

.brand-text{
  font-size:1.08rem;
}

.site-nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px 12px;
}

.site-nav a{
  color:#efe6d4;
  text-decoration:none;
  font-size:.92rem;
  line-height:1;
  padding:8px 10px;
  border-radius:999px;
  transition:background .2s ease, color .2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"]{
  color:#fff4c7;
  background:rgba(216,184,112,.13);
}

/* Typography */

h1,
h2,
h3,
h4{
  color:var(--cream);
  line-height:1.25;
  letter-spacing:.02em;
  margin:0 0 .7em;
}

h1{
  font-size:clamp(2.65rem, 6.5vw, 6.25rem);
  line-height:1.02;
  letter-spacing:.025em;
}

h2{
  font-size:clamp(1.75rem, 3.3vw, 2.8rem);
}

h3{
  font-size:clamp(1.22rem, 2.1vw, 1.58rem);
}

p{
  margin:0 0 1.2em;
}

strong{
  color:#fff6dc;
}

/* Readable labels */

.section-label,
.kicker,
.eyebrow,
.article-kicker,
.feature-kicker,
.section-kicker{
  display:inline-block;
  width:auto;
  max-width:max-content;
  margin:0 0 16px;
  padding:8px 14px;
  border:1px solid rgba(216,184,112,.62);
  border-radius:999px;
  background:rgba(5,7,13,.86);
  color:#f4d98b !important;
  font-size:.76rem;
  font-weight:900;
  letter-spacing:.15em;
  line-height:1;
  text-transform:uppercase;
  text-shadow:0 2px 10px rgba(0,0,0,.85);
  box-shadow:0 8px 26px rgba(0,0,0,.34);
}

/* Buttons */

.button-row,
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:26px;
}

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:999px;
  border:1px solid rgba(216,184,112,.5);
  text-decoration:none;
  font-weight:900;
  line-height:1;
  transition:transform .18s ease, background .18s ease, color .18s ease;
}

.button.primary{
  background:linear-gradient(135deg,#d8b870,#f4d98b);
  color:#111522;
  border-color:transparent;
}

.button.ghost{
  background:rgba(5,7,13,.50);
  color:#fff3cf;
}

.button:hover{
  transform:translateY(-1px);
}

/* Hero: current /4.html uses .home-hero */

.home-hero{
  position:relative;
  min-height:78vh;
  display:grid;
  align-items:end;
  isolation:isolate;
  overflow:hidden;
  background:#111;
}

.home-hero picture,
.home-hero picture img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:-3;
}

.home-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(90deg, rgba(0,0,0,.86), rgba(0,0,0,.55), rgba(0,0,0,.18)),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(5,7,13,.96));
}

.home-hero::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:42%;
  z-index:-1;
  background:linear-gradient(180deg, transparent, var(--bg));
}

.home-hero-copy{
  width:min(var(--max), calc(100% - 44px));
  margin:0 auto;
  padding:126px 0 76px;
}

.home-hero-copy h1{
  max-width:990px;
  text-shadow:0 12px 40px rgba(0,0,0,.82);
}

.home-hero-lead{
  max-width:860px;
  color:#fff0d4;
  font-size:clamp(1.06rem,2vw,1.3rem);
  line-height:2.05;
  text-shadow:0 8px 28px rgba(0,0,0,.84);
}

/* Editor letter: current /4.html uses .editor-letter */

.editor-letter{
  width:min(var(--max), calc(100% - 44px));
  margin:60px auto;
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:clamp(24px,4vw,54px);
  padding:36px;
  border:1px solid var(--line);
  border-radius:34px;
  background:linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  box-shadow:var(--shadow);
}

.editor-letter-body{
  color:var(--soft);
  font-size:1.05rem;
  line-height:2.05;
}

/* Issue cover: current /4.html uses .issue-cover */

.issue-cover{
  width:min(var(--max), calc(100% - 44px));
  margin:76px auto;
  display:grid;
  grid-template-columns:1fr 1.08fr;
  gap:clamp(28px,5vw,64px);
  align-items:center;
  padding:40px;
  border:1px solid rgba(245,231,200,.32);
  border-radius:38px;
  background:
    radial-gradient(circle at 80% 20%, rgba(216,184,112,.13), transparent 28rem),
    linear-gradient(135deg,#050914 0%,#091426 48%,#101b31 100%);
  box-shadow:0 30px 90px rgba(0,0,0,.38);
}

.issue-cover-copy p:not(.section-label):not(.issue-subtitle){
  color:#f1dfb6;
  font-size:1.06rem;
  line-height:2.0;
}

.issue-subtitle{
  color:#f4c76b;
  letter-spacing:.04em;
  margin:.2rem 0 1rem;
}

.issue-cover-art{
  margin:0;
}

.issue-cover-art img{
  width:100%;
  max-width:530px;
  margin-inline:auto;
  border-radius:30px;
  box-shadow:0 30px 90px rgba(0,0,0,.52);
}

.issue-cover-art figcaption{
  margin-top:.85rem;
  text-align:center;
  color:#f1dfb6;
  font-size:.9rem;
}

/* Section head */

.section-head{
  max-width:820px;
  margin:0 0 28px;
}

.section-head.compact{
  max-width:760px;
}

.section-head p:not(.section-label){
  color:var(--soft);
  font-size:1.02rem;
  line-height:1.92;
}

/* Four Doors */

.doors-section,
.lead-features,
.departments,
.utility-section,
.site-index{
  width:min(var(--max), calc(100% - 44px));
  margin:80px auto;
}

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

.door-card{
  display:block;
  min-height:280px;
  padding:28px;
  border:1px solid rgba(216,184,112,.34);
  border-radius:30px;
  background:linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
  color:var(--ink);
  text-decoration:none;
  box-shadow:0 18px 46px rgba(0,0,0,.24);
  transition:transform .2s ease, border-color .2s ease;
}

.door-card:hover{
  transform:translateY(-3px);
  border-color:rgba(216,184,112,.68);
}

.door-card span{
  display:inline-grid;
  place-items:center;
  width:44px;
  height:44px;
  margin-bottom:28px;
  border-radius:50%;
  border:1px solid rgba(216,184,112,.55);
  color:var(--gold2);
  font-weight:900;
}

.door-card h3{
  margin:0 0 12px;
}

.door-card p{
  color:var(--soft);
  line-height:1.8;
}

/* Lead Features */

.lead-feature-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:18px;
  align-items:stretch;
}

.lead-card{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:30px;
  background:rgba(255,255,255,.055);
  box-shadow:0 18px 46px rgba(0,0,0,.25);
}

.lead-card-large{
  grid-row:span 2;
}

.lead-card img{
  width:100%;
  aspect-ratio:4 / 3;
  object-fit:cover;
}

.lead-card-large img{
  aspect-ratio:4 / 3.4;
}

.lead-card div{
  padding:26px;
}

.lead-card p{
  color:var(--soft);
  line-height:1.86;
}

.lead-card h2 a,
.lead-card h3 a{
  color:var(--cream);
  text-decoration:none;
}

.lead-card h2 a:hover,
.lead-card h3 a:hover{
  color:var(--gold2);
}

/* Departments */

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

.department-card{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:30px;
  background:rgba(255,255,255,.055);
  box-shadow:0 18px 46px rgba(0,0,0,.25);
}

.department-card img{
  width:100%;
  aspect-ratio:4 / 3;
  object-fit:cover;
}

.department-card div{
  padding:26px;
}

.department-card p{
  color:var(--soft);
  line-height:1.86;
}

.department-card a{
  font-weight:900;
}

/* Quote */

.quote-section{
  width:min(980px, calc(100% - 44px));
  margin:86px auto;
  padding:44px;
  border-top:1px solid rgba(216,184,112,.38);
  border-bottom:1px solid rgba(216,184,112,.38);
}

.quote-section blockquote{
  margin:0;
}

.quote-section p{
  margin:0;
  color:#fff1d2;
  font-size:clamp(1.35rem, 3vw, 2.2rem);
  line-height:1.8;
  text-align:center;
}

/* Utility */

.utility-section{
  padding:38px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:36px;
  background:linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
}

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

.utility-card{
  padding:26px;
  border:1px solid var(--line);
  border-radius:28px;
  background:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  box-shadow:0 18px 46px rgba(0,0,0,.22);
}

.utility-card p{
  color:var(--soft);
  line-height:1.86;
}

.utility-card a{
  font-weight:900;
}

/* Site Index */

.site-index.quiet{
  margin-bottom:94px;
  padding:32px 36px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:32px;
  background:rgba(255,255,255,.032);
}

.site-index-head{
  margin-bottom:24px;
}

.site-index-head h2{
  font-size:clamp(1.45rem, 2.4vw, 2rem);
}

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

.link-columns h3{
  color:#fff2cc;
  font-size:1.08rem;
}

.link-columns a{
  display:block;
  margin:.5rem 0;
  color:var(--soft);
  text-decoration:none;
  line-height:1.65;
}

.link-columns a:hover{
  color:var(--gold2);
}

/* Footer */

.site-footer{
  display:flex;
  justify-content:space-between;
  gap:28px;
  flex-wrap:wrap;
  padding:42px clamp(18px,4vw,42px);
  border-top:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.28);
  color:var(--soft);
}

.site-footer strong{
  color:#fff4d0;
}

.site-footer p{
  margin:.35rem 0 0;
}

.site-footer nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
}

.site-footer a{
  color:var(--gold2);
  text-decoration:none;
}

.copyright{
  width:100%;
  color:var(--softer);
  font-size:.88rem;
}

/* Article defaults */

.article,
.article-body,
.feature-body,
.story-body,
.page-body,
.prose{
  width:min(var(--read), calc(100% - 44px));
  margin-inline:auto;
  color:#eee6d5;
  font-size:1.04rem;
  line-height:2.05;
}

.article-body h2,
.feature-body h2,
.story-body h2,
.page-body h2,
.prose h2{
  margin-top:2.2em;
}

.article-body a,
.feature-body a,
.story-body a,
.page-body a,
.prose a{
  color:var(--gold2);
}

/* Safe generic cards */

.card,
.feature-card,
.article-card,
.index-card,
.info-card,
.mission-card,
.home-card,
.strip-card{
  position:relative;
  display:block;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:28px;
  background:rgba(255,255,255,.055);
  color:var(--ink);
  text-decoration:none;
  box-shadow:0 18px 46px rgba(0,0,0,.24);
}

.card img,
.feature-card img,
.article-card img,
.index-card img,
.info-card img,
.mission-card img,
.home-card img,
.strip-card img{
  position:relative;
  width:100%;
  height:auto;
  aspect-ratio:4 / 3;
  object-fit:cover;
}

.card-body,
.card-copy,
.card-content{
  padding:24px;
}

/* Gallery scope only */

body.gallery-page .gallery-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}

body.gallery-page .gallery-item{
  position:relative;
  overflow:hidden;
  min-height:345px;
  border-radius:26px;
  border:1px solid var(--line);
  background:#111;
  display:flex;
  align-items:flex-end;
  text-decoration:none;
  color:var(--ink);
}

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

body.gallery-page .gallery-item.tall{
  min-height:510px;
}

body.gallery-page .gallery-item img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.86;
  transform:scale(1.01);
}

body.gallery-page .gallery-item::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.86)),
    radial-gradient(circle at 50% 18%, transparent, rgba(0,0,0,.34));
  z-index:1;
}

body.gallery-page .gallery-item .caption{
  position:relative;
  z-index:2;
  padding:22px;
}

/* Kill bad blue text */

[style*="color: blue"],
[style*="color:blue"],
[style*="#00f"],
[style*="#0000ff"],
[style*="rgb(0, 0, 255)"],
.blue-text,
.text-blue,
.accent-blue,
.link-blue{
  color:var(--gold2) !important;
}

/* Responsive */

@media (max-width:1080px){
  .site-header{
    align-items:flex-start;
    flex-direction:column;
  }

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

  .editor-letter,
  .issue-cover{
    grid-template-columns:1fr;
  }

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

  .lead-feature-grid{
    grid-template-columns:1fr 1fr;
  }

  .lead-card-large{
    grid-column:span 2;
    grid-row:auto;
  }

  .department-grid,
  .utility-row{
    grid-template-columns:1fr;
  }

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

@media (max-width:640px){
  .home-hero-copy,
  .editor-letter,
  .issue-cover,
  .doors-section,
  .lead-features,
  .departments,
  .utility-section,
  .site-index{
    width:min(100% - 28px, var(--max));
  }

  .home-hero-copy{
    padding:96px 0 46px;
  }

  .home-hero{
    min-height:78vh;
  }

  .editor-letter,
  .issue-cover,
  .utility-section,
  .site-index.quiet{
    padding:24px;
    border-radius:24px;
  }

  .doors-grid,
  .lead-feature-grid,
  .link-columns{
    grid-template-columns:1fr;
  }

  .lead-card-large{
    grid-column:auto;
  }

  .quote-section{
    width:min(100% - 28px, 980px);
    padding:32px 0;
  }

  .site-footer{
    display:block;
  }

  .site-footer nav{
    margin-top:20px;
  }
}
