/* =========================================================
   Pennsylvania.co.jp / site.css
   Japanese magazine style: colonial brick, steel memory,
   forest roads, rivers, Amish restraint, Gettysburg dusk.
   ========================================================= */

:root {
  --ink: #241b16;
  --ink-soft: #4f4035;
  --paper: #f4ead8;
  --paper-warm: #fbf4e8;
  --paper-deep: #ead8bd;
  --brick: #8f3f2c;
  --brick-dark: #5d251d;
  --steel: #33434a;
  --river: #355f66;
  --forest: #39492f;
  --gold: #b8873b;
  --cream: #fff8ec;
  --line: rgba(36, 27, 22, 0.16);
  --line-strong: rgba(36, 27, 22, 0.28);
  --shadow: 0 24px 70px rgba(36, 27, 22, 0.18);
  --shadow-soft: 0 14px 36px rgba(36, 27, 22, 0.12);
  --max: 1180px;
  --radius: 26px;
  --radius-sm: 16px;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Arial, sans-serif;
}

/* ---------------- Base ---------------- */

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.9;
  background:
    radial-gradient(circle at top left, rgba(184, 135, 59, 0.18), transparent 34rem),
    radial-gradient(circle at 88% 12%, rgba(53, 95, 102, 0.15), transparent 32rem),
    linear-gradient(180deg, var(--paper-warm), var(--paper) 48%, #eadcc7);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  z-index: -1;
  background-image:
    linear-gradient(rgba(36, 27, 22, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 27, 22, 0.026) 1px, transparent 1px);
  background-size: 42px 42px, 42px 42px;
}

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

a {
  color: var(--brick-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

p {
  margin: 0 0 1.2rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.45rem, 6vw, 5.8rem);
  letter-spacing: 0.04em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 3.25rem);
}

h3 {
  font-size: clamp(1.28rem, 2vw, 1.85rem);
}

small,
.kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

::selection {
  background: rgba(184, 135, 59, 0.35);
}

/* ---------------- Shared layout ---------------- */

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

.section {
  padding: clamp(54px, 8vw, 110px) 0;
}

.section-tight {
  padding: clamp(36px, 6vw, 74px) 0;
}

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brick-dark);
}

.kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--gold);
}

.eyebrow {
  display: inline-block;
  color: var(--cream);
  background: linear-gradient(135deg, var(--brick-dark), var(--steel));
  border: 1px solid rgba(255, 248, 236, 0.28);
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.rule {
  height: 1px;
  background: var(--line);
  margin: clamp(28px, 5vw, 56px) 0;
}

/* ---------------- Header / Navigation ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 244, 232, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.navbar,
.nav {
  width: min(var(--max), calc(100% - 30px));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}

.brand strong {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  letter-spacing: 0.035em;
}

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

.nav-links,
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.nav-links a,
.nav-menu a,
.nav a:not(.brand) {
  color: var(--ink);
  text-decoration: none;
  padding: 0.5rem 0.68rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-menu a:hover,
.nav a:not(.brand):hover {
  color: var(--cream);
  background: var(--brick-dark);
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: clamp(680px, 86vh, 920px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--cream);
  background-color: var(--steel);
  isolation: isolate;
}

.hero.hero-medium {
  min-height: clamp(520px, 68vh, 760px);
}

.hero-bg,
.hero picture,
.hero > img:first-child {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-bg img,
.hero picture img,
.hero > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(23, 18, 15, 0.88), rgba(23, 18, 15, 0.52) 48%, rgba(23, 18, 15, 0.2)),
    linear-gradient(0deg, rgba(23, 18, 15, 0.88), transparent 55%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.38;
  background:
    radial-gradient(circle at 18% 25%, rgba(184, 135, 59, 0.28), transparent 26rem),
    linear-gradient(135deg, rgba(143, 63, 44, 0.2), transparent 42%);
}

.hero-content {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
  padding: clamp(120px, 18vh, 210px) 0 clamp(54px, 10vh, 110px);
  max-width: 920px;
  margin-left: max(18px, calc((100vw - var(--max)) / 2));
}

.hero h1 {
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.48);
  margin-bottom: 1.25rem;
}

.hero .lede,
.hero p {
  color: rgba(255, 248, 236, 0.92);
  max-width: 760px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* ---------------- Buttons ---------------- */

.btn,
.button,
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.btn:hover,
.button:hover,
.cta:hover {
  transform: translateY(-1px);
  color: var(--cream);
  background: var(--brick-dark);
}

.btn.secondary,
.button.secondary,
.cta.secondary {
  background: rgba(255, 248, 236, 0.13);
  color: var(--cream);
  border-color: rgba(255, 248, 236, 0.42);
  box-shadow: none;
}

.btn.light {
  background: var(--cream);
  color: var(--brick-dark);
}

/* ---------------- Intro / editorial blocks ---------------- */

.intro-panel {
  width: min(var(--max), calc(100% - 36px));
  margin: clamp(-56px, -6vw, -34px) auto clamp(56px, 8vw, 96px);
  position: relative;
  z-index: 3;
  background: rgba(255, 248, 236, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 52px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 56px);
}

.intro-panel p {
  color: var(--ink-soft);
}

.start-band,
.feature-band {
  background:
    linear-gradient(135deg, rgba(93, 37, 29, 0.94), rgba(51, 67, 74, 0.94)),
    var(--brick-dark);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.start-band::after,
.feature-band::after {
  content: "PA";
  position: absolute;
  right: -0.15em;
  bottom: -0.35em;
  font-family: Georgia, serif;
  font-size: clamp(7rem, 20vw, 18rem);
  opacity: 0.065;
  font-weight: 900;
  line-height: 1;
}

.start-band p,
.feature-band p {
  color: rgba(255, 248, 236, 0.85);
  max-width: 780px;
}

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

.grid {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
}

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

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

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

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

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

.card-image {
  aspect-ratio: 16 / 10;
  background: var(--paper-deep);
  overflow: hidden;
}

.card-image img,
.card img.card-image,
.card > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: clamp(20px, 3vw, 30px);
}

.card h3 {
  margin-bottom: 0.55rem;
}

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

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 54px rgba(36, 27, 22, 0.18);
}

.destination-card {
  min-height: 430px;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  color: var(--cream);
  border-radius: var(--radius);
  background: var(--steel);
  box-shadow: var(--shadow-soft);
}

.destination-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.destination-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(24, 18, 14, 0.9), rgba(24, 18, 14, 0.2) 70%),
    linear-gradient(90deg, rgba(93, 37, 29, 0.38), transparent);
}

.destination-card .card-body {
  position: relative;
  z-index: 2;
}

.destination-card p {
  color: rgba(255, 248, 236, 0.86);
}

/* ---------------- Magazine layout ---------------- */

.magazine-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 340px);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.article-body {
  font-family: var(--serif);
  font-size: clamp(1.04rem, 1.35vw, 1.18rem);
  line-height: 2.14;
}

.article-body p {
  margin-bottom: 1.45rem;
}

.article-body h2 {
  margin-top: 3rem;
}

.article-body h3 {
  margin-top: 2.2rem;
}

.sidebar {
  position: sticky;
  top: 98px;
}

.sidebar-card {
  background: rgba(255, 248, 236, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.sidebar-card h3 {
  font-size: 1.15rem;
}

.pullquote {
  margin: clamp(28px, 5vw, 58px) 0;
  padding: clamp(24px, 4vw, 44px);
  border-left: 6px solid var(--gold);
  background: rgba(184, 135, 59, 0.12);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.65;
  color: var(--brick-dark);
}

/* ---------------- Feature index ---------------- */

.feature-list {
  display: grid;
  gap: 1rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 248, 236, 0.72);
  text-decoration: none;
  color: inherit;
}

.feature-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 10px);
}

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

.feature-row:hover {
  background: rgba(255, 248, 236, 0.96);
  box-shadow: var(--shadow-soft);
}

/* ---------------- Real places / listings ---------------- */

.place-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.place {
  background: rgba(255, 248, 236, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: clamp(18px, 3vw, 28px);
}

.place h3 {
  margin-bottom: 0.35rem;
}

.place-meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.place-meta strong {
  color: var(--ink);
}

/* ---------------- Gallery ---------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

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

.gallery-item a {
  display: block;
  color: inherit;
  text-decoration: none;
}

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

.gallery-item figcaption,
.gallery-caption {
  padding: 1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  background: rgba(255, 248, 236, 0.9);
}

/* ---------------- Split image sections ---------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
}

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

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

.caption {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ---------------- Footer ---------------- */

.site-footer {
  margin-top: clamp(60px, 9vw, 120px);
  background:
    linear-gradient(135deg, rgba(36, 27, 22, 0.96), rgba(51, 67, 74, 0.96)),
    var(--ink);
  color: rgba(255, 248, 236, 0.84);
  padding: clamp(44px, 7vw, 78px) 0 34px;
}

.footer-grid {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: clamp(24px, 4vw, 48px);
}

.site-footer h2,
.site-footer h3,
.site-footer strong {
  color: var(--cream);
}

.site-footer a {
  color: rgba(255, 248, 236, 0.88);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  width: min(var(--max), calc(100% - 36px));
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 248, 236, 0.18);
  color: rgba(255, 248, 236, 0.62);
  font-size: 0.9rem;
}

/* ---------------- Utility classes ---------------- */

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

.max-narrow {
  max-width: 780px;
}

.max-wide {
  max-width: var(--max);
}

.mx-auto {
  margin-inline: auto;
}

.mt-lg {
  margin-top: clamp(32px, 6vw, 72px);
}

.mb-lg {
  margin-bottom: clamp(32px, 6vw, 72px);
}

.dark-panel {
  background:
    linear-gradient(135deg, rgba(36, 27, 22, 0.96), rgba(93, 37, 29, 0.92));
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 58px);
}

.dark-panel p {
  color: rgba(255, 248, 236, 0.82);
}

.light-panel {
  background: rgba(255, 248, 236, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 52px);
  box-shadow: var(--shadow-soft);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tag-cloud a,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.76);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.tag-cloud a:hover,
.tag:hover {
  background: var(--brick-dark);
  color: var(--cream);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 980px) {
  .navbar,
  .nav {
    min-height: auto;
    padding: 1rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero-content {
    margin-left: auto;
    padding-top: 150px;
  }

  .intro-panel,
  .magazine-layout,
  .article-layout,
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    position: static;
  }

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

@media (max-width: 680px) {
  body {
    line-height: 1.82;
  }

  .container,
  .wrap,
  .navbar,
  .nav,
  .hero-content,
  .intro-panel,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 26px, var(--max));
  }

  .hero {
    min-height: 720px;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(23, 18, 15, 0.92), rgba(23, 18, 15, 0.48) 72%),
      linear-gradient(90deg, rgba(23, 18, 15, 0.68), transparent);
  }

  .hero-content {
    padding-bottom: 46px;
  }

  .nav-links a,
  .nav-menu a,
  .nav a:not(.brand) {
    font-size: 0.82rem;
    padding: 0.42rem 0.55rem;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .destination-card {
    min-height: 360px;
  }

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

  .pullquote {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .card,
  .destination-card,
  .btn,
  .button,
  .cta,
  .feature-row,
  .tag-cloud a {
    transition:
      transform 180ms ease,
      box-shadow 180ms ease,
      background-color 180ms ease,
      color 180ms ease,
      border-color 180ms ease;
  }

  .card-image img,
  .destination-card img,
  .gallery-item img {
    transition: transform 420ms ease;
  }

  .card:hover .card-image img,
  .destination-card:hover img,
  .gallery-item:hover img {
    transform: scale(1.035);
  }
}

/* ---------------- Print ---------------- */

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

  body {
    background: #fff;
    color: #000;
  }

  .hero {
    color: #000;
    min-height: auto;
    display: block;
    background: #fff;
  }

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

  .hero-content {
    padding: 0;
    margin: 0;
    width: 100%;
  }

  a {
    color: #000;
  }
}
