:root {
  --gh-font: "MaruBuri", "Batang", serif;
}

@font-face {
  font-family: "MaruBuri";
  src: url("fonts/maruburi/MaruBuri-Regular-GH-v14.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "MaruBuri";
  src: url("fonts/maruburi/MaruBuri-SemiBold-GH-v14.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --gh-navy: #103757;
  --gh-navy-deep: #0a2b47;
  --gh-ivory: #f3efe6;
  --gh-paper: #fbfaf7;
  --gh-gold: #c9a35d;
  --gh-ink: #18354f;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--gh-ivory);
}

body.warm-legacy {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, #fbf9f4 0, var(--gh-ivory) 52%, #eee8dc 100%);
  color: var(--gh-ink);
  font-family: var(--gh-font);
  font-synthesis: none;
}

.warm-shell {
  width: min(100%, 743px);
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f3eb 0%, #f0ebdf 100%);
  box-shadow: 0 0 0 1px rgba(16, 55, 87, 0.06), 0 18px 55px rgba(41, 49, 50, 0.08);
}

.warm-brandbar {
  display: flex;
  align-items: center;
  height: 84px;
  min-height: 84px;
  padding: 0 38px;
  background: var(--gh-navy);
}

.warm-brandbar a {
  display: inline-flex;
  align-items: center;
  width: 214px;
  height: 26px;
  line-height: 0;
}

.warm-brandbar img {
  display: block;
  width: 214px;
  height: 26px;
  object-fit: contain;
  object-position: left center;
}

.legacy-title {
  position: relative;
  padding: 40px 48px 42px 70px;
  background: var(--gh-paper);
  border-bottom: 1px solid rgba(16, 55, 87, 0.06);
}

.legacy-title::before {
  position: absolute;
  top: 39px;
  bottom: 39px;
  left: 42px;
  width: 7px;
  background: var(--gh-gold);
  content: "";
}

.legacy-title p {
  margin: 0 0 9px;
  color: #8d7146;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.legacy-title h1 {
  margin: 0;
  color: var(--gh-navy);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.055em;
  word-break: keep-all;
}

.legacy-copy-panel {
  padding: 0 52px 46px 80px;
  background: var(--gh-paper);
}

.legacy-copy-panel > span {
  display: block;
  margin-bottom: 12px;
  color: #9a7b49;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.legacy-copy-panel > p {
  max-width: 560px;
  margin: 0;
  color: #53616a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: -0.025em;
  word-break: keep-all;
}

.legacy-story-list {
  display: grid;
  gap: 15px;
  margin-top: 28px;
}

.legacy-story-list p {
  margin: 0;
  padding-left: 17px;
  border-left: 2px solid rgba(201, 163, 93, 0.72);
  color: #334d61;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.75;
  word-break: keep-all;
}

.legacy-stack {
  padding: 34px 38px 58px;
}

.legacy-stack table,
.legacy-stack tbody,
.legacy-stack tr,
.legacy-stack td {
  display: block;
  width: 100% !important;
  height: auto !important;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
}

/*
 * Legacy detail artwork was exported as consecutive horizontal JPG slices.
 * The slices must touch edge-to-edge or a single photograph appears cut at
 * the file boundary. Frame the complete composite once, never each slice.
 */
.legacy-stack table {
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.96) !important;
  background: #ffffff !important;
  box-shadow: 0 14px 34px rgba(43, 48, 47, 0.14);
}

.legacy-stack tr + tr {
  margin-top: 0;
}

.legacy-stack .legacy-copy-row {
  display: none;
  margin: 0;
}

.legacy-stack .legacy-copy-row + tr {
  margin-top: 0;
}

.legacy-stack .legacy-copy-row td {
  padding: 0 34px !important;
  text-align: left;
}

.legacy-copy-note {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  padding: 1px 0 2px 24px;
  border-left: 3px solid var(--gh-gold);
}

.legacy-copy-note span {
  display: block;
  margin-bottom: 8px;
  color: #987743;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.19em;
}

.legacy-copy-note p {
  margin: 0;
  color: #334d61;
  font-size: 14px;
  line-height: 1.78;
  letter-spacing: -0.025em;
  word-break: keep-all;
}

.legacy-copy-row.is-accent td {
  padding: 25px 30px !important;
  background: var(--gh-navy) !important;
  box-shadow: 0 15px 34px rgba(43, 48, 47, 0.15);
}

.legacy-copy-row.is-accent .legacy-copy-note {
  border-left-color: var(--gh-gold);
}

.legacy-copy-row.is-accent .legacy-copy-note span {
  color: #d8b978;
}

.legacy-copy-row.is-accent .legacy-copy-note p {
  color: rgba(255, 255, 255, 0.88);
}

.legacy-stack td {
  text-align: center;
}

.legacy-stack img:not(.legacy-title-strip) {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  margin: 0 auto;
  border: 0 !important;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
  aspect-ratio: auto;
}

.portfolio-stack img:not(.legacy-title-strip) {
  width: min(100%, 506px) !important;
}

/*
 * v13: Some first JPGs combine the obsolete page heading with the first
 * photograph. Crop only the heading pixels at the top. The wrapper's aspect
 * ratio equals the complete remaining photograph area, so no photo row is
 * stretched, covered or lost at any viewport width.
 */
.headerless-slice {
  width: 100%;
  overflow: hidden;
  aspect-ratio: var(--visible-ratio);
  margin: 0 auto;
  background: transparent;
}

.headerless-slice img:not(.legacy-title-strip) {
  width: 100% !important;
  max-width: none;
  transform: translateY(var(--header-shift));
  transform-origin: top center;
}

.headerless-slice--portfolio {
  width: min(100%, 506px);
}

.legacy-stack .legacy-title-strip {
  display: none !important;
}

.legacy-stack iframe {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border: 5px solid #ffffff !important;
  background: #111111;
  box-shadow: 0 14px 34px rgba(43, 48, 47, 0.14);
}

.stitched-video {
  margin-top: 30px;
}

.warm-footer {
  padding: 35px 30px 42px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  background: var(--gh-navy);
}

.warm-footer::before {
  display: block;
  width: 52px;
  height: 1px;
  margin: 0 auto 18px;
  background: var(--gh-gold);
  content: "";
}

.warm-footer p {
  margin: 0 0 22px;
  font-size: 9px;
  letter-spacing: 0.22em;
}

.warm-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 145px;
  height: 39px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #ffffff !important;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none !important;
}

.warm-close:hover,
.warm-close:focus-visible {
  border-color: var(--gh-gold);
  background: rgba(255, 255, 255, 0.06);
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .warm-brandbar {
    height: 70px;
    min-height: 70px;
    padding: 0 20px;
  }

  .warm-brandbar a {
    width: 188px;
    height: 23px;
  }

  .warm-brandbar img {
    width: 188px;
    height: 23px;
  }

  .legacy-title {
    padding: 32px 25px 34px 48px;
  }

  .legacy-title::before {
    top: 31px;
    bottom: 31px;
    left: 25px;
    width: 6px;
  }

  .legacy-title h1 {
    font-size: 25px;
  }

  .legacy-copy-panel {
    padding: 0 25px 36px 50px;
  }

  .legacy-copy-panel > p {
    font-size: 13px;
    line-height: 1.82;
  }

  .legacy-stack {
    padding: 24px 20px 44px;
  }

  .legacy-stack tr + tr {
    margin-top: 0;
  }

  .legacy-stack .legacy-copy-row {
    margin: 36px 0 34px;
  }

  .legacy-stack .legacy-copy-row td {
    padding: 0 12px !important;
  }

  .legacy-copy-row.is-accent td {
    padding: 21px 18px !important;
  }

  .legacy-copy-note {
    padding-left: 17px;
  }

  .legacy-copy-note p {
    font-size: 13px;
    line-height: 1.72;
  }

  .legacy-stack img:not(.legacy-title-strip),
  .legacy-stack iframe {
    border-width: 3px !important;
  }
}
