/* Tarriers: the "coming soon" page. Paper, ink and brass, set in the game's own typeface. */

@font-face { font-family: "Baskervville"; src: url("fonts/Baskervville.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Baskervville"; src: url("fonts/Baskervville-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #eadfc4;
  --paper-deep: #dfd2b2;
  --ink: #2a211b;
  --ink-soft: #6a5b4c;
  --brass: #a8873a;
  --red: #a2302a;
  --measure: 34rem;
  --gutter: clamp(1rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(255, 250, 235, 0.55), rgba(255, 250, 235, 0) 60%), linear-gradient(var(--paper), var(--paper-deep));
  background-attachment: fixed;
  font-family: "Baskervville", "Baskerville", "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: clamp(1.06rem, 0.95rem + 0.45vw, 1.3rem);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 0.9em; }
a { color: inherit; text-decoration-color: var(--brass); text-underline-offset: 0.18em; }
a:hover { color: var(--red); }

/* ---------- the title sheet ---------- */

.masthead { padding: var(--gutter) var(--gutter) 0; }
.sheet {
  position: relative;
  text-align: center;
  padding: clamp(2.5rem, 7vw, 6rem) 1rem clamp(2.2rem, 5vw, 4.2rem);
  border: 1px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 5px;
  margin: 6px;
}
/* The divided border of a survey sheet, drawn as dashes between the two rules. */
.sheet::before {
  content: "";
  position: absolute; inset: -6px;
  border: 5px dashed var(--ink);
  opacity: 0.9;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0, 5px 5px, 5px calc(100% - 5px), calc(100% - 5px) calc(100% - 5px), calc(100% - 5px) 5px, 5px 5px);
}
.kicker {
  margin: 0 0 1.2rem;
  font-size: clamp(0.68rem, 0.6rem + 0.35vw, 0.9rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
h1 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(4rem, 15vw, 12.5rem);
  line-height: 0.95;
  letter-spacing: -0.012em;
}
.rule { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin: clamp(1rem, 2.4vw, 2rem) auto clamp(0.8rem, 1.6vw, 1.3rem); width: min(24rem, 62%); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--ink); }
.rule span { width: 0.5rem; height: 0.5rem; background: var(--ink); transform: rotate(45deg); }
.tagline { margin: 0; font-style: italic; font-size: clamp(1.35rem, 1rem + 2.1vw, 2.7rem); line-height: 1.2; }
.soon {
  display: inline-block;
  margin: clamp(1.6rem, 3.5vw, 2.8rem) 0 0;
  padding: 0.55em 1.5em 0.5em 1.82em;
  border-top: 1px solid var(--brass);
  border-bottom: 1px solid var(--brass);
  font-size: clamp(0.8rem, 0.7rem + 0.5vw, 1.1rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---------- plates ---------- */

.plate { margin: var(--gutter) var(--gutter) 0; }
.plate-wide .reel { width: 100%; aspect-ratio: 1600 / 670; object-fit: cover; background: #1b1512; }
figure { margin: 0; }
figure img, figure video, .reel {
  border: 1px solid var(--ink);
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px rgba(42, 33, 27, 0.55), 0 18px 40px -22px rgba(42, 33, 27, 0.7);
  background: var(--paper-deep);
}
figcaption { margin-top: 1rem; font-style: italic; font-size: 0.82em; color: var(--ink-soft); text-align: center; }

main { padding: 0 var(--gutter); }
.lead {
  max-width: 40rem;
  margin: clamp(3rem, 8vw, 6.5rem) auto;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

.part {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4.5vw, 4.5rem);
  align-items: center;
  max-width: 84rem;
  margin: 0 auto clamp(3.5rem, 9vw, 8rem);
}
.part.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.part.flip figure { order: 2; }
.words { max-width: var(--measure); }
h2 { margin: 0 0 0.7rem; font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1.08; text-wrap: balance; }
.num {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.26em;
  letter-spacing: 0.35em;
  color: var(--brass);
}
.num::after { content: ""; display: block; width: 2.6rem; height: 1px; margin-top: 0.7rem; background: var(--brass); }

.spread { max-width: 84rem; margin: 0 auto clamp(3.5rem, 9vw, 8rem); }
.spread .words { margin: clamp(1.6rem, 3.5vw, 2.8rem) auto 0; text-align: center; max-width: 42rem; }
.spread h2 { font-size: clamp(1.7rem, 1.25rem + 2vw, 2.9rem); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2.6rem); max-width: 84rem; margin: 0 auto clamp(3.5rem, 9vw, 8rem); }
.pair.inner { margin-bottom: 0; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2.2rem); max-width: 84rem; margin: 0 auto clamp(3.5rem, 9vw, 8rem); }

.note {
  max-width: 36rem;
  margin: 0 auto clamp(3.5rem, 9vw, 7rem);
  padding: 1.4rem 0;
  border-top: 1px solid rgba(42, 33, 27, 0.35);
  border-bottom: 1px solid rgba(42, 33, 27, 0.35);
  font-style: italic;
  text-align: center;
  text-wrap: balance;
  color: var(--ink-soft);
}

/* ---------- the end of the sheet ---------- */

.colophon { padding: 0 var(--gutter) clamp(2.5rem, 6vw, 5rem); text-align: center; }
.colophon .engraving { width: min(34rem, 100%); margin: 0 auto clamp(2rem, 5vw, 3.4rem); }
.soon.big { margin-top: 0.4rem; font-size: clamp(1.05rem, 0.8rem + 1.3vw, 1.75rem); }
.for { margin: 1.3rem 0 0; font-size: 0.8em; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-soft); }
.fine { margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; font-size: 0.78em; color: var(--ink-soft); }

/* ---------- small screens ---------- */

@media (max-width: 56rem) {
  .part, .part.flip { grid-template-columns: minmax(0, 1fr); }
  .part.flip figure { order: 0; }
  .words { max-width: none; }
  .num { margin-bottom: 0.7rem; }
}
@media (max-width: 40rem) {
  .pair { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; }
  .sheet { outline-offset: 4px; }
  figure img, figure video, .reel { box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(42, 33, 27, 0.55); }
}

/* ---------- the 404 ---------- */

.lost { min-height: 100vh; display: grid; place-items: center; padding: var(--gutter); text-align: center; }
.lost h1 { font-size: clamp(3rem, 12vw, 8rem); }
