/* =========================================================
   Wyoming.co.jp
   site.css
   Editorial Japanese travel magazine style
   ========================================================= */

:root {
  --ink: #1f1a14;
  --ink-soft: #44372b;
  --paper: #f7f1e5;
  --paper-warm: #efe3cf;
  --paper-deep: #dfc9a8;
  --sage: #6d7b5c;
  --sage-dark: #46513c;
  --sky: #d8e6ea;
  --mountain: #3f4f57;
  --rust: #9a4f2d;
  --gold: #b9853a;
  --line: rgba(31, 26, 20, 0.18);
  --line-strong: rgba(31, 26, 20, 0.36);
  --white: #fffaf1;
  --shadow: 0 22px 60px rgba(31, 26, 20, 0.14);
  --shadow-soft: 0 12px 34px rgba(31, 26, 20, 0.1);
  --radius: 22px;
  --radius-small: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(216, 230, 234, 0.65), transparent 34rem),
    linear-gradient(180deg, #fbf6ec 0%, var(--paper) 34%, #efe3cf 100%);
  font-family:
    "Hiragino Mincho ProN",
    "Yu Mincho",
    "YuMincho",
    "Noto Serif JP",
    "Times New Roman",
    serif;
  line-height: 1.9;
  letter-spacing: 0.035em;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

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

::selection {
  color: var(--white);
  background: var(--rust);
}

/* =========================================================
   Layout
   ========================================================= */

.site-wrap {
  min-height: 100vh;
}

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

section,
.section {
  padding: 76px 0;
}

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

.section-muted {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.52), rgba(223, 201, 168, 0.28)),
    var(--paper-warm);
  border-block: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: 26px;
}

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

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

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

/* =========================================================
   Header / Navigation
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 229, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo,
.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
}

.logo strong,
.brand strong {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  letter-spacing: 0.08em;
  font-weight: 800;
}

.logo span,
.brand span {
  font-size: 0.74rem;
  color: var(--ink-soft);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

.nav a,
.nav-links a {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.2;
}

.nav a:hover,
.nav-links a:hover,
.nav a[aria-current="page"],
.nav-links a[aria-current="page"] {
  background: rgba(154, 79, 45, 0.1);
  color: var(--rust);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #1f1a14;
  color: var(--white);
}

.hero.hero-small {
  min-height: 52vh;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 13, 11, 0.78), rgba(15, 13, 11, 0.36) 46%, rgba(15, 13, 11, 0.18)),
    linear-gradient(0deg, rgba(15, 13, 11, 0.78), rgba(15, 13, 11, 0.04) 54%);
  z-index: 1;
}

.hero img,
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 82px;
}

.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #f7dca8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.kicker::before,
.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2.55rem, 6.4vw, 6.8rem);
  line-height: 1.05;
  letter-spacing: 0.035em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.44);
}

.hero p {
  max-width: 720px;
  margin: 28px 0 0;
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  line-height: 2.05;
  color: rgba(255, 250, 241, 0.92);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.42);
}

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

/* =========================================================
   Typography
   ========================================================= */

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.28;
  letter-spacing: 0.04em;
  margin: 0 0 18px;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 5rem);
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 3.7rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

h4 {
  font-size: 1.08rem;
}

p {
  margin: 0 0 1.25em;
}

.lead {
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 2.08;
  color: var(--ink-soft);
}

.section-title {
  max-width: 880px;
  margin-bottom: 34px;
}

.section-title.center {
  text-align: center;
  margin-inline: auto;
}

.section-title p {
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.small-caps {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 800;
}

blockquote {
  margin: 34px 0;
  padding: 28px 32px;
  border-left: 5px solid var(--rust);
  background: rgba(255, 250, 241, 0.62);
  box-shadow: var(--shadow-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.18rem;
  line-height: 2;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn,
.button,
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(31, 26, 20, 0.22);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.btn:hover,
.button:hover,
.cta:hover {
  transform: translateY(-2px);
  background: var(--rust);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-light {
  background: rgba(255, 250, 241, 0.92);
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: inherit;
  border-color: currentColor;
  box-shadow: none;
}

/* =========================================================
   Cards
   ========================================================= */

.card {
  overflow: hidden;
  background: rgba(255, 250, 241, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.card a {
  text-decoration: none;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card,
.feature-card,
.destination-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.card-image,
.feature-card img,
.destination-card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.feature-card,
.destination-card {
  overflow: hidden;
  background: rgba(255, 250, 241, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.feature-card a,
.destination-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.feature-card .text,
.destination-card .text {
  padding: 22px 24px 26px;
}

/* =========================================================
   Editorial Feature Blocks
   ========================================================= */

.editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 42px;
  align-items: center;
}

.editorial-split.reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.editorial-copy {
  max-width: 620px;
}

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

.editorial-image {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--paper-deep);
}

.editorial-image img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.caption {
  margin-top: 10px;
  color: rgba(31, 26, 20, 0.62);
  font-size: 0.84rem;
  line-height: 1.6;
}

/* =========================================================
   Article Pages
   ========================================================= */

.article {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0;
}

.article-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  font-size: clamp(2.1rem, 4.6vw, 4.7rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: rgba(31, 26, 20, 0.62);
  font-size: 0.86rem;
}

.article-body {
  font-size: 1.04rem;
}

.article-body h2 {
  margin-top: 2.1em;
}

.article-body h3 {
  margin-top: 1.8em;
}

.article-body img {
  margin: 38px 0 10px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.article-body ul,
.article-body ol {
  padding-left: 1.4em;
}

.article-body li {
  margin-bottom: 0.65em;
}

.place-box {
  margin: 34px 0;
  padding: 24px;
  background: rgba(255, 250, 241, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.place-box h3 {
  margin-bottom: 8px;
}

.place-box p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   Gallery
   ========================================================= */

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-small);
  border: 1px solid var(--line);
  background: var(--paper-deep);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 260ms ease;
}

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

.gallery-item figcaption,
.gallery-caption {
  padding: 12px 14px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  background: rgba(255, 250, 241, 0.82);
}

/* Lightbox-friendly classes */
.lightbox {
  cursor: zoom-in;
}

body.lightbox-open {
  overflow: hidden;
}

.gallery-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: rgba(12, 10, 8, 0.88);
}

.gallery-overlay.active {
  display: flex;
}

.gallery-overlay img {
  max-width: min(1200px, 94vw);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.gallery-overlay button {
  position: absolute;
  border: 1px solid rgba(255, 250, 241, 0.38);
  background: rgba(255, 250, 241, 0.12);
  color: var(--white);
  border-radius: 999px;
  cursor: pointer;
}

.gallery-close {
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  font-size: 1.5rem;
}

.gallery-prev,
.gallery-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
}

.gallery-prev {
  left: 22px;
}

.gallery-next {
  right: 22px;
}

/* =========================================================
   Directory / Lists
   ========================================================= */

.link-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  background: rgba(255, 250, 241, 0.6);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
}

.link-list a:hover {
  background: rgba(154, 79, 45, 0.08);
  color: var(--rust);
}

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

.tag-cloud a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.62);
  text-decoration: none;
  font-size: 0.9rem;
}

.tag-cloud a:hover {
  color: var(--white);
  background: var(--rust);
  border-color: var(--rust);
}

/* =========================================================
   Callouts
   ========================================================= */

.start-here,
.callout {
  padding: clamp(28px, 5vw, 52px);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(135deg, rgba(70, 81, 60, 0.92), rgba(31, 26, 20, 0.94)),
    var(--sage-dark);
  color: var(--white);
  box-shadow: var(--shadow);
}

.start-here h2,
.start-here h3,
.callout h2,
.callout h3 {
  color: var(--white);
}

.start-here p,
.callout p {
  color: rgba(255, 250, 241, 0.84);
}

.start-here .btn,
.callout .btn {
  background: var(--white);
  color: var(--ink);
}

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

.site-footer {
  margin-top: 60px;
  padding: 54px 0 36px;
  color: rgba(255, 250, 241, 0.82);
  background:
    linear-gradient(180deg, rgba(31, 26, 20, 0.95), rgba(18, 15, 12, 1)),
    var(--ink);
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  gap: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
}

.site-footer h2,
.site-footer h3,
.site-footer h4 {
  color: var(--white);
}

.site-footer a {
  color: rgba(255, 250, 241, 0.9);
  text-decoration: none;
}

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

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 250, 241, 0.18);
  color: rgba(255, 250, 241, 0.58);
  font-size: 0.84rem;
}

/* =========================================================
   Utilities
   ========================================================= */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 36px; }
.mt-4 { margin-top: 52px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 12px; }
.mb-2 { margin-bottom: 24px; }
.mb-3 { margin-bottom: 36px; }
.mb-4 { margin-bottom: 52px; }

.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.hide {
  display: none !important;
}

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

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

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

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

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

  .editorial-split,
  .editorial-split.reverse {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 680px) {
  body {
    letter-spacing: 0.02em;
  }

  .container,
  .wrap,
  .section-inner,
  .article {
    width: min(100% - 28px, var(--max));
  }

  section,
  .section {
    padding: 54px 0;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content {
    width: min(100% - 30px, 980px);
    padding: 120px 0 54px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 13vw, 4.4rem);
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.9;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .card-body,
  .feature-card .text,
  .destination-card .text {
    padding: 20px;
  }

  .article {
    padding: 54px 0;
  }

  .place-box {
    padding: 20px;
  }

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

  .gallery-prev,
  .gallery-next {
    width: 44px;
    height: 44px;
  }

  .gallery-prev {
    left: 10px;
  }

  .gallery-next {
    right: 10px;
  }

  .gallery-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 420px) {
  .nav a,
  .nav-links a {
    font-size: 0.82rem;
    padding: 7px 9px;
  }

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

  .btn,
  .button,
  .cta {
    width: 100%;
  }
}

/* =========================================================
   Print
   ========================================================= */

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .gallery-overlay {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .hero {
    min-height: auto;
    color: black;
    background: white;
  }

  .hero::before,
  .hero img,
  .hero-bg {
    display: none;
  }

  .hero-content {
    padding: 30px 0;
  }

  .hero h1,
  .hero p,
  h1,
  h2,
  h3 {
    color: black;
    text-shadow: none;
  }

  a {
    color: black;
  }
}
