/* Structural wireframe only. Visual design will be added later. */
:root {
  --site-background: #e9e2c7;
  --windows-blue: #000080;
  --visited-link: #800080;
  --windows-font: "MS Sans Serif", Tahoma, Geneva, sans-serif;
  color: #000;
  font-family: var(--windows-font);
  font-size: 13px;
}

* {
  box-sizing: border-box;
}

html,
body {
  background-color: var(--site-background);
}

html.app-loading body {
  visibility: hidden;
  animation: reveal-static-fallback 0s 3s forwards;
}

@keyframes reveal-static-fallback {
  to {
    visibility: visible;
  }
}

body {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--windows-blue);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1px dotted currentColor;
  outline-offset: 2px;
}

#site-header,
#site-footer {
  padding: 1rem;
  border: 2px solid;
}

#site-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

#site-header > [data-block="media"] {
  position: absolute;
  inset-block: 0;
  left: 50%;
  height: auto;
  padding: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
  transform: translateX(-50%);
}

#site-header > [data-block="media"] > a {
  display: block;
  height: 100%;
}

#site-header > [data-block="media"] img {
  max-width: none;
  width: auto;
  height: 100%;
  object-fit: cover;
}

#site-header > nav > ul {
  margin-block: 0;
}

#page-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 1.2fr) minmax(0, 3fr) minmax(12rem, 1fr);
  margin-block: 1rem;
}

#page-layout > [data-region] {
  min-width: 0;
  padding: 1rem;
  border: 2px solid;
}

#page-layout > [data-region] + [data-region] {
  border-left: 0;
}

#right-column {
  padding: 0.75rem;
  background:
    repeating-linear-gradient(135deg, #ffff00 0 8px, #000 8px 16px);
  box-shadow: inset 0 0 0 2px #000;
}

[data-block] {
  padding: 1rem;
  margin-block: 1rem;
  border: 1px dashed;
}

[data-block] img,
[data-block] video {
  display: block;
  max-width: 100%;
  height: auto;
}

[data-block="section-menu"] {
  padding: 0.5rem;
  margin-block: 0;
}

[data-block="section-menu"] ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

[data-block="section-menu"] li + li {
  margin-top: 0.75rem;
}

[data-block="section-menu"] a {
  display: flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 4px;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

[data-block="section-menu"] a:hover,
[data-block="section-menu"] a[aria-current="page"] {
  color: #fff;
  background: var(--windows-blue);
}

[data-block="section-menu"] a:focus-visible {
  outline: 1px dotted currentColor;
  outline-offset: -2px;
}

.menu-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  filter: drop-shadow(1px 1px 0 #808080);
}

.menu-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

[data-block="local-page"] {
  margin-block: 0;
}

[data-block="local-page"] > h1 {
  margin-block: 0;
}

[data-block="advertisements"] {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  border: 0;
}

.retro-ad {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 132px;
  padding: 0.5rem;
  overflow: hidden;
  line-height: 1.05;
  text-align: center;
  border: 2px outset #fff;
  box-shadow: 2px 2px 0 #000;
}

.retro-ad__badge,
.retro-ad__title,
.retro-ad__copy,
.retro-ad__detail,
.retro-ad__cta {
  display: block;
}

.retro-ad__badge {
  justify-self: stretch;
  font-size: 8px;
  letter-spacing: 1px;
  text-align: right;
}

.retro-ad__graphic {
  width: 36px;
  height: 36px;
  margin-block: 2px;
  filter: drop-shadow(1px 1px 0 #000);
}

.retro-ad__graphic svg {
  display: block;
  width: 100%;
  height: 100%;
}

.retro-ad__title {
  max-width: 100%;
  font-size: 15px;
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
}

.retro-ad__copy {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
}

.retro-ad__detail {
  margin-top: 3px;
  font-size: 9px;
}

.retro-ad__cta {
  padding: 2px 5px;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #000;
  background: #c0c0c0;
  border: 2px outset #fff;
  animation: retro-ad-blink 900ms steps(1, end) infinite;
}

.retro-ad--legal {
  color: #fff;
  background:
    repeating-linear-gradient(0deg, transparent 0 5px, rgb(255 255 255 / 10%) 5px 6px),
    #000080;
}

.retro-ad--legal .retro-ad__title {
  color: #ffcc00;
  text-shadow: 1px 1px 0 #000;
}

.retro-ad--poodle {
  color: #66004d;
  background:
    radial-gradient(circle at 12px 12px, #fff 0 2px, transparent 2px),
    #ff66b3;
  background-size: 24px 24px;
}

.retro-ad--poodle .retro-ad__title {
  color: #fff;
  text-shadow: 1px 1px 0 #990066;
}

.retro-ad--website {
  padding-block-start: 0.9rem;
  color: #ffff00;
  background:
    repeating-linear-gradient(135deg, #ffff00 0 6px, #000 6px 12px) top / 100% 8px no-repeat,
    #000;
  border-color: #ffff00;
}

.retro-ad--website .retro-ad__title {
  color: #ff8000;
  text-shadow: 1px 1px 0 #fff;
}

.retro-ad--matchmaking {
  color: #800040;
  background:
    radial-gradient(circle at 10px 10px, #ff99cc 0 3px, transparent 3px),
    #fff0f6;
  background-size: 22px 22px;
}

.retro-ad--matchmaking .retro-ad__title {
  color: #ff0040;
  text-shadow: 1px 1px 0 #ffb3cc;
}

@keyframes retro-ad-blink {
  0%,
  49% {
    color: #000;
    background: #ffff00;
  }

  50%,
  100% {
    color: #fff;
    background: #000080;
  }
}

@media (prefers-reduced-motion: reduce) {
  .retro-ad__cta {
    animation: none;
  }
}

#site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

#site-footer > nav > ul {
  margin-block: 0;
}

@media (max-width: 760px) {
  #site-header,
  #site-footer {
    display: block;
  }

  #site-header > [data-block="media"] {
    position: static;
    height: 12rem;
    margin-block: 1rem;
    transform: none;
  }

  #page-layout {
    grid-template-columns: 1fr;
  }

  #page-layout > [data-region] + [data-region] {
    border-top: 0;
    border-left: 2px solid;
  }

  [data-block="advertisements"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
