:root {
  color-scheme: dark;
  --bg: #171918;
  --panel: #202320;
  --text: #efefe9;
  --muted: #b0b6ad;
  --line: #363c35;
  --orange: #e39365;
  --orange-hover: #f1ae83;
  --radius: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.65; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, a { transition: background-color .18s, color .18s, border-color .18s; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
::selection { background: var(--orange); color: var(--bg); }
[hidden] { display: none !important; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #ffffff12; background: #171918f5; backdrop-filter: blur(14px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; font-size: 23px; letter-spacing: -.8px; line-height: 1.2; }
.brand img { width: 34px; height: 34px; border-radius: 6px; }
.header nav { display: flex; align-items: center; gap: 24px; font-size: 14px; color: #c6cbc2; min-width: 0; }
.header nav > a:hover { color: var(--text); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 46px; padding: 11px 23px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; font-weight: 650; line-height: 1.5; text-align: center; }
.primary { background: var(--orange); color: #1b1d18; }
.primary:hover { background: var(--orange-hover); }
.secondary { background: #1b201cc4; border-color: #737c6880; color: var(--text); }
.secondary:hover { background: #353c30; border-color: #929e80; }
.discord-button { background: #5865f2; color: #fff; gap: 10px; border-color: transparent; }
.discord-button:hover { background: #4752c4; color: #fff; }
.discord-button img { flex-shrink: 0; }
.nav-discord { min-height: 41px; padding: 9px 15px; font-size: 13px; white-space: nowrap; }
.timezone-picker { position: relative; display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 210px; min-height: 40px; padding: 9px 11px; border: 1px solid #41483c; border-radius: 7px; background: #252b23; color: #d2d9c9; cursor: pointer; }
.timezone-picker:hover { border-color: #69775c; background: #30382c; }
.timezone-picker:focus-within { outline: 2px solid var(--orange); outline-offset: 4px; }
.timezone-picker > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.5; }
.timezone-picker svg { fill: none; stroke: currentColor; stroke-width: 1.6; flex-shrink: 0; }
.timezone-globe { width: 16px; height: 16px; color: #a3b296; }
.timezone-chevron { width: 13px; height: 13px; margin-left: 2px; }
.timezone-picker select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font: inherit; }

.hero { position: relative; isolation: isolate; min-height: 560px; display: grid; align-items: center; text-align: center; background: #20271f; }
.hero-image { position: absolute; z-index: -2; inset: 0; background: url('/assets/wilderness.jpg') center 52% / cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg), #141b147a 48%, #141b1466), linear-gradient(90deg, #111a1240, #111a125e, #111a1240); }
.hero-content { padding-block: 90px 110px; }
.hero h1 { font-size: clamp(62px, 7vw, 90px); font-weight: 800; letter-spacing: -4px; line-height: 1.04; text-shadow: 0 2px 25px #0a100760; }
.hero h1 span { display: block; color: #edb88e; font-size: .68em; font-weight: 650; letter-spacing: -2px; margin-top: 13px; }
.hero p { color: #e0e5d9; font-size: 18px; line-height: 1.65; margin-top: 25px; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.section { padding-block: 64px; }
.section-heading { margin-bottom: 26px; }
h2 { font-size: clamp(27px, 3vw, 34px); font-weight: 700; letter-spacing: -1px; line-height: 1.25; }
.section-heading p { margin-top: 9px; color: var(--muted); font-size: 14px; }
.heading-inline { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.servers { padding-top: 44px; }
.server-list { display: grid; gap: 20px; }
.server-card { display: grid; grid-template-columns: 250px minmax(0, 1fr); border: 1px solid #464e40; border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.server-art { position: relative; min-height: 300px; background: linear-gradient(0deg, #16201450, #16201410), url('/assets/wilderness.jpg') 84% 58% / cover; }
.server-art-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 84% 58%; }
.server-content { min-width: 0; padding: 28px 30px; display: flex; flex-direction: column; gap: 21px; }
.server-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.server-heading h3 { font-size: 23px; font-weight: 650; line-height: 1.35; letter-spacing: -.5px; }
.status { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding-top: 5px; color: #c1c8b7; font-size: 12px; line-height: 1.5; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #aaa67b; flex-shrink: 0; }
.status.online { color: #b7d7a4; }
.status.online::before { background: #acd38e; }
.status.unavailable { color: #d8bb96; }
.server-features { margin: 0; padding-left: 19px; color: #cbd2c2; font-size: 14px; line-height: 1.75; }
.server-features li + li { margin-top: 3px; }
.server-features li::marker { color: var(--orange); }
.server-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-block: 19px; border-block: 1px solid var(--line); }
.metric-label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.metric-value { display: block; color: var(--text); font-size: 17px; font-weight: 550; font-variant-numeric: tabular-nums; }
.server-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.server-bottom .button { min-height: 41px; padding: 9px 17px; font-size: 13px; flex-shrink: 0; }
.connection-label { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.server-connection { min-width: 0; }
.address-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.connection-address { font-family: ui-monospace, SFMono-Regular, monospace; color: #e0e5d9; font-size: 13px; overflow-wrap: anywhere; }
.copy-address { display: inline-flex; align-items: center; justify-content: center; padding: 4px 9px; min-width: 58px; height: 31px; background: #30382c; border: 1px solid #505e43; border-radius: 5px; color: #d5dec9; font-size: 11px; }
.copy-address:hover { background: #414d38; }
.copied, .copied:hover { background: #273a2b; color: #98d9a4; border-color: #527e5c; }
.copy-check { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: copy-pop .2s ease-out; }
.copy-check path { stroke-dasharray: 24; stroke-dashoffset: 0; animation: copy-draw .25s ease-out; }
@keyframes copy-pop { from { transform: scale(.65); opacity: .3; } to { transform: scale(1); opacity: 1; } }
@keyframes copy-draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.server-footnote { margin-top: 14px; color: var(--muted); font-size: 12px; }
.loading, .noscript-server { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.noscript-server h3 { color: var(--text); margin-bottom: 8px; }

.wipes { padding-top: 15px; }
.wipe-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #1e221e; }
.wipe-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; padding: 26px 28px; align-items: center; min-height: 116px; }
.wipe-row + .wipe-row { border-top: 1px solid var(--line); }
.wipe-row h3 { font-weight: 650; font-size: 18px; letter-spacing: -.3px; line-height: 1.35; align-self: center; }
.wipe-details { margin: 0; display: grid; grid-template-columns: .65fr 1.15fr 1.8fr; gap: 22px; align-items: center; }
.wipe-details > div { display: flex; flex-direction: column; justify-content: center; min-height: 68px; }
.wipe-details dt { font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.wipe-details dd { margin: 0; font-size: 14px; color: var(--text); }
.wipe-details .next-wipe { font-size: 13px; }
.next-wipe-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 11px; }
.wipe-countdown { display: inline-flex; align-items: center; font: 11px/1.5 ui-monospace, SFMono-Regular, monospace; color: #e6b18b; padding: 3px 7px; background: #e3936512; border: 1px solid #e3936526; border-radius: 5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.next-wipe-type { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.next-wipe-type:empty { display: none; }
.wipe-note { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 17px; max-width: 850px; }
.wipe-note a { text-decoration: underline; text-underline-offset: 3px; color: #d3d9c9; }

.calendar { margin-top: 34px; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.calendar-toolbar h3 { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -.4px; }
#calendar-range { margin-top: 5px; color: var(--muted); font-size: 13px; }
.calendar-controls { display: flex; gap: 4px; padding: 4px; background: #20261f; border: 1px solid var(--line); border-radius: 8px; }
.calendar-controls button { border: 1px solid transparent; border-radius: 5px; padding: 7px 14px; color: #b3bdae; background: transparent; font-size: 12px; line-height: 1.5; }
.calendar-controls button:hover { color: var(--text); background: #30382b; }
.calendar-controls button[aria-pressed='true'] { color: #1b1d18; background: var(--orange); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; border-radius: 8px; }
.calendar-grid:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
.calendar-grid > .loading { grid-column: 1 / -1; }
.calendar-day { min-width: 0; min-height: 150px; padding: 12px; border: 1px solid #343d30; background: #1d231c; border-radius: 8px; }
.calendar-day.today { border-color: #8e9b7c; }
.calendar-day.has-wipe { background: #272d23; border-color: #596247; }
.calendar-day.today.has-wipe { border-color: var(--orange); }
.calendar-date { margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.calendar-date time { display: flex; align-items: baseline; gap: 6px; }
.calendar-weekday { color: var(--muted); font-size: 11px; font-weight: 450; }
.calendar-number { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.today-label { font-size: 9px; color: #c6cfbb; font-weight: 450; }
.calendar-events { display: grid; gap: 8px; }
.calendar-event { border-left: 2px solid var(--orange); background: #d3956020; border-radius: 3px; padding: 9px 8px; }
.calendar-event.past { opacity: .65; }
.calendar-event.forced { border-color: #d6bd7e; background: #d6bd7e18; }
.calendar-event.forced .calendar-server { color: #ead49f; }
.calendar-server { display: block; color: #f2d0b3; font-size: 12px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.calendar-server:hover { text-decoration: underline; text-underline-offset: 3px; }
.calendar-kind { display: block; font-size: 10px; color: #cdd4c3; margin-top: 5px; }
.calendar-time { display: block; color: #acb6a1; font-size: 10px; margin-top: 2px; }
.calendar-empty { color: #66745e; font-size: 15px; }
.calendar-note { font-size: 12px; color: var(--muted); margin-top: 13px; }

.about { border-block: 1px solid var(--line); background: #1d211d; }
.about-layout { display: grid; grid-template-columns: 1fr 1.7fr; gap: 70px; }
.about-copy { max-width: 690px; color: #c3cbbd; font-size: 15px; line-height: 1.85; }
.about-copy p + p { margin-top: 15px; }
.community { display: flex; justify-content: space-between; align-items: center; gap: 35px; padding: 33px 36px; margin-top: 64px; background: #2a3327; border: 1px solid #46523d; border-radius: var(--radius); }
.community h2 { font-size: 27px; }
.community p { font-size: 14px; color: #c2cbb8; margin-top: 8px; }
.community .button { flex-shrink: 0; }
.faq { display: grid; grid-template-columns: 1fr 1.7fr; gap: 70px; padding-block: 70px 80px; }
.faq h2 { font-size: 28px; max-width: 260px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; list-style: none; padding-block: 18px; font-size: 14px; font-weight: 550; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span { font-weight: 400; font-size: 20px; color: var(--muted); }
.faq-list details[open] summary > span { transform: rotate(45deg); }
.faq-list details p { font-size: 14px; color: var(--muted); line-height: 1.8; padding-bottom: 20px; }
.team-limit-list { margin: 0; padding: 0 0 20px 20px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.team-limit-list li + li { margin-top: 5px; }
.footer { border-top: 1px solid var(--line); padding-block: 27px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer .brand { font-size: 19px; }
.footer p { font-size: 12px; color: var(--muted); }
.footer > a:last-child { font-size: 13px; color: #c4ccb8; }

.skip { position: fixed; left: 20px; top: -100px; padding: 12px 20px; z-index: 30; background: var(--orange); color: #171918; border-radius: 6px; }
.skip:focus { top: 15px; }
dialog { width: min(500px, calc(100% - 36px)); padding: 34px; border: 1px solid #58624c; border-radius: var(--radius); background: var(--panel); color: var(--text); box-shadow: 0 20px 80px #0008; }
dialog::backdrop { background: #0a100bd9; backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 10px; right: 12px; padding: 4px 9px; border: 0; background: transparent; color: var(--muted); font-size: 24px; }
.dialog-close:hover { color: var(--text); }
dialog h2 { padding-right: 20px; font-size: 26px; margin-bottom: 18px; }
dialog p { font-size: 14px; color: var(--muted); }
.join-browser h3, .join-direct h3 { margin: 0; font-size: 15px; font-weight: 650; }
.join-steps { margin: 13px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.join-steps li + li { margin-top: 7px; }
.join-steps strong { color: var(--text); font-weight: 550; }
.join-direct { margin-top: 27px; padding-top: 22px; border-top: 1px solid var(--line); }
.join-direct > p { margin-top: 10px; font-size: 13px; }
dialog code { display: block; margin: 14px 0; padding: 14px; background: #161b15; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; overflow-wrap: anywhere; }
dialog .button { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--orange); margin-top: 23px; }
.text-link:hover { color: var(--orange-hover); }
kbd { border: 1px solid #59614f; padding: 1px 4px; border-radius: 3px; }

@media (max-width: 1000px) {
  .header nav { gap: 15px; }
  .timezone-picker { max-width: 175px; }
  .server-card { grid-template-columns: 200px minmax(0, 1fr); }
  .server-content { padding: 25px; }
  .server-heading { flex-direction: column; gap: 8px; }
  .status { padding-top: 0; }
  .calendar-day { padding: 9px; }
  .calendar-date { flex-wrap: wrap; }
  .calendar-date time { gap: 4px; }
  .wipe-row { grid-template-columns: 1fr; gap: 22px; }
  .about-layout, .faq { gap: 40px; grid-template-columns: 1fr 1.6fr; }
}

@media (min-width: 701px) and (max-width: 900px) {
  .header nav > a[href='#about'] { display: none; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 165px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 0; padding-block: 15px; flex-wrap: wrap; gap: 14px; }
  .brand { font-size: 21px; gap: 9px; }
  .brand img { width: 29px; height: 29px; }
  .header nav { width: 100%; gap: 12px; font-size: 12px; }
  .header nav > a[href='#about'] { display: none; }
  .nav-discord { padding: 8px 10px; min-height: 38px; font-size: 12px; gap: 7px; }
  .nav-discord img { width: 18px; height: 18px; }
  .timezone-picker { flex: 1; padding: 8px 9px; gap: 6px; min-height: 38px; max-width: none; }
  .timezone-picker > span { font-size: 11px; }
  .hero { min-height: 470px; }
  .hero-image { background-position: 67% center; }
  .hero-content { padding-block: 75px 90px; }
  .hero h1 { font-size: clamp(52px, 10vw, 68px); letter-spacing: -2.5px; }
  .hero h1 span { font-size: .65em; letter-spacing: -1.2px; margin-top: 13px; }
  .hero p { font-size: 16px; margin-top: 24px; }
  .hero-actions { margin-top: 27px; gap: 10px; }
  .button { padding: 11px 19px; font-size: 13px; }
  .section { padding-block: 45px; }
  .servers { padding-top: 25px; }
  h2 { font-size: 28px; }
  .section-heading { margin-bottom: 22px; }
  .section-heading p { font-size: 13px; }
  .server-card { grid-template-columns: 1fr; }
  .server-art { min-height: 165px; background-position: 80% 52%; }
  .server-content { padding: 22px; gap: 18px; }
  .server-heading h3 { font-size: 22px; }
  .server-features { font-size: 13px; }
  .server-metrics { gap: 12px; padding-block: 17px; }
  .metric-value { font-size: 15px; }
  .metric-label { font-size: 11px; }
  .server-bottom { flex-wrap: wrap; gap: 14px; }
  .connection-label { font-size: 11px; }
  .server-connection { flex-basis: 100%; }
  .connection-address { font-size: 12px; }
  .server-footnote { font-size: 11px; }
  .wipes { padding-top: 5px; }
  .heading-inline { flex-wrap: wrap; gap: 14px; }
  .wipe-row { padding: 23px; gap: 20px; }
  .wipe-details { grid-template-columns: 1fr 1fr; gap: 20px; }
  .wipe-details > div:last-child { grid-column: 1 / -1; padding-top: 15px; border-top: 1px solid var(--line); }
  .wipe-note { font-size: 11px; }
  .calendar { margin-top: 28px; }
  .calendar-toolbar { flex-wrap: wrap; gap: 14px; }
  .calendar-toolbar h3 { font-size: 20px; }
  .calendar-controls button { padding: 7px 13px; }
  .calendar-grid { grid-template-columns: 1fr; max-height: 570px; overflow-y: auto; padding-right: 5px; scrollbar-color: #697c58 #1d231c; }
  .calendar-day { min-height: 0; padding: 13px 16px; display: grid; grid-template-columns: 75px minmax(0, 1fr); gap: 18px; align-items: start; }
  .calendar-date { margin: 0; flex-direction: column; align-items: start; gap: 5px; }
  .calendar-date time { gap: 7px; }
  .calendar-number { font-size: 18px; }
  .today-label { font-size: 10px; }
  .calendar-server { font-size: 13px; }
  .calendar-event { padding: 9px 12px; }
  .calendar-kind, .calendar-time { font-size: 11px; }
  .calendar-note { font-size: 11px; }
  .about-layout, .faq { grid-template-columns: 1fr; gap: 22px; }
  .about-copy { font-size: 14px; }
  .community { margin-top: 44px; padding: 26px 23px; flex-direction: column; align-items: flex-start; gap: 23px; }
  .community h2 { font-size: 25px; }
  .community p { font-size: 13px; }
  .community .button { width: 100%; }
  .faq { padding-bottom: 50px; gap: 25px; }
  .faq h2 { max-width: none; font-size: 26px; }
  .faq-list summary { font-size: 13px; }
  .faq-list details p { font-size: 13px; }
  .footer { flex-wrap: wrap; gap: 18px; padding-block: 25px; }
  .footer .brand { flex: 1; }
  .footer p { order: 3; width: 100%; font-size: 11px; }
  dialog { padding: 30px 23px; }
}

@media (max-width: 390px) {
  .header nav > a[href='#wipes'] { display: none; }
  .header nav { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
