/* Westside '95: Windows 95 colours and bevels on a normal website. */

:root {
  --teal: #008080;
  --face: #c0c0c0;
  --light: #dfdfdf;
  --white: #ffffff;
  --shadow: #808080;
  --black: #000000;
  --navy: #000080;
  --visited: #800080;
  --note: #ffffe1;

  --ui-font: Tahoma, "MS Sans Serif", "Microsoft Sans Serif", Geneva, Verdana, sans-serif;
  --display-font: "Arial Black", "Arial Bold", Gadget, Arial, sans-serif;

  /* The bevels everything is built from. */
  --raised: inset -1px -1px var(--black), inset 1px 1px var(--light), inset -2px -2px var(--shadow), inset 2px 2px var(--white);
  --button: inset -1px -1px var(--black), inset 1px 1px var(--white), inset -2px -2px var(--shadow), inset 2px 2px var(--light);
  --pressed: inset -1px -1px var(--white), inset 1px 1px var(--black), inset -2px -2px var(--light), inset 2px 2px var(--shadow);
  --sunken: inset -1px -1px var(--white), inset 1px 1px var(--shadow), inset -2px -2px var(--light), inset 2px 2px var(--black);
  --etched: inset -1px -1px var(--white), inset 1px 1px var(--shadow);

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--teal);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--teal);
  color: var(--black);
  font: 16px/1.55 var(--ui-font);
}

img {
  image-rendering: pixelated;
}

a {
  color: var(--navy);
}

a:visited {
  color: var(--visited);
}

:focus-visible {
  outline: 1px dotted var(--black);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 8px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--face);
  box-shadow: inset 0 1px var(--white), inset 0 -1px var(--black), inset 0 -2px var(--shadow);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-top: 10px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
  font: 20px/1 var(--display-font);
  font-weight: 900;
  text-decoration: none;
}

.brand:visited {
  color: var(--black);
}

.brand img {
  width: 32px;
  height: 32px;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav .button {
  min-width: 0;
  padding: 6px 14px;
}

.site-nav .button[aria-current="page"] {
  background: var(--white) repeating-conic-gradient(var(--face) 0 25%, var(--white) 0 50%) 0 0 / 2px 2px;
  box-shadow: var(--pressed);
  font-weight: bold;
}

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .site-nav {
    width: 100%;
    margin-left: 0;
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .site-nav .button {
    width: 100%;
    padding: 6px 8px;
  }
}

/* ---------- Layout ---------- */

main {
  flex: 1;
  padding: 28px 0 48px;
}

main > .container {
  display: grid;
  gap: 28px;
}

.grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 760px) {
  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Panels ---------- */

.panel {
  padding: 3px;
  background: var(--face);
  box-shadow: var(--raised);
}

.panel-title {
  margin: 0;
  padding: 5px 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 16px;
  font-weight: bold;
  line-height: 1.35;
}

h1.panel-title {
  padding: 7px 12px;
  font-size: 20px;
}

.panel-body {
  padding: 18px;
}

.panel-body > :first-child,
.sheet > :first-child {
  margin-top: 0;
}

.panel-body > :last-child,
.sheet > :last-child {
  margin-bottom: 0;
}

.panel-body p {
  margin: 0 0 12px;
}

.panel-body > .grid + p {
  margin-top: 18px;
}

.sheet {
  padding: 24px 28px 28px;
  background: var(--white);
  box-shadow: var(--sunken);
}

.sheet h2 {
  margin: 30px 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.sheet p,
.sheet ul,
.sheet ol {
  max-width: 68ch;
  margin: 0 0 14px;
}

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

.lead {
  font-size: 18px;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 22px;
  padding: 10px 12px;
  background: var(--note);
  border: 1px solid var(--black);
  font-size: 15px;
}

.note img {
  flex: none;
  width: 32px;
  height: 32px;
}

.note p {
  margin: 0;
}

@media (max-width: 560px) {
  .panel-body {
    padding: 12px;
  }

  .sheet {
    padding: 18px 16px 20px;
  }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 110px;
  min-height: 36px;
  padding: 7px 18px;
  border: 0;
  background: var(--face);
  box-shadow: var(--button);
  color: var(--black);
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:visited {
  color: var(--black);
}

.button:active {
  box-shadow: var(--pressed);
  transform: translate(1px, 1px);
}

.button:focus-visible {
  outline: 1px dotted var(--black);
  outline-offset: -5px;
}

.button.default {
  box-shadow: 0 0 0 1px var(--black), var(--button);
  font-weight: bold;
}

.button.default:active {
  box-shadow: 0 0 0 1px var(--black), var(--pressed);
}

.button img {
  width: 16px;
  height: 16px;
}

.button.large {
  min-height: 44px;
  padding: 10px 24px;
  font-size: 17px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* ---------- Home ---------- */

.hero .panel-body {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 32px;
}

@media (min-width: 760px) {
  .hero .panel-body {
    grid-template-columns: 176px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .hero .panel-body {
    padding: 20px 16px;
  }
}

.hero-art {
  display: grid;
  place-items: center;
  width: 176px;
  height: 176px;
  margin: 0 auto;
  background: var(--teal);
  box-shadow: var(--sunken);
}

.hero-art img {
  width: 128px;
  height: 128px;
}

.hero h1 {
  margin: 0 0 6px;
  font: 56px/1.02 var(--display-font);
  font-weight: 900;
}

.hero h1 .year {
  color: var(--white);
  text-shadow: 2px 2px 0 var(--black);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 40px;
  }
}

.tagline {
  margin: 0 0 14px;
  color: var(--navy);
  font-weight: bold;
}

.hero .lead {
  max-width: 54ch;
  margin: 0;
}

.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 0 3px 3px;
  font-size: 14px;
}

.status-bar > span {
  flex: 1 1 auto;
  padding: 3px 10px;
  box-shadow: var(--etched);
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.steps li {
  padding: 16px 18px 18px;
  background: var(--white);
  box-shadow: var(--sunken);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  background: var(--navy);
  color: var(--white);
  font-weight: bold;
}

.steps h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.steps p {
  margin: 0;
}

/* ---------- Rules ---------- */

.rules {
  padding-left: 0;
  list-style: none;
  counter-reset: rule;
}

.rules li {
  position: relative;
  padding-left: 42px;
  counter-increment: rule;
}

.rules li + li {
  margin-top: 16px;
}

.rules li::before {
  content: counter(rule) ".";
  position: absolute;
  left: 0;
  width: 30px;
  font-weight: bold;
  text-align: right;
}

.rules strong {
  display: block;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--face);
  box-shadow: inset 0 1px var(--white), inset 0 2px var(--light);
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-footer p {
  max-width: 62ch;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
