/* Idle FBO's site: the game's own navy, orange and concrete, and its fonts,
   served from here rather than a font service. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("fonts/Rubik-Variable.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #182230;
  --surface: #223041;
  --raised: #2b3b4e;
  --text: #f4f1e8;
  --muted: #a9b4c2;
  --accent: #e8853a;
  --gold: #f0c25c;
  --concrete: #c4c0b4;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
}

a {
  color: var(--gold);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--text);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.bar {
  border-bottom: 1px solid var(--raised);
}

.bar-in,
main,
.foot-in {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: 20px;
}

.bar-in {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 700 26px/1 var(--display);
  letter-spacing: 0.01em;
  margin-right: auto;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

nav {
  display: flex;
  gap: 18px;
  font-weight: 500;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
}

nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

main {
  padding-block: 36px 56px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 8vw, 56px);
  margin: 0 0 8px;
}

h2 {
  font-size: 30px;
  margin: 40px 0 10px;
}

h3 {
  font-size: 23px;
  margin: 26px 0 6px;
}

p,
ul {
  margin: 0 0 14px;
}

ul {
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

strong {
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font: 700 16px/1.2 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.updated,
.muted {
  color: var(--muted);
}

.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 60ch;
}

.card {
  background: var(--surface);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 18px 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.contact {
  border-left: 3px solid var(--accent);
}

.address {
  font-weight: 600;
  user-select: all;
  overflow-wrap: anywhere;
}

.hero {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.hero img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero > div {
  flex: 1 1 280px;
}

.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
  margin-top: 28px;
}

.links a {
  display: block;
  background: var(--surface);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--text);
  text-decoration: none;
}

.links a:hover {
  background: var(--raised);
}

.links strong {
  display: block;
  font: 700 24px/1.1 var(--display);
  margin-bottom: 4px;
}

.links span {
  color: var(--muted);
  font-size: 15px;
}

details {
  background: var(--surface);
  border-radius: 12px;
  padding: 0 18px;
  margin: 10px 0;
}

summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  list-style-position: outside;
}

details[open] summary {
  border-bottom: 1px solid var(--raised);
  margin-bottom: 12px;
}

details > :last-child {
  margin-bottom: 16px;
}

.foot {
  border-top: 1px solid var(--raised);
  color: var(--muted);
  font-size: 15px;
}

.foot-in {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  padding-block: 20px 28px;
}

.foot a {
  color: var(--muted);
}
