/* A server's public web page (docs/SITES.md; templates/site/page.html). The clan's page, not
   ours: their title over their game's photo (the Aurora banners, docs/DESIGN.md), then mono
   eyebrows over hairline-ruled sections, one reading column and a narrow column for the live
   parts (join, online, mods, members). The owner's look (docs/SITES.md "Look") arrives as the
   --wy-site-* custom properties (accent, its ink, link colours, heading face, banner) and as
   data-header / data-layout variants; nothing a customer typed is CSS. Tokens only; every
   selector under .wy-site (the Look card on the Website tab is .wy-site-look). */
.wy-site { display: flex; flex-direction: column; min-height: 100vh; background: var(--wy-bg); color: var(--wy-text); font-size: var(--wy-text-md); line-height: var(--wy-leading); }
.wy-site__inner { width: 100%; max-width: var(--wy-content-max); margin-inline: auto; padding-inline: var(--wy-space-6); }

/* the members' bar: only members see it */
.wy-site__bar { background: var(--wy-surface-sunken); border-bottom: 1px solid var(--wy-border); font-size: var(--wy-text-sm); color: var(--wy-text-muted); }
.wy-site__barrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--wy-space-2) var(--wy-space-4); padding-block: var(--wy-space-2); }
.wy-site__barrow a { color: var(--wy-text); font-weight: var(--wy-weight-semibold); }

/* masthead */
.wy-site__head { padding-block: var(--wy-space-16) var(--wy-space-8); background-color: var(--wy-plate-bg); background-image: var(--wy-photo-hero); background-size: cover; background-position: center; color: var(--wy-hero-text); }
.wy-site__head[data-game="valheim"] { background-image: var(--wy-photo-valheim); }
.wy-site__head[data-game="rust"] { background-image: var(--wy-photo-rust); background-position: center 60%; }
.wy-site__eyebrow { margin: 0 0 var(--wy-space-4); font-family: var(--wy-font-mono); font-size: var(--wy-text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--wy-site-link-dark); }
.wy-site__title { margin: 0; max-width: 22ch; font-family: var(--wy-site-heading); font-size: var(--wy-text-5xl); font-weight: var(--wy-weight-black); line-height: var(--wy-leading-display); letter-spacing: var(--wy-tracking-display); text-wrap: balance; overflow-wrap: anywhere; color: var(--wy-hero-text); text-shadow: var(--wy-hero-shadow); }
.wy-site__tagline { margin: var(--wy-space-4) 0 0; max-width: 48ch; font-family: var(--wy-font-display); font-size: var(--wy-text-xl); font-weight: var(--wy-weight-medium); line-height: var(--wy-leading-tight); color: var(--wy-hero-muted); }
.wy-site__status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wy-space-3); margin-top: var(--wy-space-6); font-size: var(--wy-text-sm); color: var(--wy-hero-muted); }
.wy-site__links { display: flex; flex-wrap: wrap; gap: var(--wy-space-2); margin-top: var(--wy-space-6); }
.wy-site__links .wy-btn:not(.wy-btn--primary) { border-color: var(--wy-hero-border); background: var(--wy-hero-glass); color: var(--wy-hero-text); }
.wy-site__links .wy-btn:not(.wy-btn--primary):hover { background: var(--wy-hero-glass-hover); color: var(--wy-hero-text); }
.wy-site__frame .wy-btn--primary { border-color: var(--wy-site-accent); background: var(--wy-site-accent); color: var(--wy-site-accent-ink); box-shadow: none; }
.wy-site__frame .wy-btn--primary:hover { border-color: var(--wy-site-accent); background: var(--wy-site-accent); color: var(--wy-site-accent-ink); filter: brightness(1.08); }
.wy-site__brandrow { display: flex; align-items: center; gap: var(--wy-space-6); min-width: 0; }
.wy-site__titles { min-width: 0; }
.wy-site__logo { flex: none; width: auto; height: auto; max-width: calc(var(--wy-space-16) * 2); max-height: calc(var(--wy-space-16) * 2); border-radius: var(--wy-radius-lg); }

/* what sits behind the title (data-header); "photo" is the game's photo above */
.wy-site__head[data-header="aurora"] { background-image: var(--wy-photo-hero); background-position: center; }
.wy-site__head[data-header="banner"] { background-image: var(--wy-site-shade), var(--wy-site-banner); background-position: center; }
.wy-site__head[data-header="accent"] { background-image: none; background-color: var(--wy-site-accent); color: var(--wy-site-accent-ink); }
.wy-site__head[data-header="plain"] { background-image: none; background-color: var(--wy-bg); color: var(--wy-text); border-bottom: 2px solid var(--wy-site-accent); }
.wy-site__head[data-header="accent"] .wy-site__title, .wy-site__head[data-header="accent"] .wy-site__tagline, .wy-site__head[data-header="accent"] .wy-site__status, .wy-site__head[data-header="accent"] .wy-site__eyebrow { color: var(--wy-site-accent-ink); text-shadow: none; }
.wy-site__head[data-header="plain"] .wy-site__title { color: var(--wy-text); text-shadow: none; }
.wy-site__head[data-header="plain"] .wy-site__tagline, .wy-site__head[data-header="plain"] .wy-site__status { color: var(--wy-text-muted); }
.wy-site__head[data-header="plain"] .wy-site__eyebrow { color: var(--wy-site-link); }
.wy-site__head[data-header="plain"] .wy-site__links .wy-btn:not(.wy-btn--primary), .wy-site__head[data-header="accent"] .wy-site__links .wy-btn:not(.wy-btn--primary) { border-color: currentColor; background: transparent; color: inherit; }
.wy-site__head[data-header="accent"] .wy-btn--primary { border-color: var(--wy-site-accent-ink); background: var(--wy-site-accent-ink); color: var(--wy-site-accent); }

/* layouts (data-layout); "banner" is the default above */
.wy-site__frame[data-layout="compact"] .wy-site__head { padding-block: var(--wy-space-8) var(--wy-space-6); }
.wy-site__frame[data-layout="compact"] .wy-site__title { font-size: var(--wy-text-4xl); }
.wy-site__frame[data-layout="compact"] .wy-site__logo { max-width: var(--wy-space-16); max-height: var(--wy-space-16); }
.wy-site__frame[data-layout="centered"] .wy-site__head .wy-site__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.wy-site__frame[data-layout="centered"] .wy-site__brandrow { flex-direction: column; gap: var(--wy-space-4); }
.wy-site__frame[data-layout="centered"] .wy-site__title, .wy-site__frame[data-layout="centered"] .wy-site__tagline { margin-inline: auto; }
.wy-site__frame[data-layout="centered"] .wy-site__status, .wy-site__frame[data-layout="centered"] .wy-site__links { justify-content: center; }
.wy-site__frame[data-layout="centered"] .wy-site__body { max-width: 48rem; }

/* body: one reading column and the live column */
.wy-site__body { display: grid; flex: 1; align-content: start; gap: var(--wy-space-12); padding-block: var(--wy-space-12); }
.wy-site__main, .wy-site__aside { display: grid; align-content: start; gap: var(--wy-space-8); min-width: 0; }
.wy-site__section { display: grid; gap: var(--wy-space-3); }
.wy-site__h2 { margin: 0; padding-top: var(--wy-space-3); border-top: 1px solid var(--wy-border-strong); font-family: var(--wy-font-mono); font-size: var(--wy-text-xs); font-weight: var(--wy-weight-semibold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--wy-text-muted); }
.wy-site__h3 { margin: 0; font-family: var(--wy-site-heading); font-size: var(--wy-text-xl); font-weight: var(--wy-weight-bold); line-height: var(--wy-leading-tight); overflow-wrap: anywhere; }
.wy-site__prose { margin: 0; max-width: 68ch; overflow-wrap: anywhere; }
.wy-site__prose p, .wy-site__prose ul { margin: 0 0 var(--wy-space-3); }
.wy-site__prose ul { padding-inline-start: var(--wy-space-6); }
.wy-site__prose a { color: var(--wy-site-link); text-underline-offset: 0.15em; }
.wy-site__post { display: grid; gap: var(--wy-space-1); padding-bottom: var(--wy-space-4); border-bottom: 1px solid var(--wy-border); }
.wy-site__post:last-child { padding-bottom: 0; border-bottom: 0; }
.wy-site__date { font-family: var(--wy-font-mono); font-size: var(--wy-text-xs); font-variant-numeric: tabular-nums; color: var(--wy-text-muted); }

/* the live column */
.wy-site__panel { display: grid; align-content: start; gap: var(--wy-space-3); min-width: 0; }
.wy-site__list { display: grid; gap: var(--wy-space-1); margin: 0; padding: 0; list-style: none; font-size: var(--wy-text-sm); }
.wy-site__list li { display: flex; justify-content: space-between; gap: var(--wy-space-2); min-width: 0; overflow-wrap: anywhere; }
.wy-site__note { margin: 0; font-size: var(--wy-text-sm); color: var(--wy-text-muted); }
.wy-site__days { width: 100%; margin-top: var(--wy-space-2); border-collapse: collapse; table-layout: fixed; text-align: center; font-size: var(--wy-text-xs); }
.wy-site__days caption { text-align: left; margin-bottom: var(--wy-space-1); font-size: var(--wy-text-xs); }
.wy-site__days th { font-weight: 500; color: var(--wy-text-muted); padding-bottom: var(--wy-space-1); }
.wy-site__days td { font-family: var(--wy-font-mono); font-variant-numeric: tabular-nums; }

/* colophon: who hosts it, and the way out for a visitor who wants their own */
.wy-site__foot { border-top: 1px solid var(--wy-border); font-size: var(--wy-text-sm); color: var(--wy-text-muted); }
.wy-site__footrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--wy-space-3); padding-block: var(--wy-space-6); }
.wy-site__footrow a { color: inherit; }
.wy-site__brand { display: inline-flex; align-items: center; gap: var(--wy-space-2); text-decoration: none; }
.wy-site__brand:hover span, .wy-site__brand:focus-visible span { color: var(--wy-text); text-decoration: underline; }

@media (min-width: 900px) {
  .wy-site__body { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); }
  .wy-site__frame[data-layout="centered"] .wy-site__body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wy-site__inner { padding-inline: var(--wy-space-4); }
  .wy-site__head { padding-block: var(--wy-space-8) var(--wy-space-6); }
  .wy-site__title { font-size: var(--wy-text-4xl); }
  .wy-site__body { gap: var(--wy-space-8); padding-block: var(--wy-space-8); }
  .wy-site__brandrow { gap: var(--wy-space-4); }
  .wy-site__logo { max-width: var(--wy-space-16); max-height: var(--wy-space-16); }
}

/* the Look card on the server page's Website tab */
.wy-site-look__images { display: grid; gap: var(--wy-space-6); }
.wy-site-look__image { display: grid; gap: var(--wy-space-3); align-content: start; }
.wy-site-look__preview { display: flex; align-items: center; justify-content: center; min-height: calc(var(--wy-space-16) * 1.5); padding: var(--wy-space-2); border: 1px dashed var(--wy-border-strong); border-radius: var(--wy-radius-md); background: var(--wy-surface-sunken); overflow: hidden; }
.wy-site-look__preview img { display: block; max-width: 100%; max-height: calc(var(--wy-space-16) * 2); width: auto; height: auto; border-radius: var(--wy-radius-sm); }
.wy-site-look__form { display: grid; gap: var(--wy-space-4); }
.wy-site-look__swatch { width: calc(var(--wy-space-16) * 1.25); padding: var(--wy-space-1); cursor: pointer; }
@media (min-width: 720px) {
  .wy-site-look__images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wy-site-look__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
