/* Stinky Software — shared styles.
   Palette sampled directly from Susan's logo:
     #3B2871 grape · #BFC9DE periwinkle · #000 keyline · #D88CA2 tongue pink
   The logo is built from flat fills, a thick black keyline, and a hard
   offset shadow with no blur. Cards and buttons here are built the same way,
   so the layout reads as the same object family as the mark. */

:root {
  --grape:      #3b2871;
  --grape-lift: #4a3487;
  --grape-deep: #2a1c52;
  --peri:       #bfc9de;
  --peri-pale:  #eef1f7;
  --pink:       #d88ca2;
  --ink:        #000000;
  --white:      #fbfcfc;
  --body-ink:   #322c4a;

  --display: "Zilla Slab", Rockwell, Georgia, serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;

  --gutter: clamp(1.5rem, 5vw, 5.5rem);
  --keyline: 2px solid var(--ink);
  --drop: 5px 5px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--peri-pale);
  color: var(--body-ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

.band { padding-inline: var(--gutter); }

.label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--grape) 68%, var(--peri));
}

/* ---------- masthead ---------- */

.masthead {
  background: var(--peri);
  color: var(--body-ink);
  border-bottom: 3px solid var(--ink);
  padding-block: clamp(1.5rem, 3.5vw, 2.25rem) clamp(3rem, 8vw, 5.5rem);
}

/* text left, big mark right */
.masthead-inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 54rem) {
  .masthead-inner { grid-template-columns: minmax(0, 1fr) auto; }
}

/* No border, no border-radius, no shadow. The artwork already has its own
   black circle and transparent surround; adding a CSS ring drew a second,
   misaligned one (the image is 642x603, so border-radius:50% is an ellipse,
   not a circle) and the page showed through the gap as a light band. */
.masthead-logo {
  justify-self: center;
  width: clamp(160px, 26vw, 320px);
  height: auto;
  display: block;
}

@media (min-width: 54rem) { .masthead-logo { justify-self: end; } }

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(3rem, 9vw, 6rem);
}

/* logo + wordmark lockup */
.lockup {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.5vw, 1rem);
  text-decoration: none;
}

.wordmark {
  font-family: var(--display);
  font-size: clamp(1.375rem, 1.2rem + 1vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.006em;
  line-height: 1;
  margin: 0;
  color: var(--grape);
}

.wordmark span { color: var(--pink); }

.topbar .label { color: var(--grape); }
.topbar a { text-decoration-color: color-mix(in srgb, var(--grape) 40%, transparent); text-underline-offset: 4px; }
.topbar a:hover { color: var(--grape-lift); text-decoration-color: var(--pink); }

.statement {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.875rem, 1.05rem + 4.1vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.012em;
  max-width: 20ch;
  margin: 0;
  color: var(--grape);
  text-wrap: balance;
}

.statement em {
  font-style: italic;
  color: var(--pink);
}

.standfirst {
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
  max-width: 48ch;
  color: var(--body-ink);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.62;
}

/* ---------- record cards ---------- */

.records { padding-block: clamp(3.5rem, 9vw, 6rem); }

.records-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1.75rem;
  border-bottom: 3px solid var(--ink);
}

.records-head h2 {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.004em;
  color: var(--ink);
  margin: 0;
}

.card-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 2.75rem);
  grid-template-columns: 1fr;
  padding-top: clamp(2.25rem, 4vw, 3.25rem);
}

@media (min-width: 60rem) {
  .card-grid { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .card-grid > .span-all { grid-column: 1 / -1; max-width: 34rem; }
}

/* keyline + hard offset shadow, after the logo's construction */
.card {
  background: var(--white);
  border: var(--keyline);
  border-radius: 10px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--drop);
}

.card.tinted { background: color-mix(in srgb, var(--peri) 38%, var(--white)); }

.card-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0.4rem 0 0.75rem;
}

.card p { margin: 0 0 1.5rem; max-width: 48ch; }
.card p:last-of-type { margin-bottom: 0; }

.fields { margin: 0; border-top: 1px solid var(--ink); }

.fields div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.25rem 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  align-items: baseline;
}

@media (max-width: 30rem) {
  .fields div { grid-template-columns: 1fr; }
}

.fields dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--grape) 72%, var(--peri));
}

.fields dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--body-ink); }

.status { display: inline-flex; align-items: center; gap: 0.5rem; }

.status::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--pink);
  border: 1.5px solid var(--ink);
  flex: none;
}

/* pill link, same construction as the cards */
.card-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.45rem 0.95rem;
  background: var(--peri);
  border: var(--keyline);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.card-link:hover {
  background: var(--pink);
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.card-link:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .card-link { transition: none; }
  .card-link:hover, .card-link:active { transform: none; }
}

/* ---------- colophon ---------- */

.colophon {
  background: var(--grape);
  color: color-mix(in srgb, var(--peri) 85%, var(--white));
  border-top: 3px solid var(--ink);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.colophon-inner { display: grid; gap: 2.5rem; }

@media (min-width: 44rem) {
  .colophon-inner { grid-template-columns: 1fr auto; align-items: end; }
}

.colophon .label { color: var(--peri); }

.colophon h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem);
  font-weight: 400;
  letter-spacing: -0.008em;
  color: var(--white);
  max-width: 24ch;
  margin: 0.5rem 0 0;
}

.colophon .email {
  color: var(--pink);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.legal {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--peri) 72%, var(--grape-lift));
}

.legal p { margin: 0; }

/* ---------- entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .reveal:nth-of-type(1) { animation-delay: 0.05s; }
  .reveal:nth-of-type(2) { animation-delay: 0.14s; }
  .reveal:nth-of-type(3) { animation-delay: 0.23s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }
}
