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

:root {
  color-scheme: light dark;

  --bg: #FAF9F6;
  --surface: #F2F0EB;
  --text: #1C1B19;
  --muted: #5E5B55;
  --accent: #7A5A2C;
  --line: #E3E0D9;
  --card-highlight: inset 0 1px 0 rgba(255, 255, 255, .6);

  --font: "Inter Variable", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --fs-body: 1.0625rem;
  --lh-body: 1.6;
  --fs-small: 0.875rem;
  --fs-lead: 1.25rem;
  --fs-h3: 1.25rem;
  --fs-h2: 1.5rem;
  --fs-h1: clamp(2.25rem, 5.5vw + 0.5rem, 4rem);
  --lh-h1: 1.05;
  --ls-h1: -0.02em;
  --ls-wordmark: -0.01em;
  --fw-body: 400;
  --fw-strong: 600;
  --measure: 40rem;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  --container: 64rem;
  --gutter: var(--s-5);
  --section-gap: var(--s-8);
  --hero-top: var(--s-8);
  --card-pad: var(--s-5);
  --card-radius: 20px;

  --dur-fast: 150ms;
  --dur-swing: 200ms;
  --ease: ease-out;
}

@media (min-width: 768px) {
  :root {
    --gutter: var(--s-7);
    --section-gap: var(--s-9);
    --hero-top: var(--s-10);
    --card-pad: var(--s-6);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --surface: #1D1C1A;
    --text: #ECEAE5;
    --muted: #A29E96;
    --accent: #D4AE72;
    --line: #2B2A27;
    --card-highlight: inset 0 1px 0 rgba(255, 255, 255, .06);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1,
h2,
h3 {
  font-weight: var(--fw-strong);
  text-wrap: balance;
}

h1 {
  margin: 0 0 var(--s-5);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
}

h2 {
  margin: 0 0 var(--s-5);
  font-size: var(--fs-h2);
  line-height: 1.25;
}

p {
  margin: 0;
}

/* links */
.card-links a,
.back a,
.site-footer a,
.back-home {
  display: inline-block;
  padding-block: calc((44px - 1lh) / 2);
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition:
    color var(--dur-fast) var(--ease),
    text-decoration-color var(--dur-fast) var(--ease),
    text-decoration-thickness var(--dur-fast) var(--ease);
}

a:hover {
  text-decoration-thickness: 2px;
}

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

/* skip link */
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: var(--s-4);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-4);
  background: var(--bg);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* header */
.site-header {
  padding-block: var(--s-5);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.logo:hover,
.logo:focus-visible {
  color: var(--accent);
}

.wordmark {
  font-size: var(--fs-body);
  font-weight: var(--fw-strong);
  letter-spacing: var(--ls-wordmark);
}

.mark {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
}

.mark-leaf {
  transform-box: fill-box;
  transform-origin: left center;
  transition: transform var(--dur-swing) var(--ease);
}

.logo:hover .mark-leaf,
.logo:focus-visible .mark-leaf {
  transform: scaleX(0.75);
}

/* hero */
.hero {
  padding-top: var(--hero-top);
}

.hero p {
  max-width: var(--measure);
}

.subhead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text);
}

.lede {
  margin-top: var(--s-5);
  color: var(--muted);
}

/* sections */
.tools,
.contact {
  margin-top: var(--section-gap);
}

/* card */
.card {
  max-width: var(--measure);
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--card-highlight);
}

.card-head {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.card-head img {
  flex: none;
  width: 48px;
  height: 48px;
}

.card-name {
  margin: 0;
  font-size: var(--fs-h3);
  line-height: 1.25;
}

.meta {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

.card-tagline {
  margin-top: var(--s-5);
}

.card-desc {
  margin-top: var(--s-2);
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin: var(--s-5) 0 0;
  padding: 0;
  list-style: none;
}

.card-links a {
  overflow-wrap: anywhere;
}

.tools .workshop {
  max-width: var(--measure);
  margin-top: var(--s-5);
  color: var(--muted);
}

/* contact */
.contact p {
  max-width: var(--measure);
}

.email,
.prose p:not(.back) a {
  padding-block: 0.75em;
}

.email {
  overflow-wrap: anywhere;
}

/* privacy */
.prose {
  max-width: var(--measure);
  padding-top: var(--s-5);
}

.prose p {
  margin-top: var(--s-3);
}

.prose h2 {
  margin: var(--s-7) 0 0;
}

.prose h2 + p {
  margin-top: var(--s-3);
}

.back {
  margin: 0;
}


.updated {
  font-size: var(--fs-small);
  font-style: italic;
  color: var(--muted);
}

/* footer */
.site-footer {
  margin-top: var(--section-gap);
  padding-block: var(--s-7);
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--muted);
}


@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .logo:hover .mark-leaf,
  .logo:focus-visible .mark-leaf {
    transform: none;
  }
}
