/* =========================================================
   FIELD INSTRUMENTS  /  Green Shoe Garage Data Co.
   leather + parchment + brass + oxblood ink
   ========================================================= */

:root {
  /* paper */
  --paper:        #ead9b6;
  --paper-mid:    #dcc69b;
  --paper-edge:   #b89770;

  /* leather */
  --leather:      #2a1a0e;
  --leather-mid:  #432a18;
  --leather-low:  #14090a;

  /* fittings + ink */
  --brass:        #b89058;
  --brass-hi:     #e1c485;
  --brass-lo:     #6e5028;
  --ink:          #2a1d12;
  --ink-soft:     #5a432c;
  --oxblood:      #7a2820;   /* dark ink, used on cream parchment */
  --ink-stamp:    #ee8a72;   /* warm vermillion, used on the leather background */
  --thread:       #856841;
  --forest:       #2d3a25;   /* nods back to GSG brand green */
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Crimson Pro", "IM Fell English", Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
  background-color: var(--leather);
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(184,144,88,0.18), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(0,0,0,0.55), transparent 50%),
    radial-gradient(ellipse at 50% 50%, var(--leather-mid), var(--leather) 55%, var(--leather-low));
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* fine leather grain + scratches via SVG noise */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.55;
}

/* a soft vignette so corners feel saddle-shadowed */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
}

.skip {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip:focus {
  left: 16px; top: 16px; width: auto; height: auto;
  padding: 8px 12px; background: var(--paper); color: var(--ink);
  font-family: "Special Elite", monospace; font-size: 12px; z-index: 100;
  border: 1px solid var(--brass);
}

.satchel {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 96px;
}

/* ----------------- COVER / MASTHEAD ----------------- */

.cover {
  text-align: center;
  padding: 40px 16px 56px;
  color: var(--paper);
  position: relative;
}

.backlink {
  position: absolute;
  top: 0; left: 0;
  font-family: "Special Elite", monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass-hi);
  text-decoration: none;
  opacity: 0.82;
  border-bottom: 1px dashed transparent;
  padding-bottom: 2px;
  transition: opacity .2s ease, border-color .2s ease;
}
.backlink:hover {
  opacity: 1;
  border-bottom-color: var(--brass-hi);
}

.cover-stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 14px 28px 16px;
  margin-bottom: 36px;
  border: 3px double var(--oxblood);
  color: var(--oxblood);
  font-family: "Special Elite", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--paper);
  transform: rotate(-3.2deg);
  opacity: 1;
  border-radius: 2px;
  filter: contrast(1.05);
  /* subtle ink unevenness on a paper label that sits on the leather */
  box-shadow:
    inset 0 0 12px rgba(122, 40, 32, 0.18),
    inset 0 0 0 1px rgba(122, 40, 32, 0.22),
    0 4px 14px rgba(0, 0, 0, 0.45);
}
.cover-stamp__name {
  font-size: 17px;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin: 2px 0;
}
.cover-stamp__seal {
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 0.3em;
  padding-top: 4px;
  border-top: 1px dashed currentColor;
  width: 100%;
  text-align: center;
}

.masthead {
  font-family: "IM Fell English", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 10vw, 124px);
  line-height: 0.92;
  margin: 0 0 18px;
  color: var(--paper);
  letter-spacing: -0.01em;
  text-shadow:
    0 1px 0 rgba(0,0,0,0.4),
    0 3px 12px rgba(0,0,0,0.5);
}
.masthead__line { display: block; }
.masthead__line--two {
  color: var(--brass-hi);
  letter-spacing: 0.005em;
}

.subtitle {
  font-family: "Special Elite", monospace;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-hi);
  opacity: 0.85;
  margin: 0;
}

.rule {
  height: 1px;
  margin: 38px auto 8px;
  max-width: 560px;
  background: repeating-linear-gradient(
    to right,
    var(--brass-hi) 0 7px,
    transparent 7px 14px
  );
  opacity: 0.55;
  position: relative;
}
.rule::before,
.rule::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--brass-hi), var(--brass) 60%, var(--brass-lo));
  box-shadow: inset 0 0 3px rgba(0,0,0,0.45), 0 1px 1px rgba(0,0,0,0.4);
  transform: translateY(-50%);
}
.rule::before { left: -4px; }
.rule::after  { right: -4px; }

/* ----------------- MANIFEST CARDS ----------------- */

.manifest {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 40px;
  margin-top: 56px;
}

.card {
  --lean: 0deg;
  position: relative;
  padding: 40px 30px 30px;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    /* paper grain */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.12  0 0 0 0 0.06  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>"),
    /* faint coffee-ring at top-right */
    radial-gradient(circle at 88% 14%, rgba(122,40,32,0.10) 0 6px, rgba(122,40,32,0.06) 6px 16px, transparent 17px),
    /* edge tan */
    radial-gradient(ellipse at 50% 50%, var(--paper) 0%, var(--paper) 60%, var(--paper-mid) 92%, var(--paper-edge) 100%);
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 1px 2px rgba(0,0,0,0.15),
    0 8px 16px rgba(0,0,0,0.35),
    0 22px 44px rgba(0,0,0,0.28);
  transform: rotate(var(--lean));
  transition: transform .35s ease, box-shadow .35s ease;
}

/* tight stitched border just inside the card edge */
.card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed var(--thread);
  border-radius: 1px;
  opacity: 0.55;
  pointer-events: none;
}

/* hover: stand the card up, push the shadow */
.card:hover,
.card:focus-within {
  transform: rotate(0deg) translateY(-7px);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 1px 2px rgba(0,0,0,0.15),
    0 14px 24px rgba(0,0,0,0.42),
    0 34px 56px rgba(0,0,0,0.32);
}

/* brass grommets */
.grommet {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, var(--brass-hi) 0%, var(--brass) 55%, var(--brass-lo) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.35),
    inset 0 -1px 1px rgba(0,0,0,0.45),
    0 1px 1px rgba(0,0,0,0.35);
}
.grommet::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--leather);
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.6);
}
.grommet--tl { top: 8px;  left: 8px;  }
.grommet--tr { top: 8px;  right: 8px; }
.grommet--bl { bottom: 8px; left: 8px;  }
.grommet--br { bottom: 8px; right: 8px; }

/* tag header */
.tag {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0 6px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--ink-soft);
  font-family: "Special Elite", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tag__number {
  color: var(--oxblood);
  font-weight: 700;
  letter-spacing: 0.18em;
}

/* title */
.card__title {
  font-family: "IM Fell English", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 50px;
  line-height: 1;
  margin: 0 0 4px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.card__function {
  font-family: "Special Elite", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--oxblood);
  margin: 0 0 18px;
}

.card__body {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.card__meta {
  font-family: "Special Elite", monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.85;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.card__meta-dot { color: var(--oxblood); }

/* the brass DEPLOY plate */
.deploy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 11px;
  background:
    linear-gradient(180deg, var(--brass-hi) 0%, var(--brass) 55%, var(--brass-lo) 100%);
  color: var(--leather);
  font-family: "Special Elite", monospace;
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--brass-lo);
  border-radius: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(0,0,0,0.25),
    0 2px 4px rgba(0,0,0,0.3);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.deploy:hover,
.deploy:focus-visible {
  filter: brightness(1.08) saturate(1.05);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -1px 0 rgba(0,0,0,0.22),
    0 3px 6px rgba(0,0,0,0.4);
}
.deploy:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.deploy__arrow {
  display: inline-block;
  transition: transform .15s ease;
}
.deploy:hover .deploy__arrow,
.deploy:focus-visible .deploy__arrow { transform: translateX(4px); }

/* handwritten margin notes */
.hand-note {
  position: absolute;
  font-family: "IM Fell English", Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--oxblood);
  opacity: 0.78;
  white-space: nowrap;
  pointer-events: none;
}
.hand-note--right {
  right: 22px;
  bottom: 26px;
  transform: rotate(-6deg);
}

/* ----------------- COLOPHON ----------------- */

.colophon {
  margin-top: 80px;
  text-align: center;
  color: var(--brass-hi);
  font-family: "Special Elite", monospace;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.colophon .rule { margin-bottom: 28px; }
.colophon__brand { margin: 0 0 8px; }
.colophon .dot { color: var(--ink-stamp); margin: 0 6px; }
.colophon__license {
  margin: 0 0 18px;
  opacity: 0.8;
}
.colophon__credo {
  font-family: "IM Fell English", Georgia, serif;
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--paper);
  opacity: 0.75;
  margin: 0;
}

/* ----------------- NOSCRIPT FALLBACK ----------------- */

.manifest--fallback {
  display: block;
  margin: 40px auto 0;
  max-width: 720px;
  padding: 28px 32px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Crimson Pro", Georgia, serif;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  border-radius: 2px;
}
.manifest--fallback ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.manifest--fallback li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--ink-soft);
  font-size: 16px;
}
.manifest--fallback li:last-child { border-bottom: none; }
.manifest--fallback a {
  color: var(--oxblood);
  font-family: "IM Fell English", Georgia, serif;
  font-style: italic;
  font-size: 19px;
  text-decoration: none;
}
.manifest--fallback a:hover { text-decoration: underline; }

.manifest__empty {
  grid-column: 1 / -1;
  text-align: center;
  font-family: "Special Elite", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-hi);
  opacity: 0.7;
  padding: 60px 20px;
}

/* ----------------- STAGGERED ENTRANCE ----------------- */

@keyframes settle {
  from {
    opacity: 0;
    transform: rotate(var(--lean)) translateY(14px);
  }
  to {
    opacity: 1;
    transform: rotate(var(--lean)) translateY(0);
  }
}
.card {
  animation: settle 0.7s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: var(--delay, 0s);
}

@keyframes ink {
  from { opacity: 0; transform: rotate(-3.2deg) scale(.96); }
  to   { opacity: 0.92; transform: rotate(-3.2deg) scale(1); }
}
.cover-stamp { animation: ink 0.9s ease-out 0.05s both; }

@media (prefers-reduced-motion: reduce) {
  .card, .cover-stamp { animation: none; }
  .card { transform: rotate(var(--lean)); opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ----------------- RESPONSIVE ----------------- */

@media (max-width: 720px) {
  .satchel { padding: 36px 18px 64px; }
  .backlink { position: static; display: inline-block; margin-bottom: 18px; }
  .cover { padding-top: 12px; }
  .card { transform: none; padding: 36px 22px 24px; }
  .card:hover, .card:focus-within { transform: translateY(-5px); }
  .card__title { font-size: 42px; }
  .hand-note--right { right: 18px; bottom: 22px; }
}
