/* Tinker Mink — one page, no dependencies, no third-party requests. */

:root {
  --bg:      #15120e;
  --fg:      #eae4d8;
  --muted:   #8f8779;
  --rule:    #2b2620;
  --accent:  #b99b62;

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino,
           Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
           Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 1.5rem 2rem;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ---- main column ---------------------------------------------------- */

main {
  flex: 1;
  width: 100%;
  max-width: 33rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 3rem;
}

.wordmark {
  margin: 0 0 1.75rem;
  font-weight: 400;
  font-size: clamp(2.125rem, 9vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.lede {
  margin: 0;
  max-width: 30rem;
  font-size: clamp(1.0625rem, 3.4vw, 1.1875rem);
  line-height: 1.7;
}

/* ---- links ----------------------------------------------------------- */

.links {
  margin: 2.5rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  letter-spacing: 0.005em;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 180ms ease, color 180ms ease;
}

a:hover,
a:focus-visible {
  text-decoration-color: var(--accent);
}

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

.links .quiet {
  color: var(--muted);
}

.links .quiet:hover,
.links .quiet:focus-visible {
  color: var(--fg);
}

/* ---- footer ---------------------------------------------------------- */

footer {
  width: 100%;
  max-width: 33rem;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

footer p { margin: 0; }

/* ---- wider screens --------------------------------------------------- */

@media (min-width: 40rem) {
  body { padding: 4rem 3rem 2.5rem; }

  .links {
    flex-direction: row;
    align-items: baseline;
    gap: 2rem;
  }
}

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

@media (prefers-reduced-motion: no-preference) {
  .wordmark, .lede, .links, footer {
    animation: rise 620ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .lede   { animation-delay:  90ms; }
  .links  { animation-delay: 180ms; }
  footer  { animation-delay: 260ms; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
