/* Donald Jenkins — landing page.
   Plain CSS equivalent of the previous Tailwind build: the utility classes
   have been resolved to their computed values, so the rendering is unchanged. */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* --- House typeface: Figtree -----------------------------------------------
   Font policy 1b: Figtree for titles AND body across everything published
   online. Self-hosted, not Google Fonts: a third-party font request would
   sit badly with the same privacy stance that removed Turnstile from
   donaldjenkins.com. Single Regular cut, copied from that site's
   static/fonts/. These pages declare no font-weight and contain no heading,
   strong or em element, so nothing is ever synthesised.

   TO REVERT TO system-ui: delete this @font-face block, restore
     --sans: system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
   and delete the fonts/ directory. Nothing else references Figtree.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: Figtree;
  src: url("fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;   /* VARIABLE font: wght axis 300-900. Declaring a single
                             value here makes the browser render the file's DEFAULT
                             instance - which is Light 300, not Regular - so the
                             range is required, not optional. */
  font-style: normal;
  font-display: swap;
}

:root {
  --sans: Figtree, "Helvetica Neue", Arial, sans-serif;
  --gurkha: #9C9B77;
  --davys: hsl(111, 0%, 34%);
  --rule: rgb(0 0 0 / 0.08);
  color-scheme: light dark;
}

body {
  font-family: var(--sans);
  background-color: #fff;
  color: var(--davys);
  line-height: inherit;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background-color: hsl(56, 18%, 82%);
  color: hsl(111, 0%, 20%);
}

/* ---------- Links ---------- */

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--gurkha);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: #c75757;
  text-decoration: none;
}

/* ---------- Page frame ---------- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.masthead {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  max-width: 42rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.content {
  flex: 1 1 0%;
  padding: 4rem 1.5rem;
}

.content-inner {
  max-width: 42rem;
  margin-inline: auto;
}

.content-inner > * + * {
  margin-top: 4rem;
}

.colophon {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--rule);
}

.colophon-inner {
  max-width: 42rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

/* ---------- Logo lockup ---------- */

.logo-link {
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--davys);
}

.logo-mark {
  height: 1.75rem;
  width: 1.75rem;
  flex-shrink: 0;
}

.logo-wordmark {
  height: 1.1rem;
  width: auto;
}

/* ---------- Contact ---------- */

.contact {
  font-size: 0.875rem;
  line-height: 1.25rem;
  opacity: 0.5;
}

.contact:hover {
  opacity: 1;
}

/* ---------- Prose ---------- */

.lede {
  font-size: 1.25rem;
  line-height: 1.625;
  color: hsl(111, 0%, 26%);
}

.bio {
  font-size: 1rem;
  line-height: 2;
  opacity: 0.8;
}

.rule {
  border: none;
  height: 1px;
  background-color: var(--gurkha);
  opacity: 0.3;
}

/* ---------- Elsewhere ---------- */

.elsewhere {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.25rem;
  row-gap: 0.75rem;
}

.elsewhere-home {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.social {
  display: flex;
  align-items: center;
  column-gap: 1rem;
  list-style: none;
}

.social a {
  display: block;
  color: #9c9b77;
  text-decoration: none;
  transition: color 0.15s ease;
}

.social a:hover {
  color: #c75757;
}

.social svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

/* ---------- Fine print ---------- */

.fine-print {
  font-size: 0.75rem;
  line-height: 1rem;
  opacity: 0.4;
}

/* ---------- Wider viewports (Tailwind's md: breakpoint) ---------- */

@media (width >= 48rem) {
  .masthead {
    padding: 2.5rem 4rem;
  }

  .content {
    padding: 6rem 4rem;
  }

  .colophon {
    padding: 2rem 4rem;
  }

  .colophon-inner {
    flex-direction: row;
    align-items: center;
  }

  .lede {
    font-size: 1.5rem;
  }

  .bio {
    font-size: 1.125rem;
  }
}

/* ---------- Dark mode ---------- */

@media (prefers-color-scheme: dark) {
  :root {
    --rule: rgb(255 255 255 / 0.08);
  }

  body {
    background-color: hsl(111, 0%, 10%);
    color: hsl(0, 0%, 86%);
  }
}
