/* tendwall.com
   Rooted Paper, the app's palette, on a page. Paper canvas, slate ink,
   forest headings, a warm serif for the things that carry feeling. */

:root {
  --paper: #f0f2ed;
  --paper-card: #fafbf8;
  --paper-deep: #e4e8dd;
  --slate: #3a4a55;
  --forest: #456138;
  --fern: #6f9857;
  --honey: #e4b363;
  --line: rgba(58, 74, 85, 0.14);
  --muted: rgba(58, 74, 85, 0.68);

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--forest);
  text-underline-offset: 0.18em;
  text-decoration-thickness: from-font;
}

a:hover {
  color: var(--fern);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 10;
  background: var(--paper-card);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

/* ── head and foot ───────────────────────────────────────────────── */

.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  padding: 1.75rem var(--gutter) 0;
  max-width: 62rem;
  margin: 0 auto;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-right: auto;
}

.site-head nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.9375rem;
}

.site-head nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-head nav a:hover,
.site-head nav a[aria-current='page'] {
  color: var(--forest);
}

.site-foot {
  max-width: 62rem;
  margin: 5rem auto 0;
  padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-foot p {
  margin: 0.35rem 0;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

/* ── prose: the legal pages, and anything else text-first ────────── */

main {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.prose {
  max-width: var(--measure);
  padding-top: 3rem;
}

.prose h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--forest);
  margin: 0 0 0.5rem;
}

.prose h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4375rem;
  line-height: 1.25;
  color: var(--forest);
  margin: 3rem 0 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.prose h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
}

.prose p,
.prose li {
  margin: 0 0 1.1rem;
}

.prose ul {
  padding-left: 1.15rem;
  margin: 0 0 1.1rem;
}

.prose li {
  margin-bottom: 0.6rem;
}

.prose li::marker {
  color: var(--fern);
}

.prose strong {
  font-weight: 700;
  color: var(--slate);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

.updated {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 2.5rem !important;
}

.updated.stale {
  color: #8a5b1f;
  background: rgba(228, 179, 99, 0.22);
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 0.35rem;
}

/* An unanswered question, visible in a draft build and impossible to miss.
   A --publish build refuses to run while any of these remain. */
.marker {
  background: rgba(228, 179, 99, 0.2);
  border-left: 3px solid var(--honey);
  border-radius: 0 0.4rem 0.4rem 0;
  padding: 0.85rem 1rem;
  margin: 0 0 1.1rem;
  font-size: 0.9375rem;
}

.marker b {
  display: block;
  color: #8a5b1f;
  margin-bottom: 0.15rem;
}

/* ── home ────────────────────────────────────────────────────────── */

.hero {
  max-width: 40rem;
  padding: 4rem 0 1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--forest);
  margin: 0 0 1.25rem;
}

.hero p {
  font-size: 1.1875rem;
  margin: 0 0 1rem;
  max-width: 32rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.badges a {
  display: inline-block;
  background: var(--forest);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.6rem;
}

.badges a:hover {
  background: var(--fern);
  color: #fff;
}

.three {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 4rem 0 0;
  padding: 0;
  list-style: none;
}

.three li {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.5rem;
  margin: 0;
}

.three h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--forest);
  margin: 0 0 0.5rem;
}

.three p {
  margin: 0;
  font-size: 1rem;
}

.note {
  max-width: var(--measure);
  margin: 4rem 0 0;
  padding: 1.25rem 1.5rem;
  background: var(--paper-deep);
  border-radius: 0.9rem;
  font-size: 0.9375rem;
}

.note h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--slate);
}

.note p {
  margin: 0;
}

/* ── faq ─────────────────────────────────────────────────────────── */

.faq dt {
  font-weight: 700;
  margin: 1.75rem 0 0.35rem;
}

.faq dd {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: color 120ms ease, background-color 120ms ease;
  }
}
