@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-600.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/inter-700.woff2") format("woff2");
}

/* Wordmark face, matching the outlined logo files */
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-700.woff2") format("woff2");
}

/* Brand colours: black, white, neon green, pink. The site is dark only, because the neon
   green and pink are only used on black. */
:root {
  --black: #101012;
  --white: #fafaf8;
  --green: #34d399;
  --pink: #f472b6;
  --background: var(--black);
  --foreground: var(--white);
  --muted: #262628;
  --border: #373738;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font: 17px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

::selection { background: var(--pink); color: var(--black); }

:target { scroll-margin-block: 1rem; }

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

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline 2px var(--pink); text-underline-offset: 4px; }
a:focus-visible { outline: 2px dashed var(--green); outline-offset: 2px; }

header.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

/* The pig's chin stroke ends at the SVG's right edge; ::after continues it under the wordmark */
.brand {
  --logo: 4rem;
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  font: 700 1.15rem/1 var(--mono);
  color: var(--foreground);
  text-decoration: none;
}

/* viewBox is 32 wide by 18 tall, cropped to the pig above the rim */
.logo { flex: none; width: var(--logo); height: calc(var(--logo) * 18 / 32); color: var(--green); }

.word { padding: 0 0.2rem calc(var(--logo) / 32 + 0.3rem) 0.1rem; }

.brand::after {
  content: "";
  position: absolute;
  left: calc(var(--logo) - 1px);
  right: 0;
  bottom: 0;
  height: calc(var(--logo) / 32);
  background: var(--green);
}

.brand .tld { color: var(--pink); }

/* The logo is one link: no underline on hover */
.brand:hover { text-decoration: none; }

nav a {
  margin-left: 1.5rem;
  color: var(--foreground);
  font-weight: 600;
  text-decoration: none;
}

nav a:hover { color: var(--pink); }

main { flex: 1; padding: 2.5rem 0 3rem; }

h1 {
  font-size: clamp(1.8rem, 5vw, 2.3rem);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

section {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 2.25rem;
}

.lede { margin: 0 0 1rem; }

.label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  margin: 0 0 0.5rem;
}

.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.card p { margin: 0; font-size: 0.9rem; opacity: 0.8; }

.status { font-size: 0.75rem; opacity: 0.7; white-space: nowrap; }
.wip { font-style: italic; }

.meta { font-size: 0.85rem; opacity: 0.7; margin: 0 0 0.5rem; }

/* Placeholder slot: same shape as an app card's artwork panel (489x176), so it lines up with it */
.card.empty {
  border-style: dashed;
  align-self: start;
  aspect-ratio: 489 / 176;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}
.empty-pig { width: 3.5rem; height: auto; color: var(--green); opacity: 0.45; }

/* App card: brand artwork on top, details below */
.card.app { padding: 0; overflow: hidden; }
.card-art img { display: block; width: 100%; height: auto; }
.card.app .card-body { padding: 1rem; }

.app-logo { margin: 0 0 1rem; }
.app-logo img { display: block; width: min(100%, 361px); height: auto; }

/* Screenshot gallery: swipe sideways, snaps to each phone */
.shots {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0 0 0.75rem;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--border) transparent;
}
.shots li { flex: none; width: 13.5rem; scroll-snap-align: start; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 1.75rem; border: 1px solid var(--border); }
.shots figcaption { margin-top: 0.5rem; font-size: 0.85rem; opacity: 0.75; }
.card.empty p { opacity: 0.6; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.chips li {
  background: var(--muted);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
}

ul.plain { padding-left: 1.2rem; margin: 0; }
ul.plain li { margin: 0.4rem 0; }

footer .wrap {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

footer p { margin: 0; }
