/* LOVE.EXE website website: base styles. Colours are the artist's phase I sheet
   (UI-UX/gui/color-info.pdf page 2) and the brand sheet (logo/brand-guidelines.pdf). */

@font-face {
  font-family: "DotGothic16";
  src: url("fonts/DotGothic16-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  /* phase I */
  --p1-deep: #005694;
  --p1-mid: #00699e;
  --p1-blue: #008cd3;
  --p1-sky: #4fa0c9;
  --p1-green: #40ff00;
  --p1-paper: #e6e6e6;
  --p1-ink: #23201f;
  /* brand */
  --brand-blue: #0000eb;
  --white: #ffffff;
  --black: #000000;

  --font: "DotGothic16", "MS Gothic", "Osaka-Mono", ui-monospace, monospace;
  --px: 4px; /* the artist's spacing step */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--p1-blue);
  -webkit-font-smoothing: none;
  font-smooth: never;
}

img.px, .px img { image-rendering: pixelated; image-rendering: crisp-edges; }

a { color: inherit; }

/* Visible focus everywhere: a 3 px ring in the brand's white and black, readable on every ground. */
:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--black);
}

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

.skip {
  position: absolute; left: 8px; top: -100px; z-index: 1000;
  background: var(--black); color: var(--white); padding: 8px 12px; text-decoration: none;
}
.skip:focus { top: 8px; }

/* The wishlist button: the brand label, white on #0000eb (9.55:1). */
.wishlist {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font); font-size: 20px; line-height: 1;
  color: var(--white); background: var(--brand-blue);
  padding: 14px 18px; text-decoration: none;
  border: 4px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
}
.wishlist:hover { background: var(--black); }
.wishlist:active { transform: translate(6px, 6px); box-shadow: none; }
.wishlist img { width: 32px; height: 32px; }

/* Window chrome after gui/margin-info.pdf: frame, title field, two square buttons and minimise,
   a hard offset shadow with no blur. Title text sits on #00699e (white 5.98:1). */
.win {
  background: var(--p1-blue);
  border: 4px solid var(--p1-mid);
  box-shadow: 8px 8px 0 var(--p1-deep);
  padding: 8px;
  max-width: 100%;
}
.win__bar {
  display: flex; align-items: center; gap: 4px; margin-bottom: 8px;
}
.win__title {
  flex: 1; min-width: 0;
  margin: 0; font-size: 16px; font-weight: normal; line-height: 1;
  background: var(--p1-mid); color: var(--white);
  border: 2px solid var(--p1-deep);
  padding: 7px 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.win__btn {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  background: var(--p1-blue); border: 2px solid var(--p1-deep);
  color: var(--white); font: inherit; padding: 0; cursor: pointer;
}
.win__btn img { width: 16px; height: 16px; }
.win__btn[disabled] { cursor: default; }
/* Reading pane: white on #005694 (7.61:1). */
.win__body {
  background: var(--p1-deep);
  border: 2px solid var(--p1-mid);
  padding: 16px;
}
.win__body > :first-child { margin-top: 0; }
.win__body > :last-child { margin-bottom: 0; }
.win__body h3 { font-size: 16px; font-weight: normal; color: var(--p1-green); margin: 24px 0 8px; letter-spacing: 0.05em; text-transform: uppercase; }
.win__body p { margin: 0 0 16px; }

/* Paper pane for text files: #23201f on #e6e6e6 (12.96:1). */
.paper { background: var(--p1-paper); color: var(--p1-ink); }

/* Screenshots: a plain grid, each one opens full size in a new view of the same file. */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.shots img { display: block; width: 100%; height: auto; border: 2px solid var(--p1-mid); }

.slot {
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 16 / 9; border: 2px dashed var(--p1-sky); color: var(--p1-paper); padding: 16px;
}

.filelist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.filelist a { display: grid; justify-items: center; gap: 4px; text-decoration: none; padding: 8px 4px; text-align: center; overflow-wrap: normal; word-break: normal; }
.filelist a:hover { background: var(--p1-mid); }
.filelist img { width: 48px; height: 48px; }

.credits { margin: 0; }
.credits div { display: flex; flex-wrap: wrap; gap: 0 12px; }
.credits dt::after { content: ":"; }
.credits dd { margin: 0; }

.note-draft {
  font-size: 12px; line-height: 1.4; color: var(--p1-ink); background: var(--p1-green);
  padding: 2px 6px; display: inline-block;
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
