/* Meantime Apps — shares the studio's type and palette, deliberately its own
   project so nothing here can reach meantime.work. */
:root {
  --paper: #faf8f3;
  --ink: #15171c;
  --ink-soft: #5d6068;
  --line: #ddd7c9;
  --line-soft: #e8e3d7;
  --accent: #1c39bb;
  --accent-ink: #162e96;
  --on-accent: #ffffff;
  --card: #ffffff;
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --font-mono: "Spline Sans Mono", "SF Mono", Menlo, monospace;
  --wrap: 60rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14161b;
    --ink: #e9e6df;
    --ink-soft: #9aa0ab;
    --line: #2b2f38;
    --line-soft: #232730;
    --accent: #8496ff;
    --accent-ink: #9dabff;
    --on-accent: #0d0f13;
    --card: #191c22;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Masthead */
.masthead {
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

.eyebrow a { color: inherit; }

h1 {
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 1rem;
}

.lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0;
}

/* The list of apps */
.apps {
  list-style: none;
  margin: 0;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 8vw, 5rem);
  display: grid;
  gap: 1.25rem;
}

.app {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.app:hover { border-color: var(--accent); transform: translateY(-2px); }

.app h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

/* The whole card is the target, but the name stays the accessible link. */
.app h2 a { color: inherit; text-decoration: none; }
.app h2 a::after { content: ""; position: absolute; inset: 0; }

.app p { margin: 0 0 1rem; color: var(--ink-soft); max-width: 46em; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tag { border: 1px solid var(--line); border-radius: 100px; padding: 0.25rem 0.7rem; }

.external {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Long-form pages */
main.prose { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 9vw, 6rem); }

.prose h2 {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.75rem;
}

.prose p, .prose li { color: var(--ink-soft); max-width: 40em; }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--ink); font-weight: 600; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-ink); }

.updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
}

.back {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 2rem;
}
