/* =========================================================
   Virginia.co.jp
   Travel magazine front page system
   ========================================================= */

:root {
  --ink: #18211f;
  --ink-soft: #3f4944;
  --muted: #66706a;
  --paper: #f7f1e6;
  --paper-warm: #efe3d0;
  --paper-deep: #e3d2b9;
  --cream: #fffaf1;
  --line: rgba(24, 33, 31, 0.16);
  --line-strong: rgba(24, 33, 31, 0.28);

  --cedar: #274039;
  --cedar-dark: #172823;
  --blue-ridge: #263f56;
  --river: #365d67;
  --brick: #8b3f2f;
  --clay: #a85a3a;
  --gold: #b58b4f;
  --salt: #f4eadb;

  --shadow: 0 24px 70px rgba(31, 29, 25, 0.18);
  --soft-shadow: 0 14px 38px rgba(31, 29, 25, 0.12);

  --serif: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", "YuMincho", "Noto Serif JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Segoe UI", sans-serif;

  --max: 1220px;
  --wide: 1440px;
  --radius: 22px;
}

/* =========================================================
   Base
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(181, 139, 79, 0.16), transparent 28rem),
    radial-gradient(circle at 96% 14%, rgba(54, 93, 103, 0.13), transparent 34rem),
    linear-gradient(180deg, #fbf5ea 0%, var(--paper) 34%, #f1e5d4 100%);
  font-family: var(--sans);
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

::selection {
  background: rgba(181, 139, 79, 0.35);
}

/* subtle printed-paper texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(24, 33, 31, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 33, 31, 0.018) 1px, transparent 1px);
  background-size: 5px 5px, 7px 7px;
  mix-blend-mode: multiply;
}

/* =========================================================
   Header / Masthead
   ========================================================= */

.site-header {
  position: relative;
  z-index: 10;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.97), rgba(247, 241, 230, 0.92));
  border-bottom: 1px solid var(--line);
}

.topline {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.55rem clamp(1rem, 3vw, 2rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.topline p {
  margin: 0;
}

.topline a {
  color: var(--cedar);
  font-weight: 700;
}

.masthead {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(1.8rem, 4vw, 3.7rem) clamp(1rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.4rem);
  text-align: center;
}

.kicker,
.section-label,
.story-kicker,
.story-copy p:first-child {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--brick);
}

.kicker {
  margin-bottom: 0.65rem;
}

.masthead h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 9vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
  color: var(--cedar-dark);
}

.tagline {
  max-width: 780px;
  margin: 1rem auto 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.main-nav {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem) 1rem;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.45rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.72);
  color: var(--cedar-dark);
  font-weight: 700;
  font-size: 0.86rem;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.main-nav a:hover {
  transform: translateY(-1px);
  background: #fffaf1;
  border-color: rgba(139, 63, 47, 0.35);
}

/* compatibility with earlier pages */
.site-header .brand,
.nav-toggle,
.site-nav,
.reading-progress,
.subnav {
  display: none;
}

/* =========================================================
   Magazine cover
   ========================================================= */

.cover-story {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(1.1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem) clamp(2.7rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: clamp(1.2rem, 3vw, 2.8rem);
  align-items: stretch;
}

.cover-image {
  margin: 0;
  min-height: clamp(520px, 76vh, 820px);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper-deep);
  position: relative;
}

.cover-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.20)),
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.13), transparent 28rem);
  pointer-events: none;
}

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

.cover-copy {
  border-radius: 34px;
  padding: clamp(1.6rem, 4vw, 3.2rem);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.95), rgba(239, 227, 208, 0.82));
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cover-copy h2 {
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(2.55rem, 5vw, 5.3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: var(--cedar-dark);
}

.cover-deck {
  margin-bottom: 1.6rem;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.55vw, 1.35rem);
  line-height: 2.05;
  color: var(--ink-soft);
}

.cover-lines {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.cover-lines li {
  border-bottom: 1px solid var(--line);
}

.cover-lines a {
  display: block;
  padding: 0.85rem 0;
  color: var(--cedar-dark);
  font-weight: 800;
}

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

/* =========================================================
   Editorial note
   ========================================================= */

.intro-note {
  padding: 0 clamp(1rem, 3vw, 2rem) clamp(2.8rem, 6vw, 5rem);
}

.intro-note-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(1.8rem, 4vw, 3rem);
  border-block: 1px solid var(--line-strong);
  text-align: center;
}

.intro-note-inner p:last-child {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 2.05;
  color: var(--ink-soft);
}

/* =========================================================
   Sections
   ========================================================= */

.magazine-band {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2.8rem, 7vw, 6rem) clamp(1rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}

.band-header {
  max-width: 920px;
  margin-bottom: clamp(1.3rem, 3vw, 2.4rem);
}

.band-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.055em;
  color: var(--cedar-dark);
}

.band-header .section-label {
  margin-bottom: 0.55rem;
}

/* =========================================================
   Story cards
   ========================================================= */

.story-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.story-grid-two {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

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

.story-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.story-card {
  position: relative;
  background: rgba(255, 250, 241, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(31, 29, 25, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(31, 29, 25, 0.16);
  border-color: rgba(139, 63, 47, 0.28);
}

.story-card a {
  display: grid;
  color: inherit;
  height: 100%;
}

.story-card figure {
  margin: 0;
  overflow: hidden;
  background: var(--paper-deep);
}

.story-card figure img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.story-card-large figure img {
  aspect-ratio: 16 / 11;
}

.story-copy {
  padding: clamp(1rem, 2.4vw, 1.75rem);
}

.story-copy p {
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.story-copy h3 {
  margin-bottom: 0.7rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--cedar-dark);
}

.story-grid-three .story-copy h3,
.story-grid-four .story-copy h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.7rem);
}

.story-card-feature {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.story-card-feature a {
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: stretch;
}

.story-card-feature figure img {
  height: 100%;
  aspect-ratio: auto;
  min-height: 430px;
}

.story-card-feature .story-copy {
  align-self: center;
  padding: clamp(1.6rem, 4vw, 3.3rem);
}

.story-card-feature .story-copy h3 {
  font-size: clamp(2rem, 4vw, 4.15rem);
  line-height: 1.03;
}

.compact-feature {
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

/* =========================================================
   Full bleed feature
   ========================================================= */

.full-bleed-feature {
  max-width: var(--wide);
  margin: clamp(1rem, 4vw, 3rem) auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.full-bleed-feature a {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: clamp(440px, 68vh, 720px);
  border-radius: 38px;
  box-shadow: var(--shadow);
  background: var(--cedar);
}

.full-bleed-feature figure {
  margin: 0;
  height: 100%;
}

.full-bleed-feature img {
  min-height: clamp(440px, 68vh, 720px);
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(0.98);
}

.full-bleed-feature a::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 24, 22, 0.72), rgba(12, 24, 22, 0.24) 52%, rgba(12, 24, 22, 0.10)),
    linear-gradient(0deg, rgba(12, 24, 22, 0.35), transparent 42%);
}

.full-bleed-copy {
  position: absolute;
  z-index: 2;
  left: clamp(1.4rem, 5vw, 4rem);
  bottom: clamp(1.4rem, 5vw, 4rem);
  max-width: 650px;
  color: white;
}

.full-bleed-copy .section-label {
  color: #f5d49b;
}

.full-bleed-copy h2 {
  margin-bottom: 0.6rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.full-bleed-copy p {
  max-width: 520px;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
}

/* =========================================================
   Closing banner
   ========================================================= */

.closing-banner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: center;
  border-top: 1px solid var(--line);
}

.closing-banner figure {
  margin: 0;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
}

.closing-banner img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.closing-copy {
  padding: clamp(1rem, 3vw, 2.2rem);
}

.closing-copy h2 {
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  color: var(--cedar-dark);
}

.closing-copy p {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}

.closing-links {
  margin-top: 1.25rem;
  font-weight: 800;
  color: var(--brick);
}

.closing-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background:
    linear-gradient(180deg, var(--cedar-dark), #0e1916);
  color: rgba(255, 250, 241, 0.82);
  margin-top: clamp(2rem, 5vw, 4rem);
}

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2.4rem, 5vw, 4.5rem) clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 4rem);
}

.footer-mark {
  margin-bottom: 0.6rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: #fffaf1;
}

.footer-branding p:last-child {
  max-width: 460px;
  color: rgba(255, 250, 241, 0.7);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.footer-links h2 {
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: #f5d49b;
}

.footer-links a {
  display: block;
  padding: 0.32rem 0;
  color: rgba(255, 250, 241, 0.82);
}

.footer-links a:hover {
  color: #fffaf1;
}

.footer-bottom {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 2rem) 1.25rem;
  border-top: 1px solid rgba(255, 250, 241, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 250, 241, 0.55);
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a:hover {
  color: #fffaf1;
}

/* =========================================================
   Helpers for legacy class names if reused elsewhere
   ========================================================= */

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.narrow {
  max-width: 860px;
}

.button,
.text-link {
  font-weight: 800;
}

.text-link {
  color: var(--brick);
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--cedar-dark);
  color: #fffaf1;
}

.button-secondary,
.button-ghost {
  background: transparent;
  color: var(--cedar-dark);
}

.button-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
  .cover-story,
  .story-card-feature a,
  .closing-banner {
    grid-template-columns: 1fr;
  }

  .cover-image {
    min-height: 56vh;
  }

  .story-card-feature figure img {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

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

  .story-grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    line-height: 1.78;
  }

  .topline {
    display: none;
  }

  .masthead {
    text-align: left;
  }

  .masthead h1 {
    font-size: clamp(3rem, 17vw, 5.2rem);
  }

  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.85rem;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav a {
    flex: 0 0 auto;
  }

  .cover-story {
    padding-top: 0.9rem;
  }

  .cover-image,
  .full-bleed-feature a,
  .full-bleed-feature img {
    min-height: 430px;
  }

  .cover-copy,
  .story-copy,
  .story-card-feature .story-copy,
  .closing-copy {
    padding: 1.15rem;
  }

  .cover-copy h2,
  .full-bleed-copy h2,
  .closing-copy h2,
  .band-header h2 {
    letter-spacing: -0.045em;
  }

  .cover-deck {
    font-size: 1rem;
    line-height: 1.85;
  }

  .story-grid-three,
  .story-grid-four {
    grid-template-columns: 1fr;
  }

  .full-bleed-copy {
    left: 1.15rem;
    right: 1.15rem;
    bottom: 1.15rem;
  }

  .full-bleed-feature a::after {
    background:
      linear-gradient(0deg, rgba(12, 24, 22, 0.78), rgba(12, 24, 22, 0.18) 70%),
      linear-gradient(90deg, rgba(12, 24, 22, 0.35), transparent);
  }

  .footer-inner,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom a {
    display: inline-block;
    margin-top: 0.6rem;
  }
}

@media (max-width: 480px) {
  .cover-image,
  .full-bleed-feature a,
  .full-bleed-feature img {
    border-radius: 22px;
  }

  .story-card,
  .closing-banner figure,
  .cover-copy {
    border-radius: 18px;
  }

  .magazine-band {
    padding-top: 2.6rem;
    padding-bottom: 2.6rem;
  }
}

.cover-grid{
  display:grid;
  grid-template-columns:minmax(0,1.03fr) minmax(360px,.97fr);
  gap:34px;
  align-items:start; /* was end */
}

.cover-art{
  background:var(--white);
  border:1px solid rgba(24,35,40,.14);
  box-shadow:var(--shadow);
  padding:12px;
  transform:rotate(.35deg);
  align-self:start; /* added */
  margin-top:4px;   /* added */
}

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(24,35,40,.45);
  border-radius:999px;
  padding:.68rem 1rem;
  background:rgba(24,35,40,.92); /* was pale */
  color:#fffaf1;                 /* added */
  box-shadow:0 8px 22px rgba(24,35,40,.14);
  font-weight:700;
}

.button:hover{
  text-decoration:none;
  background:#000;
  border-color:#000;
}

.button.primary{
  background:var(--gold);
  color:#fffaf1;
  border-color:var(--gold);
}

.button.primary:hover{
  background:#7b4b20;
  border-color:#7b4b20;
}
