/* woolholm.com — hand-written from DESIGN.md.
 *
 * Every value below is a token the app already uses: the clay ramp and the
 * type scale from app/assets/css/main.css, the stone neutrals NuxtUI resolves
 * `text-default` / `bg-muted` / `border-default` to. Dark mode is the same
 * mapping NuxtUI's `.dark` uses, switched on prefers-color-scheme because this
 * page has no JS to remember a choice. */

:root {
  color-scheme: light dark;

  /* Neutrals — stone. Light: paper over stone-50, ink at stone-700/900. */
  --paper: #fafaf9;
  --paper-muted: #f5f5f4;
  --rule: #e7e5e4;
  --rule-strong: #d6d3d1;
  --ink: #44403c;
  --ink-strong: #1c1917;
  --ink-muted: #57534e;

  /* Clay. 600 is the fill (white on it: 4.58:1); text needs 700 to clear
   * 4.5:1 against stone-50, which is a touch darker than the white the app
   * measured against. */
  --clay: #c74f2f;
  --clay-hover: #a63e24;
  --clay-ink: #a63e24;
  --on-clay: #ffffff;

  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Instrument Serif', ui-serif, Georgia, serif;
  --radius: 0.25rem;
  --container: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark: stone-900 ground, stone-800 elevation, clay-400 accent — the
     * `.dark` block in main.css. */
    --paper: #1c1917;
    --paper-muted: #292524;
    --rule: #292524;
    --rule-strong: #44403c;
    --ink: #e7e5e4;
    --ink-strong: #fafaf9;
    --ink-muted: #a8a29e;
    --clay: #e88f75;
    --clay-hover: #f2b8a7;
    --clay-ink: #e88f75;
    --on-clay: #1c1917;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}

p {
  margin: 0;
}

a {
  color: var(--clay-ink);
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
  border-radius: var(--radius);
}

img,
svg {
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 40rem) {
  .container {
    padding-inline: 1.5rem;
  }
}

/* ── Skip link ─────────────────────────────────────────────────────────── */

.skip {
  position: absolute;
  left: 1rem;
  top: -100%;
  padding: 0.5rem 0.75rem;
  background: var(--paper);
  color: var(--clay-ink);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  font-weight: 500;
  z-index: 1;
}

.skip:focus {
  top: 1rem;
}

/* ── Header ────────────────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.lockup .mark {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--clay);
  flex-shrink: 0;
}

.lockup .wordmark {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 500;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.5rem 0;
}

.site-nav a:hover {
  color: var(--ink-strong);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  background: var(--clay);
  color: var(--on-clay);
  border: 1px solid transparent;
}

.button:hover {
  background: var(--clay-hover);
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  padding-block: 3rem 4rem;
}

.hero .container {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 64rem) {
  .hero {
    padding-block: 6rem;
  }

  .hero .container {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: 4rem;
  }
}

.hero h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  text-wrap: balance;
}

@media (min-width: 40rem) {
  .hero h1 {
    font-size: 3rem;
    line-height: 1.1;
  }
}

@media (min-width: 64rem) {
  .hero h1 {
    font-size: 3.75rem;
    line-height: 1.05;
  }
}

.hero .lede {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 34rem;
  text-wrap: pretty;
}

.hero .actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.hero .aside {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.hero .signin {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.hero-image {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) * 2);
  background: var(--paper-muted);
}

/* ── Features ──────────────────────────────────────────────────────────── */

.features {
  border-top: 1px solid var(--rule);
  background: var(--paper-muted);
  padding-block: 4rem;
}

.section-title {
  font-size: 1.75rem;
  line-height: 1.3;
}

.section-lede {
  margin-top: 0.75rem;
  color: var(--ink-muted);
  max-width: 34rem;
}

.feature-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature {
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.feature .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--clay-ink);
}

.feature h3 {
  margin-top: 1rem;
  font-size: 1.375rem;
  line-height: 1.4;
}

.feature p {
  margin-top: 0.5rem;
  color: var(--ink);
}

/* ── Island of the week ────────────────────────────────────────────────── */

.weekly {
  border-top: 1px solid var(--rule);
  padding-block: 4rem;
}

.weekly .container {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .weekly .container {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }
}

.weekly .icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--clay-ink);
}

.weekly p {
  margin-top: 0.75rem;
  max-width: 40rem;
  text-wrap: pretty;
}

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  padding-block: 2rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.5rem;
}

.site-footer a:hover {
  color: var(--ink-strong);
}

/* ── 404 ───────────────────────────────────────────────────────────────── */

.lost {
  padding-block: 6rem;
}

.lost h1 {
  font-size: 3rem;
  line-height: 1.1;
}

.lost p {
  margin-top: 1rem;
  max-width: 34rem;
}

.lost .actions {
  margin-top: 2rem;
}
