/* Coach of the Year — landing page.
   Every token here is lifted from assets/UI_elements/comic_theme.gd ("inkwell"):
   page #77acc3, paper #f0e7d5, raised #faf3e4, ink #1a1a1a, action #ffdf5e
   (hover #fff099, pressed #e5c233), panel border 5 / radius 0, card border 3,
   button border 3 / radius 2, hard 6 px ink shadow. Font: Comic Neue (OFL). */

@font-face {
  font-family: "Comic Neue";
  src: url("fonts/ComicNeue-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Comic Neue";
  src: url("fonts/ComicNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --page: #77acc3;
  --paper: #f0e7d5;
  --raised: #faf3e4;
  --sunken: #e0d3b8;
  --ink: #1a1a1a;
  --on-page: #12222b;
  --action: #ffdf5e;
  --action-hover: #fff099;
  --action-pressed: #e5c233;
  --shadow: 6px 6px 0 var(--ink);
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--page);
  color: var(--ink);
  font-family: "Comic Neue", "Comic Sans MS", "Chalkboard SE", sans-serif;
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
}

/* The paper panel: 5 px ink border, square corners, hard shadow. */
.panel {
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  padding: var(--space-xxl) var(--space-xl);
  background: var(--paper);
  border: 5px solid var(--ink);
  border-radius: 0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xxl);
}

.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.icon {
  width: clamp(96px, 22vw, 160px);
  height: auto;
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: var(--shadow);
  background: var(--page);
}

h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Screenshots: phone-shaped cards with the 3 px card border and the same shadow. */
.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
  width: 100%;
}

.shots img {
  width: 240px;
  max-width: 100%;
  min-width: 0;
  height: auto;
  display: block;
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: var(--shadow);
  background: var(--sunken);
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
  width: 100%;
}

/* ComicButton: action yellow, 3 px ink border, radius 2, hard shadow,
   a 1.05 hover scale and a 0.9 squash while pressed. */
.button {
  flex: 1 1 200px;
  max-width: 280px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  background: var(--action);
  color: var(--ink);
  font-size: 20px;
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 2px;
  box-shadow: var(--shadow);
  transition: transform 90ms ease-out, background-color 90ms ease-out;
}
.button:hover,
.button:focus-visible {
  background: var(--action-hover);
  transform: scale(1.05);
  outline: none;
}
.button:active {
  background: var(--action-pressed);
  transform: scale(0.9);
}

@media (max-width: 520px) {
  body { padding: var(--space-lg) var(--space-lg); }
  .panel { padding: var(--space-xl) var(--space-lg); gap: var(--space-xl); }
  .shots { gap: var(--space-lg); }
  .shots img { width: calc(50% - var(--space-sm)); max-width: 240px; }
  .links { gap: var(--space-lg); }
}
