/* Briarthread landing page. Palette and rules from branding/BRAND.md:
   flat colour, hard edges, no gradients, glows or drop shadows. */

@font-face {
  font-family: "IM Fell English";
  src: url("assets/fonts/IMFeENrm28P.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IM Fell English";
  src: url("assets/fonts/IMFeENit28P.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IM Fell English SC";
  src: url("assets/fonts/IMFeENsc28P.ttf") format("truetype");
  font-display: swap;
}

:root {
  --parchment: #DBCFB0;
  --parchment-light: #E6D9B8;
  --ink: #17130F;
  --night: #1F1A16;
  --gold: #EBB857;
  --briar: #5C452E;
  --briar-dark: #3A2C1F;
  --crimson: #850D24;

  --display: "IM Fell English", Georgia, "Times New Roman", serif;
  --smallcaps: "IM Fell English SC", "IM Fell English", Georgia, serif;
  --body: Georgia, "Times New Roman", serif;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment-light);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); }

.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

/* Hero */

.hero {
  background: var(--night);
  text-align: center;
}

.hero-text {
  padding: clamp(2.5rem, 7vw, 5rem) 1.25rem clamp(2rem, 5vw, 3.5rem);
}

/* Phones and tablets: the key art is a strip under the text. */
.hero-art { width: 100%; }

.hero-logo {
  margin: 0 auto;
  width: min(100%, 26rem);
}

.tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.5rem, 4.2vw, 2.25rem);
  line-height: 1.25;
  color: var(--parchment-light);
  margin: 1rem 0 0.25rem;
  text-wrap: balance;
}
.lede, .features h2, .section-title { text-wrap: balance; }

.kind {
  font-family: var(--smallcaps);
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  letter-spacing: 0.04em;
  color: var(--parchment);
  margin: 0 0 1.75rem;
}

.status {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--parchment);
}

/* The button: gold like the thread, with an ink casing. */
.button {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  border: 3px solid var(--ink);
  outline: 2px solid var(--gold);
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.7em 1.4em;
}
.button:hover { background: var(--parchment-light); outline-color: var(--parchment-light); }
.button:focus-visible { outline: 3px solid var(--parchment-light); outline-offset: 3px; }

/* Wide screens: the art fills the hero at its own shape (never cropped, so its
   frame stays whole) and the text sits in the empty sky left of the moon, above
   the gold thread. Sizes scale with the width so the text always fits that sky. */
@media (min-width: 1100px) {
  .hero {
    position: relative;
    aspect-ratio: 3840 / 1240;
    text-align: left;
  }
  .hero-art {
    position: absolute;
    inset: 0;
    height: 100%;
  }
  .hero-text {
    position: absolute;
    z-index: 1;
    left: 6.5%;
    top: 7%;
    bottom: 31%;
    width: 46%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
  .hero-logo { margin: 0; width: 23vw; }
  .tagline { font-size: 1.95vw; margin: 0.9vw 0 0.2vw; }
  .kind { font-size: 1.2vw; margin-bottom: 1.4vw; }
  .cta { display: flex; align-items: center; gap: 1.4vw; }
  .cta .button { font-size: 1.3vw; }
  .cta .status { margin: 0; font-size: 1vw; }
}

/* Pitch, on parchment */

.pitch {
  background: var(--parchment);
  color: var(--ink);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.lede {
  font-family: var(--display);
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  line-height: 1.45;
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem 2rem;
}

.features li {
  border-top: 3px solid var(--ink);
  padding-top: 0.75rem;
}

.features h2 {
  font-family: var(--display);
  font-weight: normal;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 0.4rem;
}
/* The one crimson accent: a knot before each lead-in. */
.features h2::before {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-right: 0.45em;
  vertical-align: 0.12em;
  background: var(--crimson);
  transform: rotate(45deg);
}

.features p { margin: 0; }

/* Screenshots */

.shots { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

.section-title {
  font-family: var(--smallcaps);
  font-weight: normal;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: 0.03em;
  color: var(--gold);
  text-align: center;
  margin: 0 0 2rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1.5rem;
}
.gallery .wide { grid-column: 1 / -1; }

.gallery figure { margin: 0; }
.gallery a { display: block; border: 2px solid var(--briar); }
.gallery a:hover, .gallery a:focus-visible { border-color: var(--gold); outline: none; }

.gallery figcaption {
  margin-top: 0.6rem;
  font-size: 1rem;
  color: var(--parchment);
}

/* Closing call to action */

.follow {
  background: var(--night);
  border-top: 2px solid var(--briar-dark);
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem;
}
.follow .emblem { width: 7.5rem; margin: 0 auto 1rem; }
.follow .section-title { margin-bottom: 0.75rem; }
.follow p { max-width: 34rem; margin: 0 auto 1.75rem; }
.follow .secondary { margin: 1.75rem auto 0; font-size: 0.95rem; color: var(--parchment); }

.footer {
  text-align: center;
  padding: 1.5rem 1.25rem 2rem;
  font-size: 0.85rem;
  color: var(--parchment);
}
.footer p { margin: 0; }

@media (max-width: 640px) {
  body { font-size: 1.05rem; }
  .gallery { grid-template-columns: 1fr; }
  .button { font-size: 1.15rem; }
}
