:root {
  color-scheme: light;
  --paper: #f6f2e6;
  --surface: #fffcf4;
  --ink: #153331;
  --muted: #4e6661;
  --deep: #0d292b;
  --gold: #f3bd68;
  --line: #d7ded1;
  --content: 1120px;
  --gutter: 24px;
  font: 16px/1.6 "Instrument Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: #145951; text-underline-offset: 3px; }
a:hover { color: #0b3431; }
:focus-visible { outline: 3px solid #a35b17; outline-offset: 4px; }
button, input { font: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(var(--content), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip { position: absolute; inset: 8px auto auto 8px; transform: translateY(-150%); padding: 8px; background: white; z-index: 2; }
.skip:focus { transform: none; }
.top, footer { color: #f8f2e4; background: var(--deep); }
.top { border-bottom: 1px solid #42615b; }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 72px; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff8e7; text-decoration: none; font-family: Georgia, serif; font-size: 23px; white-space: nowrap; }
.brand:hover { color: white; }
.brand b { font-weight: 400; color: var(--gold); }
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a, footer nav a { color: #f8f2e4; text-decoration: none; }
.header-nav a { padding-block: 12px; }
.header-nav a:hover, .header-nav a[aria-current], footer nav a:hover { color: var(--gold); }
.menu { color: white; background: transparent; border: 1px solid #7b9189; border-radius: 6px; min-height: 44px; padding-inline: 14px; }
main { min-height: 65vh; }
h1, h2, h3 { line-height: 1.12; margin: 0; }
h1, h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; }
h2 { font-size: clamp(27px, 4vw, 38px); }
p { margin: 0 0 16px; }
.hero { margin-top: 32px; border-radius: 13px; overflow: hidden; min-height: 410px; display: grid; align-items: center; background: linear-gradient(90deg, #082729f7 0%, #082729d9 36%, #08272932 75%), url('/archipelago.webp') center 58% / cover, #153f42; color: #fff9e8; }
.hero-content { padding: 54px; max-width: 660px; }
.hero h1 { font-size: clamp(55px, 7.2vw, 88px); line-height: .91; margin-bottom: 23px; letter-spacing: -.065em; }
.hero p { max-width: 430px; font-size: 19px; color: #e6eee3; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.actions a { min-height: 46px; border: 1px solid #f3bd68; color: #162d2b; background: var(--gold); padding: 9px 16px; text-decoration: none; border-radius: 5px; font-weight: 700; }
.actions a + a { color: #fff9e8; background: #142b2ccb; border-color: #93a39a; }
.actions a:hover { filter: brightness(1.1); }
.game-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 15px 0 0; padding: 17px 0; border-block: 1px solid var(--line); background: #eceee2; }
.game-facts div { padding-inline: 18px; border-right: 1px solid #cdd6ca; }
.game-facts div:last-child { border: 0; }
.game-facts dt { color: #465f58; font-size: 13px; }
.game-facts dd { margin: 2px 0 0; font-size: clamp(16px, 2.3vw, 24px); font-weight: 750; }
.native-ad { width: 100%; }
.native-ad iframe { max-width: 100%; }
.home-section { margin: 42px 0; }
.home-section h2 { margin-bottom: 17px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.guide-card { display: block; position: relative; min-height: 150px; padding: 18px 46px 18px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); text-decoration: none; }
.guide-card:hover { border-color: #659481; background: #eaf2e8; }
.guide-card h3 { margin: 10px 0 5px; }
.guide-card p { margin: 0; color: var(--muted); }
.card-icon { display: grid; place-items: center; height: 32px; width: 32px; border-radius: 5px; background: #e3eee5; color: #275b51; font-size: 20px; }
.card-arrow { position: absolute; right: 15px; top: 16px; color: #306b60; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.route-list { padding-left: 22px; }
li + li { margin-top: 9px; }
.patch { background: #e6ede3; border: 1px solid var(--line); padding: 21px; border-radius: 8px; }
.patch h3 { margin-bottom: 8px; }
hr { border: 0; border-top: 1px solid #b8c9bc; margin: 19px 0; }
details { border-bottom: 1px solid var(--line); max-width: 790px; }
summary { cursor: pointer; padding-block: 11px; font-weight: 700; }
details p { padding-bottom: 8px; }
.article { padding: 30px 0 65px; }
.breadcrumbs { font-size: 14px; margin-bottom: 21px; }
.article h1 { font-size: clamp(38px, 6vw, 70px); letter-spacing: -.035em; margin-bottom: 13px; }
.lede { font-size: 20px; max-width: 730px; }
.meta { color: var(--muted); font-size: 14px; margin-top: 16px; }
.article-section, .related { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.article-section h2, .related h2 { margin-bottom: 13px; }
.article-section > p, .article-section > ol, .article-section > ul { max-width: 740px; }
.table-wrap { overflow: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; text-align: left; background: var(--surface); }
td, th { vertical-align: top; padding: 10px 13px; border-bottom: 1px solid var(--line); }
th { background: #e5ede4; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin: 16px 0; }
.filters label:first-child { display: grid; }
.filters input[type="search"], .copy { padding: 6px 10px; min-height: 44px; border: 1px solid #91aa9d; border-radius: 5px; background: var(--surface); color: var(--ink); }
.filters label:has([type="checkbox"]) { display: flex; align-items: center; min-height: 44px; gap: 5px; }
.filters [role="status"] { margin-left: auto; }
.copy { cursor: pointer; }
code { font-size: .94em; overflow-wrap: anywhere; }
.copy-status { padding-top: 8px; }
.ad-rail { display: none; }
@media (min-width: 1448px) {
  .ad-rail { display: block; position: absolute; right: calc((100% + var(--content)) / 2 + 4px); top: calc(100svh - 604px); width: 160px; height: 600px; }
}
footer { padding-block: 32px; border-top: 1px solid #42615b; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
.footer-inner p { margin-top: 12px; color: #b8ccc2; max-width: 340px; }
footer h2 { font: bold 16px/1.4 system-ui; margin-bottom: 6px; }
footer nav a { display: block; padding-block: 4px; }
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .header-inner { flex-wrap: wrap; padding-block: 10px; gap: 0 8px; min-height: 62px; }
  .brand { font-size: 21px; }
  .header-nav { flex: 0 0 100%; gap: 0 13px; flex-wrap: wrap; }
  .header-nav a { flex-basis: 44%; }
  .hero { min-height: 360px; margin-top: 19px; background-position: 62% center; }
  .hero-content { padding: 24px; }
  .hero h1 { font-size: clamp(44px, 14vw, 55px); }
  .hero p { font-size: 16px; }
  .hero { background-image: linear-gradient(90deg, #082729f2, #08272969), url('/archipelago.webp'); }
  .game-facts { grid-template-columns: repeat(2, 1fr); gap: 10px 0; }
  .game-facts div:nth-child(even) { border: 0; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div { grid-column: 1 / -1; }
}
@media (max-width: 375px) {
  .card-grid { grid-template-columns: 1fr; }
}

.topic-nav {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.topic-nav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.topic-nav ul { padding: 0; margin: 9px 0 0; list-style: none; }
.topic-nav li + li { margin-top: 2px; }
.topic-nav a { display: inline-block; padding-block: 3px; }
.home-topic { border-top: 1px solid var(--line); padding-top: 24px; scroll-margin-top: 16px; }
.home-topic h3 { margin-bottom: 10px; }
.home-topic p, .home-topic ol, .home-topic ul { max-width: 790px; }
.home-topic .table-wrap { margin-bottom: 16px; }
.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-block: 16px; }
.topic-grid > * { min-width: 0; }
.topic-grid figure { margin: 0; }
.topic-grid img, .game-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; background: var(--deep); object-fit: cover; }
.topic-grid figcaption, .home-source { margin-top: 8px; font-size: 14px; color: var(--muted); }
#home-build { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
#build-goal { font: inherit; color: var(--ink); background: var(--surface); padding: 8px; min-height: 44px; border: 1px solid #91aa9d; border-radius: 5px; }
#build-output { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px; margin-bottom: 14px; }
#build-output p:last-of-type, #build-output p:not([hidden]) { margin-bottom: 0; }
.voyage-end { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #e6ede3; }
@media (max-width: 760px) {
  .topic-nav { padding: 16px; }
  .topic-nav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .topic-grid { grid-template-columns: minmax(0, 1fr); }
  .home-topic table { min-width: 420px; }
}
.sea-route { margin: 0 0 18px; }
.sea-route figcaption { font-weight: 700; margin-bottom: 8px; }
.sea-route ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: none; padding: 0; margin: 0; list-style: none; }
.sea-route li { margin: 0; padding: 12px; background: #e6ede3; border: 1px solid var(--line); border-radius: 6px; }
.sea-route strong, .sea-route span { display: block; }
@media (max-width: 760px) {
  .sea-route ol { grid-template-columns: 1fr; }
}
