/* Encarta '95 Online — landing page.
   Recreates the Encarta '95 / Win95 setup-screen look so the base domain ties
   visually to the VM loading screen at vm.encarta95.online. */

@font-face {
  font-family: "W95FA";
  src: url("/assets/fonts/W95FA.woff") format("woff");
  font-display: swap;
}

:root {
  /* Classic Win95 button bevel palette */
  --face: #c0c0c0;
  --light: #ffffff;
  --shadow: #808080;
  --dark: #000000;
  --teal: #008080;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "W95FA", "Segoe UI", Tahoma, sans-serif;
  color: #fff;
  /* The iconic dithered-blue Encarta setup backdrop, on a matching fallback. */
  background: #00006e url("/assets/encarta95-setup-bg.png") center / cover no-repeat
    fixed;
  image-rendering: pixelated;
  -webkit-font-smoothing: none;
}

.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vh, 56px);
  padding: 40px 20px 24px;
}

/* ---- Masthead ---- */
.masthead {
  text-align: center;
}

.wordmark {
  width: min(78vw, 540px);
  height: auto;
  image-rendering: auto; /* the wordmark is anti-aliased art, keep it smooth */
  filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.5));
}

.tagline {
  margin: 14px 0 0;
  /* Match the Encarta '95 box tagline: an elegant italic serif. */
  font-family: "Times New Roman", Times, Georgia, serif;
  font-style: italic;
  font-size: clamp(16px, 3vw, 26px);
  letter-spacing: 0.01em;
  opacity: 0.95;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
  -webkit-font-smoothing: antialiased;
}

/* ---- Version choices ---- */
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  width: 100%;
  max-width: 720px;
}

.card {
  position: relative;
  flex: 1 1 280px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 18px;
  text-decoration: none;
  color: var(--dark);
  background: var(--face);
  /* Classic raised Win95 bevel: light top/left, dark bottom/right. */
  border: 2px solid;
  border-color: var(--light) var(--dark) var(--dark) var(--light);
  box-shadow: inset 1px 1px 0 var(--face), inset -1px -1px 0 var(--shadow),
    3px 4px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.06s ease;
}

.card:hover {
  transform: translate(-1px, -1px);
}

/* Pressed-button feel: invert the bevel on click. */
.card:active {
  border-color: var(--dark) var(--light) var(--light) var(--dark);
  box-shadow: inset 1px 1px 0 var(--shadow), inset -1px -1px 0 var(--face);
  transform: translate(1px, 1px);
}

.card:focus-visible {
  outline: 2px dotted var(--dark);
  outline-offset: 3px;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  color: #000080;
}

.card-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #222;
}

.card-go {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  color: var(--teal);
  font-weight: 700;
}

/* Disabled "Coming soon" card: no link affordances, slightly muted. */
.card--soon {
  cursor: default;
  opacity: 0.85;
}

.card--soon:hover {
  transform: none;
}

.card--soon:active {
  border-color: var(--light) var(--dark) var(--dark) var(--light);
  box-shadow: inset 1px 1px 0 var(--face), inset -1px -1px 0 var(--shadow),
    3px 4px 0 rgba(0, 0, 0, 0.35);
  transform: none;
}

.card-go--soon {
  color: var(--shadow);
}

.card-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  font-size: 11px;
  padding: 2px 8px;
  background: #808000;
  color: #fff;
  border: 1px solid var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-badge--live {
  background: var(--teal);
}

/* ---- Footer attribution ---- */
.brought-by {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
}

.aw {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
}

.aw-logo {
  display: block;
  height: 30px;
  width: auto;
  image-rendering: auto;
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.5));
  transition: transform 0.06s ease;
}

.aw:hover .aw-logo {
  transform: scale(1.04);
}

@media (max-width: 480px) {
  .card {
    flex-basis: 100%;
    max-width: 100%;
  }
}
