:root {
  color-scheme: light;
  --paper: #f3f1e8;
  --card: #fffdf6;
  --ink: #15251b;
  --muted: #657068;
  --line: rgba(21, 37, 27, 0.14);
  --line-strong: rgba(21, 37, 27, 0.3);
  --green: #275f37;
  --green-hover: #1f4d2c;
  --warning: #a55332;
  --radius-large: 20px;
  --radius-medium: 14px;
  --soft-shadow: 0 16px 45px rgba(21, 37, 27, 0.06);
  --page-width: 1360px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(21, 37, 27, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 37, 27, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a,
button {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  width: min(calc(100% - 48px), var(--page-width));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand,
.header-side,
.site-nav,
.language-switch {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 800;
}

.brand-name {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.header-side {
  gap: 1.6rem;
}

.site-nav {
  gap: 1.1rem;
}

.site-nav a {
  position: relative;
  padding: 0.45rem 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 720;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.1rem;
  left: 0;
  height: 2px;
  background: var(--green);
}

.language-switch {
  gap: 0.5rem;
  padding: 0.18rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.language-switch > span {
  width: 1px;
  height: 0.7rem;
  background: var(--line);
}

.language-switch button {
  position: relative;
  padding: 0.38rem 0.12rem;
  border: 0;
  color: #858d87;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: var(--ink);
}

.language-switch button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.02rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  transform: translateX(-50%);
}

.brand:focus-visible,
.site-nav a:focus-visible,
.language-switch button:focus-visible,
.copy-button:focus-visible,
.home-action:focus-visible,
.portal-button:focus-visible,
.guide-nav a:focus-visible,
.guide-cta:focus-visible,
.guide-external-link:focus-visible,
.gallery-arrow:focus-visible,
.gallery-dots button:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid rgba(39, 95, 55, 0.38);
  outline-offset: 4px;
}

.section-label {
  margin: 0;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.section-label.inverse {
  color: rgba(255, 253, 246, 0.72);
}

body[data-page="home"] {
  --home-paper: #f6f0e4;
  --home-card: #fffaf0;
  --home-ink: #3a2d24;
  --home-muted: #7a6c5f;
  --home-accent: #b85d2d;
  --home-accent-dark: #8e4320;
  --home-olive: #657047;
  --home-line: rgba(73, 52, 37, 0.18);
  --home-line-strong: rgba(73, 52, 37, 0.38);
  color: var(--home-ink);
  background:
    radial-gradient(circle at 16% 28%, rgba(231, 159, 48, 0.2) 0, rgba(231, 159, 48, 0.08) 13rem, transparent 25rem),
    radial-gradient(circle at 84% 40%, rgba(181, 108, 52, 0.09) 0, transparent 24rem),
    linear-gradient(rgba(94, 68, 47, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 68, 47, 0.024) 1px, transparent 1px),
    var(--home-paper);
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
}

body[data-page="home"] .site-shell {
  width: 100%;
}

body[data-page="home"] .site-header {
  min-height: 76px;
  margin: 0;
  padding-right: max(24px, calc((100vw - var(--page-width)) / 2));
  padding-left: max(24px, calc((100vw - var(--page-width)) / 2));
  border-bottom: 1px solid var(--home-line-strong);
  background: transparent;
  color: var(--home-ink);
}

body[data-page="home"] .brand-mark {
  background: var(--home-ink);
  color: var(--home-paper);
}

body[data-page="home"] .site-nav a {
  color: var(--home-muted);
}

body[data-page="home"] .site-nav a:hover,
body[data-page="home"] .site-nav a.active {
  color: var(--home-ink);
}

body[data-page="home"] .site-nav a.active::after {
  background: var(--home-accent);
}

body[data-page="home"] .language-switch {
  border-color: var(--home-line);
  background: transparent;
}

body[data-page="home"] .language-switch > span {
  background: var(--home-line);
}

body[data-page="home"] .language-switch button {
  color: var(--home-muted);
}

body[data-page="home"] .language-switch button[aria-pressed="true"] {
  color: var(--home-ink);
}

body[data-page="home"] .language-switch button[aria-pressed="true"]::after {
  background: var(--home-accent);
}

.home-main {
  width: min(calc(100% - 48px), var(--page-width));
  margin: 0 auto;
  align-self: center;
  padding: clamp(2.5rem, 5vw, 4.75rem) 0 clamp(2rem, 4vw, 3.5rem);
}

.home-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  min-height: 410px;
  padding: 0 clamp(1rem, 3vw, 3rem);
}

.world-visual {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0;
  justify-self: center;
  isolation: isolate;
}

@media (min-width: 821px) {
  .world-visual {
    transform: translateY(-2rem);
  }
}

.world-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1.5rem -1.25rem 12%;
  background: rgba(230, 157, 48, 0.48);
  filter: blur(28px);
}

.world-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1.42;
  display: block;
  object-fit: cover;
  box-shadow: 0 24px 55px rgba(21, 37, 27, 0.18);
}

.modpack-logo {
  position: absolute;
  right: 8%;
  bottom: -11%;
  width: 64%;
  height: auto;
  filter: drop-shadow(0 8px 8px rgba(21, 37, 27, 0.26));
}

.home-intro {
  width: 100%;
  max-width: 560px;
}

.home-eyebrow {
  margin: 0 0 1.2rem;
  color: var(--home-olive);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-intro h1 {
  margin: 0;
  font-size: clamp(3.2rem, 3.5vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
  font-weight: 800;
  white-space: nowrap;
}

.home-intro h1 span {
  color: var(--home-accent);
}

.home-byline {
  margin: 0.85rem 1rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  text-align: right;
}

.home-actions {
  width: min(100%, 330px);
  margin: clamp(2.75rem, 5vw, 4.5rem) 0 0 auto;
  display: grid;
  gap: 0.8rem;
}

.home-action {
  min-height: 56px;
  padding: 0 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  border-top: 1px solid var(--home-line-strong);
  border-bottom: 1px solid var(--home-line);
  background: transparent;
  color: var(--home-ink);
  box-shadow: none;
  font-size: 0.9rem;
  font-weight: 780;
  text-decoration: none;
}

.home-action:hover {
  padding-right: 0.75rem;
  padding-left: 1.55rem;
  color: var(--home-accent-dark);
}

.home-action.primary::after {
  content: "→";
  color: var(--home-accent);
  font-size: 1.1rem;
}

.home-action.disabled {
  color: var(--home-muted);
  cursor: default;
}

.home-action.disabled:hover {
  padding-right: 1.15rem;
  padding-left: 1.15rem;
  color: var(--home-muted);
}

.home-action small {
  font-size: 0.64rem;
  font-weight: 720;
}

.server-summary {
  width: min(100% - 2rem, 1120px);
  margin: clamp(2rem, 4vw, 3.5rem) auto 0;
}

.summary-address {
  position: relative;
  min-height: 88px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 2px solid var(--home-accent);
  border-bottom: 1px solid var(--home-line-strong);
  background: transparent;
  color: var(--home-ink);
}

.summary-address > p,
.summary-status > p,
.summary-specs p {
  margin: 0;
  font-weight: 760;
}

.summary-address > p {
  font-size: 1rem;
}

.summary-address > div {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.summary-address strong {
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.copy-button {
  min-height: 40px;
  padding: 0 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  border: 1px solid var(--home-line-strong);
  background: transparent;
  color: var(--home-accent-dark);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 750;
  cursor: pointer;
}

.copy-button:hover {
  border-color: var(--home-accent);
  background: rgba(184, 93, 45, 0.07);
  color: var(--home-accent-dark);
}

.copy-feedback {
  position: absolute;
  right: 1.25rem;
  bottom: 0.2rem;
  margin: 0;
  color: var(--home-muted);
  font-size: 0.62rem;
}

.summary-specs {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.summary-specs article {
  min-height: 66px;
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: minmax(115px, 0.65fr) minmax(0, 1.35fr);
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--home-line);
  background: transparent;
  box-shadow: none;
}

.summary-specs article:first-child {
  border-right: 1px solid var(--home-line);
}

.summary-specs p {
  color: var(--home-muted);
  font-size: 0.78rem;
}

.summary-specs strong {
  font-size: 0.94rem;
  line-height: 1.4;
}

.summary-specs strong span {
  white-space: nowrap;
}

.summary-status {
  min-height: 82px;
  padding: 0.75rem 1rem;
  display: grid;
  grid-template-columns: minmax(150px, 0.3fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--home-line-strong);
  background: transparent;
  box-shadow: none;
}

.status-title {
  font-size: 0.95rem;
}

.status-panel {
  min-height: 58px;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  align-items: center;
  border: 0;
  background: transparent;
  text-align: right;
}

.status-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  font-weight: 780;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--home-olive);
  box-shadow: 0 0 0 5px rgba(101, 112, 71, 0.1);
}

.status-panel p {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.76rem;
  line-height: 1.5;
  word-break: keep-all;
}

.status-panel[data-state="checking"] {
  border-left-color: #50675a;
}

.status-panel[data-state="checking"] .status-dot {
  background: #50675a;
}

.status-panel[data-state="offline"],
.status-panel[data-state="unreachable"] {
  border-left-color: var(--warning);
}

.status-panel[data-state="offline"] .status-dot,
.status-panel[data-state="unreachable"] .status-dot {
  background: var(--warning);
  box-shadow: 0 0 0 5px rgba(165, 83, 50, 0.1);
}

body[data-page="home"] .site-footer {
  min-height: 72px;
  margin: 0;
  padding-right: max(24px, calc((100vw - var(--page-width)) / 2));
  padding-left: max(24px, calc((100vw - var(--page-width)) / 2));
  border-top: 1px solid var(--home-line-strong);
  background: transparent;
  color: var(--home-muted);
}

body[data-page="guide"] {
  --paper: #f6f0e4;
  --card: #fffaf0;
  --ink: #3a2d24;
  --muted: #7a6c5f;
  --line: rgba(73, 52, 37, 0.18);
  --line-strong: rgba(73, 52, 37, 0.38);
  --green: #b85d2d;
  --green-hover: #8e4320;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 14%, rgba(231, 159, 48, 0.18) 0, rgba(231, 159, 48, 0.07) 13rem, transparent 26rem),
    radial-gradient(circle at 12% 46%, rgba(181, 108, 52, 0.07) 0, transparent 24rem),
    linear-gradient(rgba(94, 68, 47, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 68, 47, 0.024) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
}

body[data-page="guide"] .site-shell {
  width: 100%;
}

body[data-page="guide"] .site-header {
  min-height: 76px;
  margin: 0;
  padding-right: max(24px, calc((100vw - var(--page-width)) / 2));
  padding-left: max(24px, calc((100vw - var(--page-width)) / 2));
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
}

body[data-page="guide"] .brand-mark {
  background: var(--ink);
  color: var(--paper);
}

body[data-page="guide"] .language-switch {
  border-color: var(--line);
  background: transparent;
}

body[data-page="guide"] .language-switch > span {
  background: var(--line);
}

body[data-page="guide"] .brand:focus-visible,
body[data-page="guide"] .site-nav a:focus-visible,
body[data-page="guide"] .language-switch button:focus-visible,
body[data-page="guide"] .guide-nav a:focus-visible,
body[data-page="guide"] .guide-external-link:focus-visible,
body[data-page="guide"] .gallery-arrow:focus-visible,
body[data-page="guide"] .gallery-dots button:focus-visible,
body[data-page="guide"] .site-footer a:focus-visible {
  outline-color: rgba(184, 93, 45, 0.42);
}

.guide-main {
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto;
  padding: clamp(3.75rem, 7vw, 6.5rem) 0 clamp(5rem, 9vw, 8rem);
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.guide-hero-copy {
  max-width: 620px;
}

.guide-hero h1 {
  max-width: 620px;
  margin: 1rem 0 1.4rem;
  font-size: clamp(3.5rem, 5.4vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
  font-weight: 800;
  word-break: keep-all;
}

.guide-hero-copy > p:last-child {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
  word-break: keep-all;
}

.guide-visual {
  position: relative;
  width: 100%;
  max-width: 470px;
  margin: 0;
  justify-self: end;
  isolation: isolate;
}

.guide-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1.4rem -1.15rem 10%;
  background: rgba(230, 157, 48, 0.42);
  filter: blur(28px);
}

.guide-world-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1.42;
  display: block;
  object-fit: cover;
  box-shadow: 0 22px 50px rgba(73, 52, 37, 0.2);
}

.guide-modpack-logo {
  position: absolute;
  right: 7%;
  bottom: -11%;
  width: 66%;
  height: auto;
  filter: drop-shadow(0 8px 8px rgba(73, 52, 37, 0.26));
}

.guide-nav {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
}

.guide-nav a {
  min-height: 54px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.guide-nav a + a {
  border-left: 1px solid var(--line);
}

.guide-nav a:hover {
  background: rgba(184, 93, 45, 0.07);
  color: var(--green-hover);
}

.guide-section {
  padding-top: clamp(4.75rem, 9vw, 7.5rem);
  scroll-margin-top: 1rem;
}

.guide-section-heading {
  padding-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: end;
  border-bottom: 1px solid var(--line-strong);
}

.section-number {
  margin: 0;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 800;
}

.guide-section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.guide-section-intro {
  max-width: 720px;
  margin: 1.4rem 0 0 72px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
  word-break: keep-all;
}

.walkthrough-list {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 2px solid var(--green);
}

.walkthrough-step {
  padding: clamp(3.25rem, 7vw, 5.5rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.walkthrough-copy {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.walkthrough-copy .step-number {
  margin: 0 0 1rem;
}

.walkthrough-copy h3 {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  word-break: keep-all;
}

.walkthrough-copy > p:not(.step-number) {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
  word-break: keep-all;
}

.guide-external-link {
  width: fit-content;
  margin-top: 1.5rem;
  padding-bottom: 0.35rem;
  display: inline-block;
  border-bottom: 1px solid var(--green);
  color: var(--green-hover);
  font-size: 0.78rem;
  font-weight: 780;
  text-decoration: none;
}

.guide-external-link::after {
  content: " ↗";
}

.guide-external-link:hover {
  color: var(--green);
}

.guide-gallery {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  outline: none;
}

.guide-gallery:focus-visible {
  outline: 3px solid rgba(184, 93, 45, 0.3);
  outline-offset: 6px;
}

.gallery-stage {
  position: relative;
}

.guide-shot {
  margin: 0;
}

.guide-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 1902 / 1191;
  display: block;
  object-fit: contain;
  background: #fbf5e9;
  box-shadow: 0 18px 44px rgba(73, 52, 37, 0.16);
}

.guide-shot figcaption {
  min-height: 2.7rem;
  padding-top: 0.85rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}

.gallery-controls {
  min-height: 42px;
  display: grid;
  grid-template-columns: 40px 1fr auto 40px;
  align-items: center;
  gap: 0.7rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-strong);
}

.gallery-arrow {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.gallery-arrow:hover {
  color: var(--green);
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
}

.gallery-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.gallery-dots button[aria-current="true"] {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(184, 93, 45, 0.08);
}

.gallery-count {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.recommended-divider {
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 3rem) 72px;
  border-bottom: 1px solid var(--line-strong);
}

.recommended-divider h3 {
  max-width: 700px;
  margin: 0.85rem 0 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.055em;
  word-break: keep-all;
}

.recommended-divider > p:last-child {
  max-width: 670px;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
  word-break: keep-all;
}

.walkthrough-finish {
  border-bottom-color: var(--line-strong);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line-strong);
}

.steps li {
  min-height: 142px;
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 0;
}

.step-number {
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 800;
}

.steps h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.steps p {
  max-width: 760px;
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.75;
  word-break: keep-all;
}

.steps.compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.steps.compact li {
  min-height: 180px;
  padding-right: 1.5rem;
}

.steps.compact li:nth-child(even) {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.steps.compact li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

body[data-page="guide"] .site-footer {
  min-height: 72px;
  margin: 0;
  padding-right: max(24px, calc((100vw - var(--page-width)) / 2));
  padding-left: max(24px, calc((100vw - var(--page-width)) / 2));
  border-top: 1px solid var(--line-strong);
  background: transparent;
}

.site-footer {
  min-height: 66px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 820px) {
  .home-showcase {
    grid-template-columns: 1fr;
    gap: 4.5rem;
    min-height: auto;
    padding-top: 1.5rem;
  }

  .world-visual {
    max-width: 600px;
  }

  .home-intro {
    max-width: 620px;
    margin: 0 auto;
  }

  .home-eyebrow,
  .home-intro h1 {
    text-align: center;
  }

  .home-actions {
    margin-right: auto;
    margin-left: auto;
  }

  .guide-hero {
    grid-template-columns: 1fr;
    gap: 4.5rem;
  }

  .guide-hero-copy {
    max-width: 680px;
  }

  .guide-visual {
    max-width: 600px;
    justify-self: center;
  }

  .walkthrough-step {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .walkthrough-copy,
  .guide-gallery {
    grid-column: 1;
  }

  .walkthrough-copy {
    grid-row: 1;
  }

  .guide-gallery {
    grid-row: 2;
  }

}

@media (max-width: 620px) {
  .site-shell {
    width: min(calc(100% - 28px), var(--page-width));
  }

  .site-header {
    min-height: 66px;
    gap: 1rem;
  }

  .brand-name {
    display: none;
  }

  .header-side {
    gap: 0.85rem;
  }

  .site-nav {
    gap: 0.7rem;
  }

  .site-nav a {
    font-size: 0.68rem;
  }

  .home-main {
    width: calc(100% - 28px);
    padding-top: 1.5rem;
  }

  body[data-page="home"] .site-header {
    margin: 0;
    padding-right: 14px;
    padding-left: 14px;
  }

  body[data-page="guide"] .site-header {
    margin: 0;
    padding-right: 14px;
    padding-left: 14px;
  }

  .home-showcase {
    gap: 3.75rem;
    padding: 1.5rem 0 0;
  }

  .world-visual {
    width: 94%;
  }

  .home-intro h1 {
    font-size: clamp(3.25rem, 15vw, 4.5rem);
    white-space: normal;
  }

  .home-byline {
    margin-right: 0;
    text-align: center;
  }

  .home-actions {
    width: 100%;
    margin-top: 2.25rem;
  }

  .server-summary {
    width: 100%;
  }

  .summary-address {
    padding: 1.1rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-address > div {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-address strong {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  .copy-feedback {
    right: 1.1rem;
  }

  .summary-specs {
    grid-template-columns: 1fr;
  }

  .summary-specs article {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .summary-specs article:first-child {
    border-right: 0;
  }

  .summary-status {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .status-panel {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  body[data-page="home"] .site-footer {
    min-height: 66px;
    margin: 0;
    padding-right: 14px;
    padding-left: 14px;
  }

  .guide-main {
    width: calc(100% - 28px);
    padding-top: 3.25rem;
  }

  .guide-hero {
    gap: 3.75rem;
    padding-bottom: 4.5rem;
  }

  .guide-hero h1 {
    font-size: clamp(2.9rem, 14vw, 4.1rem);
  }

  .guide-visual {
    width: 94%;
  }

  .guide-nav {
    grid-template-columns: 1fr 1fr;
  }

  .guide-nav a + a {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .guide-section {
    padding-top: 4rem;
  }

  .guide-section-heading,
  .steps li {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .guide-section-intro {
    margin-left: 46px;
  }

  .walkthrough-step {
    padding: 3.25rem 0;
  }

  .walkthrough-copy h3 {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .recommended-divider {
    padding-left: 46px;
  }

  .gallery-controls {
    grid-template-columns: 36px 1fr auto 36px;
    gap: 0.45rem;
  }

  .gallery-arrow {
    width: 36px;
  }

  .steps.compact {
    grid-template-columns: 1fr;
  }

  .steps.compact li {
    min-height: 142px;
    padding-right: 0;
  }

  .steps.compact li:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .steps.compact li:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  body[data-page="guide"] .site-footer {
    min-height: 66px;
    margin: 0;
    padding-right: 14px;
    padding-left: 14px;
  }

  .site-footer {
    min-height: 78px;
  }
}

@media (min-width: 1200px) and (min-height: 900px) {
  .site-header {
    min-height: 80px;
  }

  .home-main {
    padding-top: 4.5rem;
    padding-bottom: 4rem;
  }

  .site-footer {
    min-height: 74px;
  }
}

@media (max-width: 390px) {
  .language-switch {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  .site-nav a {
    font-size: 0.64rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
