:root {
  --spruce: #143028;
  --spruce-2: #1c3b32;
  --cream: #e7e1d4;
  --paper: #fbf7f1;
  --copper: #d4652f;
  --ink: #17211c;
  --muted: #5c675f;
  --line: rgba(20, 48, 40, 0.12);
  --bar: 5.2rem;
  --serif: "Fraunces", Georgia, "Palatino Linotype", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: inherit; }

.g-wrap {
  width: min(74rem, calc(100% - 2rem));
  margin: 0 auto;
}

.g-bar {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: var(--bar);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 1.15rem;
  color: #f6f1e8;
  background: rgba(10, 22, 18, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(212, 101, 47, 0.55);
}

.g-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  flex: 0 0 auto;
}

.g-logo img {
  height: 62px;
  width: auto;
  max-width: min(280px, 46vw);
  display: block;
}

.g-wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  letter-spacing: -0.03em;
  color: #f6f1e8;
  line-height: 1;
  white-space: nowrap;
}

.g-nav {
  display: flex;
  gap: 0.15rem;
  margin-left: auto;
  min-width: 0;
}

.g-nav a {
  text-decoration: none;
  color: rgba(246, 241, 232, 0.78);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}

.g-nav a:hover,
.g-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.g-book {
  flex: 0 0 auto;
  text-decoration: none;
  background: var(--copper);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  font-size: 0.95rem;
}

.g-book:hover { background: #e07038; }

.g-book-short { display: none; }

.g-hero,
.is-chapter .g-hero {
  position: relative;
  height: clamp(580px, 64vh, 720px);
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--spruce);
}

.g-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.g-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 18, 14, 0.25) 0%, rgba(8, 18, 14, 0.05) 32%, rgba(8, 18, 14, 0.82) 100%);
}

.g-hero-copy {
  position: relative;
  z-index: 1;
  padding: 2rem 0 3.2rem;
}

.g-eye {
  margin: 0 0 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.g-eye a { color: #fff; }

.g-hero h1 {
  margin: 0;
  max-width: 12em;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(3.1rem, 6.4vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.g-deck {
  max-width: 38rem;
  margin: 1.15rem 0 0;
  font-size: 1.15rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.g-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.g-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.g-btn-solid {
  background: #fff;
  color: var(--spruce);
  border-color: #fff;
}

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

.g-chapters { padding: 0; }

.g-ads {
  background: var(--spruce);
  padding: 1.15rem 0 1.3rem;
}

.g-ads .g-sec-label {
  color: rgba(246, 241, 232, 0.55);
  margin-bottom: 0.65rem;
}

.g-ads-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.g-ads-slot {
  height: 132px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
}

.g-ads-slot img {
  display: block;
  max-width: 100% !important;
  max-height: 118px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

.g-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17.5rem;
  grid-template-areas:
    "chapters rail"
    "article rail";
  gap: 1.15rem 1.35rem;
  align-items: start;
  padding: 1.5rem 0 3rem;
}

.g-chapters { grid-area: chapters; }
.g-sheet { grid-area: article; }

.g-rail {
  grid-area: rail;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.g-goral { margin: 0; }

.g-goral .g-sec-label { margin-bottom: 0.2rem; }

.g-goral h2 {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--spruce);
}

.g-goral-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.g-tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
}

.g-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.g-tile:hover img { transform: scale(1.05); }

.g-tile-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 0.75rem 0.7rem;
  background: linear-gradient(180deg, transparent, rgba(8, 16, 12, 0.88));
}

.g-tile-cap em {
  display: block;
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8c9a8;
  font-weight: 700;
}

.g-tile-cap strong {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.2;
}

.g-sec-label {
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.g-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.g-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 13.5rem;
  padding: 1.15rem 1.2rem;
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: var(--spruce);
}

.g-card-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 18, 14, 0.05) 20%, rgba(8, 18, 14, 0.78) 100%);
  transition: background 0.25s ease;
}

.g-card:hover::after {
  background: linear-gradient(180deg, rgba(8, 18, 14, 0.02) 10%, rgba(8, 18, 14, 0.84) 100%);
}

.g-card.is-current { outline: 2px solid var(--copper); outline-offset: 3px; }

.g-card-no {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  opacity: 0.85;
}

.g-card strong {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 0.25rem;
}

.g-sheet {
  background: var(--paper);
  border-radius: 1.6rem;
  padding: clamp(1.4rem, 4vw, 3.2rem);
  box-shadow: 0 24px 60px rgba(20, 40, 32, 0.06);
}

.g-body h2 {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--spruce);
}

.g-body p { margin: 0 0 1rem; }

.g-body p.g-lead::first-letter {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 3.5rem;
  float: left;
  line-height: 0.8;
  padding: 0.18rem 0.45rem 0 0;
  color: var(--spruce);
}

.g-body ul {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
}

.g-body li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.15rem;
  border-top: 1px solid var(--line);
}

.g-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--copper);
}

.g-cta-line { margin-top: 1.6rem !important; }

.g-cta-line a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  background: var(--spruce);
  color: #f6f1e8;
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
}

.g-cta-line a::after { content: "→"; font-size: 1.2rem; }

.g-jump {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.g-jump a {
  text-decoration: none;
  color: var(--spruce);
  font-weight: 600;
}

.g-jump a span {
  display: block;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.g-side {
  background: #143028;
  color: #f6f1e8;
  border-radius: 1.15rem;
  padding: 1rem 1rem 0.35rem;
}

.g-side p {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.55);
  font-weight: 600;
}

.g-side a {
  display: block;
  text-decoration: none;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(246, 241, 232, 0.9);
  font-weight: 550;
}

.g-side a:hover { color: #fff; }

.g-side a[aria-current="page"] { color: #e8b08a; }

.g-foot {
  background: #10211b;
  color: #f3eee4;
  padding: 3.5rem 0 2rem;
}

.g-foot-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 520;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.g-foot-stay {
  margin: 1rem 0 1.6rem;
  max-width: 36rem;
  color: rgba(243, 238, 228, 0.8);
}

.g-foot-stay a {
  color: #fff;
  font-weight: 600;
}

.g-sisters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin: 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.g-sisters a {
  color: rgba(243, 238, 228, 0.86);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.g-sisters a:hover { color: #fff; }

@media (max-width: 980px) {
  :root { --bar: 6.6rem; }

  .g-bar {
    flex-wrap: wrap;
    align-items: center;
    padding-bottom: 0.45rem;
  }

  .g-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .g-nav a { white-space: nowrap; }

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

  .g-stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "chapters"
      "rail"
      "article";
    padding-top: 1.2rem;
  }

  .g-rail {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .g-side { display: none; }

  .g-rail:not(:has(.g-goral)) { display: none; }

  .g-logo img { height: 52px; }
}

@media (max-width: 640px) {
  .g-book-long { display: none; }
  .g-book-short { display: inline; }
  .g-grid { grid-template-columns: 1fr; }
  .g-card { min-height: 11rem; }
  .g-hero,
  .is-chapter .g-hero { height: 62vh; min-height: 460px; }
  .g-ads-row {
    display: flex;
    overflow-x: auto;
  }
  .g-ads-slot { flex: 0 0 200px; }
  .g-wordmark { font-size: 1.15rem; }
  .g-logo img { height: 48px; }
  .g-hero h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .g-sheet { border-radius: 1.15rem; }
}
