@font-face {
  font-family: Newsreader;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: Newsreader;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: Newsreader;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/newsreader-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: Newsreader;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/newsreader-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/figtree-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/figtree-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/figtree-latin-600-normal.woff2") format("woff2");
}

:root {
  --ink: #1a1814;
  --muted: #5c574e;
  --paper: #f3f0e8;
  --paper-2: #e9e4d8;
  --line: #d9d3c5;
  --green: #1d6b45;
  --green-deep: #144e32;
  --font: Figtree, "Segoe UI", sans-serif;
  --serif: Newsreader, Georgia, serif;
  --max: 72rem;
}

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

html { scroll-behavior: smooth; }

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

body::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--green);
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--green-deep);
  text-underline-offset: 0.15em;
}

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

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

::selection {
  background: #d5eadc;
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  z-index: 10;
  text-decoration: none;
}

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

.wrap {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.mast-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 1.5rem;
  padding: 0.9rem 0;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.mast nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.mast nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.mast nav a:hover { color: var(--green); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 6.25rem);
  line-height: 0.9;
  font-weight: 500;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.1;
}

h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
}

h3 a { color: inherit; text-decoration: none; }
h3 a:hover { color: var(--green); }

.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.intro,
.ashby,
.woggle,
.work,
.hosting,
.experience,
.education,
.family,
.certs,
.contact,
.forsale {
  scroll-margin-top: 4.75rem;
}

.intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem 4rem;
  align-items: start;
  padding: 3.25rem 0 2.5rem;
}

.dek {
  margin: 1.25rem 0 0;
  max-width: 28rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--muted);
}

.bio { padding-top: 2.6rem; }

.bio p {
  margin: 0 0 0.9rem;
}

.bio p:last-child { margin-bottom: 0; }

.ashby, .woggle, .work, .hosting, .experience, .education, .certs, .family, .contact, .forsale {
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}

.lede {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  font-size: 1.15rem;
}

.ashby .domain,
.woggle > p .domain {
  display: inline-block;
  margin-top: 0.85rem;
}

.subhead {
  margin: 1.75rem 0 0.75rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.post-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.post-list li { border-top: 1px solid var(--line); }

.post-list a {
  display: block;
  padding: 0.85rem 0.15rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
}

.post-list a:hover { color: var(--green); }

.now-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.now article {
  background: var(--paper-2);
  padding: 0 0 1.45rem;
  overflow: hidden;
}

.now article .role,
.now article h3,
.now article p,
.now article .domain {
  margin-left: 1.4rem;
  margin-right: 1.4rem;
}

.now article .role { margin-top: 1.1rem; }

.shot {
  display: block;
  overflow: hidden;
  line-height: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.now article .shot {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.shot-wide {
  max-width: 46rem;
  margin: 0 0 1.25rem;
}

.after {
  margin: 1.25rem 0 0;
  max-width: 42rem;
}

.role {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.now p:last-child { margin-top: 0.55rem; }

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.work-list article {
  display: grid;
  grid-template-columns: 10.5rem 2.4rem minmax(8.5rem, 12rem) minmax(0, 1fr) auto;
  gap: 0.35rem 1.25rem;
  align-items: center;
  padding: 1rem 0.2rem;
  border-top: 1px solid var(--line);
}

.num {
  margin: 0;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.92rem;
}

.work-list article > p:not(.num) { margin: 0; }

.domain {
  font-weight: 500;
  white-space: nowrap;
}

.contact > p { margin: 0; max-width: 40rem; }

.phone { margin-top: 0.35rem; }

.phone a {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
}

.roles, .study {
  list-style: none;
  margin: 0;
  padding: 0;
}

.roles li {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0.15rem 1.5rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.roles li:last-child { border-bottom: 1px solid var(--line); }

.when {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.roles h3 { font-size: 1.35rem; }

.org { margin: 0.1rem 0 0; font-weight: 600; }

.roles li p:last-child { margin: 0.4rem 0 0; }

.study li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.study li:last-child { border-bottom: 1px solid var(--line); }

.study span {
  font-family: var(--serif);
  font-size: 1.2rem;
}

.study small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
}

.cert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.cert-list li {
  background: var(--paper-2);
  padding: 1rem 1rem 0.9rem;
  min-height: 5.5rem;
}

.cert-list span {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.2;
}

.cert-list small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.sale-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem 1.5rem;
}

.sale-list a {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.site-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
}

.site-groups h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.site-groups ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-groups li { margin: 0 0 0.85rem; }

.site-groups a {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.site-groups span {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.family-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.family-list a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.2;
}

.family-list a:hover { color: var(--green); }

.family-list span {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--muted);
}

.email {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
  color: var(--ink);
  text-decoration-thickness: 1px;
}

.elsewhere {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.elsewhere a { font-weight: 500; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p { margin: 0; }

@media (max-width: 860px) {
  .intro, .now-grid, .family-list, .site-groups { grid-template-columns: 1fr 1fr; }
  .sale-list { grid-template-columns: 1fr 1fr; }
  .intro { gap: 1.5rem; padding-top: 2.25rem; }
  .bio { padding-top: 0; }
  .dek { font-size: 1.2rem; }
  .work-list article {
    grid-template-columns: 2.25rem 1fr;
    gap: 0.2rem 0.9rem;
  }
  .work-list .shot { grid-column: 1 / -1; margin-bottom: 0.35rem; }
  .num { grid-row: auto; }
  .work-list article > p:not(.num),
  .work-list .domain { grid-column: 2; }
  .domain { white-space: normal; }
  .cert-list { grid-template-columns: 1fr 1fr; }
  .roles li { grid-template-columns: 1fr; gap: 0.15rem; }
}

@media (max-width: 560px) {
  .wrap { width: min(calc(100% - 2rem), var(--max)); }
  .mast-inner { flex-direction: column; align-items: flex-start; gap: 0.45rem; }
  .intro, .now-grid, .family-list, .site-groups, .sale-list, .cert-list { grid-template-columns: 1fr; }
  .ashby, .woggle, .work, .hosting, .experience, .education, .certs, .family, .contact, .forsale { padding: 1.75rem 0; }
  .bio { padding-top: 0; }
  h1 { font-size: 3.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .mast { position: static; }
  body::before { print-color-adjust: exact; }
  a { color: var(--ink); }
}
