:root {
  color-scheme: light;
  --night: #071a23;
  --night-soft: #15323a;
  --ink: #192c30;
  --muted: #586a6d;
  --paper: #f4f0e8;
  --white: #fffdf8;
  --line: #c8cdc5;
  --amber: #efa749;
  --signal: #b83e36;
  --cyan: #69c6cc;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
}

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

a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--night);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.header-inner,
.hero-inner,
.section-inner,
.footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 11px;
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.brand small {
  color: var(--amber);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: #dce5e3;
  font-size: 14px;
  text-decoration: none;
}

nav a:hover {
  color: var(--white);
  text-decoration: underline;
}

nav .portal-link {
  color: var(--amber);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: min(720px, calc(90svh - 68px));
  overflow: hidden;
  background: var(--night);
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: -3;
}

.hero-media img {
  object-fit: cover;
  object-position: center 54%;
  image-rendering: pixelated;
}

.hero-shade {
  z-index: -2;
  background: rgba(3, 13, 18, 0.56);
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 64%;
  background: var(--signal);
}

.hero-inner {
  min-height: inherit;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0 92px;
}

.eyebrow,
.section-label,
.reason-number {
  margin: 0;
  color: var(--signal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--cyan);
}

.hero h1 {
  margin: 14px 0 0;
  font-size: 88px;
  line-height: 1;
  letter-spacing: 0;
}

.hero-en {
  margin: 8px 0 0;
  color: var(--amber);
  font-family: Georgia, serif;
  font-size: 21px;
  font-style: italic;
}

.hero-motto {
  margin: 32px 0 0;
  padding-left: 16px;
  border-left: 4px solid var(--signal);
  font-size: 20px;
  font-weight: 800;
}

.hero-link {
  margin-top: 36px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.hero-marker {
  position: absolute;
  right: 28px;
  bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 800;
}

.hero-marker span:first-child {
  color: var(--amber);
  font-family: Georgia, serif;
  font-size: 26px;
}

.section {
  padding: 106px 0;
  scroll-margin-top: 24px;
}

.intro {
  background: var(--paper);
}

.intro-layout,
.join-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.45fr);
  gap: 10%;
  align-items: start;
}

.section-heading h2,
.wide-heading h2,
.gallery-heading h2,
.join h2 {
  margin: 10px 0 0;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: 0;
}

.intro-copy {
  padding-top: 4px;
}

.intro-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 2;
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--signal);
  font-size: 14px;
  font-weight: 900;
}

.why {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wide-heading {
  max-width: 740px;
}

.reason-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 58px;
  border-top: 2px solid var(--ink);
}

.reason-list article {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0 18px;
  padding: 28px 30px 30px 0;
  border-bottom: 1px solid var(--line);
}

.reason-list article:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.reason-list article:nth-child(even) {
  padding-left: 30px;
}

.reason-number {
  grid-row: 1 / 3;
  color: var(--signal);
  font-family: Georgia, serif;
  font-size: 19px;
}

.reason-list h3 {
  margin: 0 0 7px;
  font-size: 20px;
}

.reason-list article > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.gallery {
  background: var(--night-soft);
  color: var(--white);
}

.gallery .section-label {
  color: var(--cyan);
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.gallery-heading > p {
  max-width: 430px;
  margin: 0 0 6px;
  color: #b7c9c9;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-top: 46px;
}

.gallery-item {
  position: relative;
  min-height: 290px;
  grid-column: span 5;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  background: var(--night);
}

.gallery-item-wide {
  grid-column: span 7;
}

.gallery-item picture,
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  image-rendering: pixelated;
  transition: transform 220ms ease;
}

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

.gallery-item span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  min-width: 58px;
  padding: 6px 10px;
  background: rgba(7, 26, 35, 0.88);
  border-left: 3px solid var(--amber);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.join {
  background: var(--amber);
}

.join .section-label {
  color: #74332e;
}

.join-copy > p {
  max-width: 660px;
  margin: 0;
  font-size: 18px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 9px 22px;
  border: 1px solid var(--night);
  border-radius: 2px;
  background: var(--night);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.button:hover {
  background: var(--night-soft);
}

.site-footer {
  padding: 34px 0;
  background: var(--night);
  color: #b7c9c9;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 12px;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 820px) {
  .hero h1 {
    font-size: 70px;
  }

  .intro-layout,
  .join-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .reason-list {
    grid-template-columns: 1fr;
  }

  .reason-list article,
  .reason-list article:nth-child(even) {
    padding: 26px 0;
    border-right: 0;
  }

  .gallery-item,
  .gallery-item-wide {
    grid-column: span 6;
  }

  .gallery-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 660px) {
  .header-inner,
  .hero-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 32px, 1180px);
  }

  .header-inner {
    min-height: 102px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 14px 0;
  }

  nav {
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  nav a {
    flex: 0 0 auto;
  }

  .hero {
    min-height: min(590px, calc(90svh - 102px));
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-motto {
    font-size: 17px;
  }

  .section {
    padding: 74px 0;
  }

  .section-heading h2,
  .wide-heading h2,
  .gallery-heading h2,
  .join h2 {
    font-size: 38px;
  }

  .intro-copy p,
  .join-copy > p {
    font-size: 16px;
  }

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

  .gallery-item,
  .gallery-item-wide {
    min-height: 240px;
    grid-column: auto;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 390px) {
  .brand small {
    display: none;
  }

  .hero-marker {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gallery-item img {
    transition: none;
  }
}
