/* Eggs! Revolt wiki. Copied to site/eggs-revolt/wiki.css by tools/eggs-wiki.py: edit this file, not the copy. */
@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: url(/fonts/figtree-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 600; font-display: swap; src: url(/fonts/figtree-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 800; font-display: swap; src: url(/fonts/figtree-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: Lilita; font-display: swap; src: url(/fonts/lilita-one-latin-400-normal.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --paper: #fff6e3;
  --card: #fffdf7;
  --ink: #3b1d10;
  --muted: #6e5444;
  --line: #ead9b9;
  --tomato: #d9482b;
  --tomato-dark: #a3301a;
  --yolk: #ffc93c;
  --yolk-dark: #b07d00;
  --gold: #e9a91a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
a { color: var(--tomato-dark); text-underline-offset: 3px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 3;
  padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 8px;
}
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: Lilita, "Arial Black", sans-serif; font-weight: 400; letter-spacing: 0.005em; }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; margin-top: 8px; }
.lead { margin-top: 12px; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--muted); max-width: 46em; }

/* Top bar: the studio link, the wiki's name and its tabs */
.bar { background: var(--ink); color: var(--paper); }
.bar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.studio { color: var(--paper); font-weight: 600; font-size: 15px; text-decoration: none; opacity: .8; }
.studio:hover { opacity: 1; text-decoration: underline; }
.wiki-name { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font-family: Lilita, sans-serif; font-size: 22px; }
.wiki-name img { width: 60px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; padding: 10px 16px; border-radius: 12px 12px 0 0;
  color: var(--paper); font-weight: 800; font-size: 16px; text-decoration: none;
}
.tabs a:hover { background: rgb(255 246 227 / .12); }
.tabs a[aria-current] { background: var(--paper); color: var(--ink); }

main { padding-block: 28px 64px; }
.crumbs { font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Cards */
.card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--card); border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: 0 5px 0 var(--ink);
  padding: 16px; color: var(--ink); text-decoration: none;
}
a.card { transition: transform .12s ease, box-shadow .12s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--ink); }
a.card:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.card-title { font-family: Lilita, sans-serif; font-size: 25px; line-height: 1.1; }
.card-text { font-size: 15px; color: var(--muted); }
.price {
  display: inline-block; align-self: flex-start; padding: 1px 10px; border-radius: 99px;
  background: var(--yolk); color: var(--ink); font-weight: 800; font-size: 15px;
}
.grid { display: grid; gap: 20px; margin-top: 28px; }

/* Home */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.logo img { width: min(420px, 100%); }
.tagline { margin-top: 4px; font-family: Lilita, sans-serif; font-size: 26px; color: var(--tomato); }
.shot { border: 4px solid var(--ink); border-radius: 14px; box-shadow: 0 6px 0 var(--ink); }
.sections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.section-card img { height: 120px; width: 100%; object-fit: contain; }

/* Long-form text */
.prose { max-width: 50em; margin-top: 44px; }
.prose h2 { font-size: clamp(28px, 3.6vw, 36px); margin-top: 36px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-top: 12px; }
.prose li + li { margin-top: 6px; }
.steps { padding-left: 1.3em; }
.steps li::marker { font-family: Lilita, sans-serif; color: var(--tomato); }

/* Chef list */
.chefs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chef-card img { height: 190px; width: 100%; object-fit: contain; }

/* Chef page */
.chef-head { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: center; margin-top: 12px; }
.portrait { width: 100%; filter: drop-shadow(0 6px 0 rgb(59 29 16 / .18)); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 20px; }
.stats div { background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.stats dt { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.stats dd { font-weight: 800; font-size: 17px; }
.stats.small { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; gap: 8px; }
.stats.small dd { font-size: 16px; }
.note { margin-top: 12px; font-size: 15px; color: var(--muted); }
.howto {
  margin-top: 32px; padding: 14px 18px; border-radius: 14px;
  background: #ffe9a8; border: 2px solid var(--yolk-dark); font-size: 16px;
}

.path { margin-top: 40px; }
.path h2 { font-size: clamp(30px, 4vw, 40px); }
.path-num {
  display: inline-block; vertical-align: middle; margin-right: 8px; padding: 2px 12px; border-radius: 99px;
  background: var(--tomato); color: #fff; font-family: Figtree, sans-serif; font-weight: 800; font-size: 14px;
  letter-spacing: .05em; text-transform: uppercase;
}
.tiers { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 12px; }
.tier {
  display: grid; grid-template-columns: 44px 80px minmax(0, 1fr) 120px; gap: 16px; align-items: center;
  background: var(--card); border: 3px solid var(--ink); border-radius: 18px; padding: 12px 16px;
}
.tier5 { border-color: var(--gold); box-shadow: 0 0 0 3px #ffe7a0 inset; background: #fffaea; }
.numeral {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--yolk); font-family: Lilita, sans-serif; font-size: 18px;
}
.tier5 .numeral { background: var(--gold); color: var(--ink); }
.tier .icon { width: 80px; height: 80px; object-fit: contain; }
.tier h3 { font-size: 24px; line-height: 1.1; }
.tier-copy p { margin-top: 4px; }
.costs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.xp { font-size: 14px; font-weight: 600; color: var(--muted); }
.tier .look { width: 120px; height: 120px; object-fit: contain; }
.path-total { margin-top: 10px; font-size: 15px; color: var(--muted); }

.exec-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 16px; }
.exec-row p + p, .exec-row ol { margin-top: 10px; }
.exec .exec-row { background: #fffaea; border: 3px solid var(--gold); border-radius: 18px; padding: 16px 20px; }
.inline-icon { display: inline-block; width: 26px; vertical-align: -6px; }
.look-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 18px; border-top: 3px solid var(--ink); }
.pager a { font-family: Lilita, sans-serif; font-size: 22px; color: var(--ink); text-decoration: none; }
.pager a:hover { color: var(--tomato); }

/* Eggs */
.eggs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.egg-card { flex-direction: row; gap: 16px; align-items: flex-start; }
.egg-card > img { width: 120px; flex: none; }
.egg-card h2 { font-size: 28px; line-height: 1.1; }
.egg-card p { margin-top: 4px; }
.traits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px !important; }
.traits span { padding: 1px 10px; border-radius: 99px; background: var(--tomato); color: #fff; font-weight: 800; font-size: 13px; }
.counter { margin-top: 10px !important; font-size: 15px; color: var(--muted); }
.counter strong { color: var(--ink); }

/* Maps */
.maps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.map-card { padding: 0; overflow: hidden; }
.map-card img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-bottom: 3px solid var(--ink); }
.map-copy { padding: 4px 18px 18px; display: grid; gap: 6px; }
.map-copy h2 { font-size: 30px; }
.tier-tag { justify-self: start; padding: 1px 12px; border-radius: 99px; font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.t-beginner { background: #3f8f36; }
.t-intermediate { background: #b07d00; }
.t-advanced { background: #c4561f; }
.t-expert { background: #b3263d; }

/* Tables */
.table-scroll { overflow-x: auto; margin-top: 14px; }
.table-scroll.narrow { max-width: 360px; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; font-size: 16px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 2px solid var(--line); vertical-align: top; }
thead th { background: var(--ink); color: var(--paper); font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
tbody th { font-weight: 800; }
tbody tr:last-child > * { border-bottom: 0; }

/* Footer */
.foot { background: var(--ink); color: rgb(255 246 227 / .85); font-size: 15px; }
.foot a { color: var(--yolk); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px; }

@media (max-width: 900px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
  .sections, .chefs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eggs, .maps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .studio { display: none; }
  .bar-row { justify-content: center; }
  .chef-head { grid-template-columns: minmax(0, 1fr); }
  .portrait { width: min(240px, 70%); margin-inline: auto; }
  /* Phones: icon, text and look side by side; the numeral sits on the card's corner */
  .tier { position: relative; grid-template-columns: 52px minmax(0, 1fr) 76px; gap: 10px; padding: 14px 10px 12px; }
  .numeral { position: absolute; left: -8px; top: -10px; width: 32px; height: 32px; font-size: 14px; box-shadow: 0 0 0 3px var(--paper); }
  .tier .icon { width: 52px; height: 52px; }
  .tier .look { width: 76px; height: 90px; }
  .tier h3 { font-size: 21px; }
  .exec-row { grid-template-columns: minmax(0, 1fr); }
  .exec-row > img { width: 160px; margin-inline: auto; }
  .egg-card > img { width: 84px; }
  .stats.small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .sections, .chefs { grid-template-columns: minmax(0, 1fr); }
  .chef-card img { height: 160px; }
  .egg-card { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  a.card { transition: none; }
}
