/* SLOPPY'S TRUCK STOP. One stylesheet, system fonts, mobile first. */
:root {
  --navy: #0D2951;
  --red: #AD141C;
  --orange: #F67002;
  --yellow: #F9C312;
  --white: #F2F0EA;
  --asphalt: #16181C;
  --paper: #FFFDF6;
  --rule: #B9B4A6;
  --link: #0D2951;
  --sign: Impact, Haettenschweiler, "Arial Narrow Bold", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: Verdana, Geneva, Tahoma, "DejaVu Sans", sans-serif;
  --serif: Georgia, "Times New Roman", Times, serif;
  --led: "Courier New", Courier, ui-monospace, monospace;
}

* { box-sizing: border-box; }

html {
  background-color: var(--navy);
  /* Faint diamond-plate tile, the way a 1997 page would do it. */
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.12) 0 2px, transparent 2px 14px);
}

body {
  margin: 0;
  padding: 0;
  font: 16px/1.55 var(--body);
  color: var(--asphalt);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); }
a:visited { color: #5A2A6E; }
a:hover, a:focus { color: var(--red); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--yellow); color: var(--asphalt); padding: .5rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

.page {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border-left: 3px ridge #6E7A90;
  border-right: 3px ridge #6E7A90;
  min-height: 100vh;
}

/* ---------- Masthead ---------- */
.masthead { position: relative; overflow: hidden; background: #fff; text-align: center; }
.wordmark { display: block; padding: 10px 24px 0; }
.wordmark img { margin: 0 auto; width: min(100%, 420px); }
.masthead-line {
  margin: 0; padding: 0 0 8px;
  font: italic 700 13px/1.2 var(--body);
  letter-spacing: .08em; text-transform: uppercase; color: var(--navy);
}

.stripe { display: block; }
.stripe i { display: block; height: 6px; }
.stripe i:nth-child(1) { background: var(--red); }
.stripe i:nth-child(2) { background: var(--orange); }
.stripe i:nth-child(3) { background: var(--yellow); }
.stripe-thin i { height: 3px; }

/* Faded caution ribbon across the top-right corner. */
.construction {
  position: absolute; top: 0; right: 0; width: 150px; height: 150px;
  overflow: hidden; pointer-events: none; opacity: .5;
}
.construction span {
  position: absolute; top: 28px; right: -52px; width: 210px;
  transform: rotate(45deg);
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, #222 10px 20px);
  color: transparent; height: 26px; line-height: 26px; font-size: 1px;
  box-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.construction span::after {
  content: "UNDER CONSTRUCTION";
  position: absolute; inset: 4px 18px;
  background: var(--yellow); color: #222;
  font: 700 9px/18px var(--body); letter-spacing: .06em; text-align: center;
}

/* ---------- Beveled buttons ---------- */
.nav {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
  padding: 8px; background: var(--navy);
}
.btn {
  display: inline-block;
  padding: 10px 12px;
  font: 700 14px/1.2 var(--body);
  text-transform: uppercase; letter-spacing: .04em; text-align: center; text-decoration: none;
  color: var(--white);
  background: linear-gradient(#24477A, #0D2951);
  border: 3px outset #5B78A6;
}
.btn:visited { color: var(--white); }
.btn:hover, .btn:focus { color: var(--yellow); }
.btn:active { border-style: inset; }
.btn[aria-current="page"] {
  background: linear-gradient(#C2232C, var(--red)); border-color: #D9636A; color: #fff;
}

/* ---------- Main ---------- */
main { display: block; padding: 16px 14px 24px; }

h1, h2, .sign {
  font-family: var(--sign); font-style: italic; font-weight: 400;
  text-transform: uppercase; letter-spacing: .02em; color: var(--navy);
  line-height: 1.05;
}
h1 { font-size: 2.1rem; margin: .2em 0 .3em; }
h2 { font-size: 1.55rem; margin: 1.4em 0 .4em; }
h2 .red, h1 .red { color: var(--red); }
h3 { font: 700 1.05rem/1.3 var(--body); margin: 1.2em 0 .3em; color: var(--navy); }
p { margin: 0 0 .9em; }
.small { font-size: .8rem; }
.center { text-align: center; }

hr.rule { border: 0; border-top: 2px groove var(--rule); margin: 1.4rem 0; }

/* Box with a title bar, like a table cell from 1998. */
.box {
  border: 2px solid var(--navy); background: var(--paper); margin: 1.2rem 0;
  box-shadow: 4px 4px 0 rgba(13,41,81,.18);
}
.box-title {
  margin: 0; padding: 6px 10px;
  background: var(--navy); color: var(--white);
  font: italic 400 1.25rem/1.1 var(--sign); text-transform: uppercase; letter-spacing: .04em;
}
.box-title.red { background: var(--red); }
.box-body { padding: 12px; }
.box-body > :last-child { margin-bottom: 0; }
.box-body::after { content: ""; display: block; clear: both; }

/* ---------- Home ---------- */
.hero { text-align: center; }
.hero .shield { width: 200px; margin: 4px auto 6px; }
.hero h1 { font-size: 2.3rem; margin-bottom: .1em; }
.hero .tag { font: italic 700 1.1rem/1.3 var(--serif); color: var(--red); margin-bottom: .2em; }
.hero .hours {
  display: inline-block; margin: .4em 0 0; padding: 6px 14px;
  background: var(--asphalt); color: var(--yellow);
  font: 700 1rem/1.2 var(--led); letter-spacing: .06em; border: 3px inset #444;
}

.services { list-style: none; margin: 0; padding: 0; }
.services li {
  display: flex; gap: 10px; align-items: baseline;
  padding: 8px 2px; border-bottom: 1px dotted var(--rule);
}
.services li:last-child { border-bottom: 0; }
.services b { color: var(--navy); min-width: 8.5em; }
.closed {
  display: inline-block; padding: 0 6px; margin-left: 4px;
  background: var(--red); color: #fff; font: 700 .75rem/1.6 var(--body); letter-spacing: .06em;
}

.specials { border-color: var(--red); }
.specials .box-title { background: var(--red); text-align: center; font-size: 1.6rem; }
.specials-grid { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 12px; }
.special {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; background: #fff; border: 2px solid var(--navy);
}
.special-name { font: italic 400 1.35rem/1 var(--sign); text-transform: uppercase; color: var(--navy); }
.special-name small { display: block; font: 400 .72rem/1.3 var(--body); font-style: normal; text-transform: none; color: #555; margin-top: 3px; }
.price {
  flex: none; min-width: 5.2em; text-align: center;
  background: var(--asphalt); color: var(--yellow);
  font: 700 1.5rem/1 var(--led); padding: 8px 10px; border: 3px inset #3a3a3a;
  text-shadow: 0 0 6px rgba(249,195,18,.55);
}
.specials-fine { margin: 0; padding: 0 12px 12px; font-size: .75rem; color: #555; text-align: center; }

.regular { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; }
.regular img { border: 3px ridge #8A7E62; width: 96px; }
.regular .ribbon {
  display: inline-block; background: var(--yellow); color: var(--asphalt);
  font: 700 .72rem/1.5 var(--body); letter-spacing: .05em; padding: 0 6px; text-transform: uppercase;
}

.notice {
  margin: 1.4rem 0; padding: 14px; text-align: center;
  background: #FFF6CC; border: 3px double var(--red);
}
.notice strong { display: block; font: italic 400 1.4rem/1.1 var(--sign); color: var(--red); text-transform: uppercase; margin-bottom: 4px; }
.notice p { margin: 0; font-weight: 700; }

.photo { margin: 1rem 0; }
.photo img { border: 3px ridge #8A7E62; width: 100%; }
.services-photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 20%; }
.photo figcaption { font-size: .78rem; color: #555; padding-top: 4px; text-align: center; font-style: italic; }

/* ---------- Links (link in bio) ---------- */
.page-links main { padding-top: 20px; }
.bio { text-align: center; margin-bottom: 16px; }
.bio img { width: 112px; height: 112px; margin: 0 auto 10px; border-radius: 50%; border: 3px solid var(--navy); }
.bio h1 { font-size: 1.9rem; margin: 0; }
.bio p { margin: .2em 0 0; font-size: .92rem; }
.link-list { list-style: none; margin: 0 auto; padding: 0; max-width: 520px; display: grid; gap: 12px; }
.links-foot { margin-top: 18px; }
.btn-big {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  width: 100%; min-height: 64px; padding: 12px 16px; position: relative;
  font-size: 1.05rem;
}
.btn-note { display: block; font: 400 .74rem/1.3 var(--body); text-transform: none; letter-spacing: 0; color: #C9D4E6; margin-top: 3px; }
.btn-big.is-disabled {
  background: linear-gradient(#B9B6AE, #9C998F); border-color: #D2CFC7; color: #4A4840; cursor: not-allowed;
}
.btn-big.is-disabled .btn-note { color: #4A4840; }
.stamp {
  display: inline-block; margin-top: 6px; transform: rotate(-3deg);
  border: 2px solid var(--red); color: var(--red); background: rgba(255,255,255,.55);
  font: 700 .66rem/1.4 var(--body); padding: 0 5px; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- Episodes ---------- */
.episodes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.episode {
  display: grid; grid-template-columns: 112px 1fr; gap: 12px;
  border: 2px solid var(--navy); background: var(--paper); padding: 10px;
}
.episode img { border: 2px solid var(--asphalt); width: 112px; }
.episode h2 { margin: 0 0 .2em; font-size: 1.4rem; }
.episode .num { font: 700 .72rem/1.4 var(--body); color: var(--red); letter-spacing: .08em; text-transform: uppercase; }
.episode p { font-size: .92rem; }
.episode .btn { font-size: .78rem; padding: 6px 10px; }

/* ---------- Wiki (community wiki look) ---------- */
.is-wiki main { padding: 12px 10px 24px; }
.wiki { background: #fff; border: 1px solid #A7B1C2; font-family: var(--body); }
.wiki-banner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px;
  padding: 8px 12px; background: #E8ECF3; border-bottom: 1px solid #A7B1C2;
}
.wiki-banner a { font: 700 1.15rem/1.2 var(--serif); color: var(--navy); text-decoration: none; }
.wiki-banner span { font-size: .72rem; color: #555; }
.wiki-tabs { display: flex; gap: 2px; padding: 6px 10px 0; border-bottom: 1px solid #A7B1C2; font-size: .75rem; }
.wiki-tabs span { padding: 3px 10px; border: 1px solid #A7B1C2; border-bottom: 0; background: #F3F5F9; color: #567; }
.wiki-tabs .is-on { background: #fff; color: var(--asphalt); position: relative; top: 1px; }
.wiki-grid { display: grid; grid-template-columns: 1fr; }
.wiki-article { padding: 12px 14px 20px; min-width: 0; }
.wiki-article h1 {
  font: 400 1.9rem/1.2 var(--serif); text-transform: none; letter-spacing: 0; color: #000;
  border-bottom: 1px solid #A7B1C2; padding-bottom: 4px; margin-top: 0;
}
.wiki-article h2 {
  font: 400 1.4rem/1.25 var(--serif); text-transform: none; letter-spacing: 0; color: #000;
  border-bottom: 1px solid #A7B1C2; padding-bottom: 2px;
}
.wiki-article p, .wiki-article li { font-size: .93rem; }
.wiki-from { font-size: .78rem !important; color: #555; font-style: italic; margin-top: -6px; }
.cn { font-size: .7rem; vertical-align: super; line-height: 0; color: #3366CC; white-space: nowrap; }
.wiki-hatnote { font-style: italic; font-size: .85rem; padding-left: 1.4em; color: #333; }
.stub {
  margin-top: 1.4rem; padding: 8px 10px; border: 1px solid #A7B1C2; background: #F8F9FB;
  font-size: .8rem; font-style: italic;
}
.cats { margin-top: 1rem; padding: 6px 10px; border: 1px solid #A7B1C2; background: #F8F9FB; font-size: .78rem; }

.infobox {
  border: 1px solid #A7B1C2; background: #F8F9FA; margin: 0 0 1rem; font-size: .84rem;
  width: 100%; border-collapse: collapse;
}
.infobox caption { font: 700 1.05rem/1.3 var(--serif); padding: 6px; background: #D7DEEA; border: 1px solid #A7B1C2; border-bottom: 0; }
.infobox td, .infobox th { padding: 4px 8px; vertical-align: top; text-align: left; border-top: 1px solid #E1E5EC; }
.infobox th { width: 38%; }
.infobox .ib-img { padding: 8px; text-align: center; }
.infobox .ib-img img { margin: 0 auto; width: 170px; border: 1px solid #ccc; }
.infobox .ib-cap { font-size: .75rem; color: #444; text-align: center; padding-top: 4px; }

.wiki-side { padding: 10px 14px 16px; background: #F3F5F9; border-top: 1px solid #A7B1C2; font-size: .85rem; }
.wiki-side-title { font-weight: 700; margin: 0 0 4px; color: #333; }
.wiki-side ul { margin: 0; padding-left: 1.1em; columns: 2; column-gap: 1.2em; }
.wiki-side li { margin-bottom: 3px; break-inside: avoid; }
.wiki-side a[aria-current="page"] { color: var(--asphalt); font-weight: 700; text-decoration: none; }

.wiki-welcome { border: 1px solid #A7B1C2; background: #F5F8FC; padding: 10px 12px; margin-bottom: 1rem; }
.wiki-welcome p { margin: 0 0 .4em; }
.portal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.portal a { display: block; text-decoration: none; border: 1px solid #A7B1C2; background: #fff; padding: 6px; height: 100%; }
.portal img { width: 100%; aspect-ratio: 9 / 12; object-fit: cover; object-position: top; border: 1px solid #ddd; }
.portal span { display: block; font: 700 .85rem/1.3 var(--serif); padding-top: 4px; color: var(--link); }
.portal small { display: block; font-size: .72rem; color: #555; }

.timeline { margin: 0; padding: 0; list-style: none; border-left: 3px solid var(--navy); }
.timeline li { position: relative; padding: 0 0 12px 16px; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 5px; width: 11px; height: 11px;
  background: var(--orange); border: 1px solid var(--red);
}
.timeline b { display: inline-block; min-width: 5.6em; font-family: var(--serif); }

.watch { list-style: decimal; padding-left: 1.6em; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 0 12px 20px; font-size: .82rem; background: var(--paper); border-top: 1px solid var(--rule); }
.footer .stripe { margin: 0 -12px 14px; }
.footer p { margin: 0 0 .5em; }
.counter { font-size: .78rem; }
.led {
  display: inline-block; padding: 2px 6px; margin-left: 4px;
  background: #000; color: #FF3B30; font: 700 1rem/1.2 var(--led); letter-spacing: .14em;
  border: 2px inset #555;
}

/* ---------- Wider screens ---------- */
@media (min-width: 560px) {
  .nav { grid-template-columns: repeat(4, 1fr); }
  main { padding: 20px 26px 32px; }
  .specials-grid { grid-template-columns: repeat(3, 1fr); }
  .special { flex-direction: column; text-align: center; }
  .regular { grid-template-columns: 140px 1fr; }
  .regular img { width: 140px; }
  .episode { grid-template-columns: 170px 1fr; padding: 12px; }
  .episode img { width: 170px; }
  .infobox { float: right; width: 260px; margin: 0 0 1rem 1rem; }
  .portal { grid-template-columns: repeat(3, 1fr); }
  .services-photo { float: right; width: 190px; margin: 0 0 .6rem 1rem; }
  .services-photo img { aspect-ratio: 3 / 4; }
  .infobox .ib-img img { width: 220px; }
}
@media (min-width: 760px) {
  .wiki-grid { grid-template-columns: 1fr 170px; }
  .wiki-side { border-top: 0; border-left: 1px solid #A7B1C2; }
  .wiki-side ul { columns: 1; }
  .portal { grid-template-columns: repeat(4, 1fr); }
}
