/* Self-hosted rather than pulled from a font CDN: hotlinking a Google-hosted
   font sends every visitor's IP to Google, which Dutch and German courts
   have held to need consent. Same file split and unicode-range as the main
   app, so only the glyphs a visitor's language needs are downloaded. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* Palette taken from the logo: canister black, paper white, sprocket green.
   A deliberate, fixed look rather than a theme that follows the OS
   light/dark preference. */
:root {
  --ink: #131313;
  --ink-muted: #5a5a57;
  --paper: #ffffff;
  --ground: #f1f0ec;
  --line: #dcdbd5;
  --green: #8dbb7e;
  --green-tint: #eef5ea;
  --green-deep: #35662e;
}

* {
  box-sizing: border-box;
  margin: 0;
  font-weight: normal;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--ground);
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.brand {
  display: flex;
  background: var(--ink);
  padding: 12px 16px;
}

.logo {
  height: 40px;
  width: auto;
}

/* The logo's filmstrip, reused here as a divider: square sprocket holes
   punched out of a green rail. The tile is 18px along the run by 8px
   across, and the paper stop covers its first 8px, so every hole is a true
   8x8 square. */
.film-rail {
  height: 16px;
  background-color: var(--green);
  background-image: linear-gradient(to right, var(--paper) 0 8px, transparent 8px 18px);
  background-size: 18px 8px;
  background-repeat: repeat-x;
  background-position: center;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

/* The hero message as a printed photo resting on the page: a grain-textured
   card held down by photo-corner mounts, the way a print would be kept in
   an album. */
.print {
  position: relative;
  width: 100%;
  max-width: 30rem;
  background-color: var(--paper);
  background-image: url('../grain.png');
  background-repeat: repeat;
  background-size: 160px 160px;
  background-blend-mode: multiply;
  padding: clamp(2.5rem, 6vw, 4.25rem) clamp(1.75rem, 6vw, 4rem);
  text-align: center;
  box-shadow: 0 18px 40px rgba(19, 19, 19, 0.1);
}

.corner {
  position: absolute;
  width: 26px;
  height: 26px;
  background: var(--ink);
  opacity: 0.88;
}
.corner-tl { top: -4px; left: -4px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.corner-tr { top: -4px; right: -4px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.corner-bl { bottom: -4px; left: -4px; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.corner-br { bottom: -4px; right: -4px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

.print h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.print p {
  color: var(--ink-muted);
  font-size: 1rem;
  margin-bottom: 1.75rem;
}

.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.link-primary,
.link-secondary {
  display: inline-block;
  padding: 3px;
  text-decoration: none;
  transition: 0.4s;
}

.link-primary {
  color: var(--green-deep);
  font-weight: bold;
  font-size: 1.05rem;
}

.link-secondary {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

@media (hover: hover) {
  .link-primary:hover,
  .link-secondary:hover {
    background-color: var(--green-tint);
  }
}
