@import url("fonts/fonts.css");

:root {
  --paper: #f2ecdf;
  --paper-light: #f9f5ec;
  --paper-deep: #e7dfcd;
  --ink: #211f1a;
  --ink-soft: #454036;
  --ink-faint: #4b463e;
  --moss: #3e4934;
  --moss-deep: #3c4834;
  --blue: #2b4a5a;
  --rust: #6b381f;
  --night: #1d1b17;
  --night-ink: #ded6c5;
  --night-soft: #b1a796;
  --mint: #a8d5c2;
  --rule: rgba(33, 31, 26, 0.2);
  --rule-strong: rgba(33, 31, 26, 0.42);
  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Karla", ui-sans-serif, system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --page: min(1180px, calc(100% - 3rem));
}

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

html {
  font-size: 106.25%; /* 17px at the browser default */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(33, 31, 26, 0.018) 0,
      rgba(33, 31, 26, 0.018) 1px,
      transparent 1px,
      transparent 4px
    ),
    url("paper-grain.svg");
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  content: "";
  background: radial-gradient(
    ellipse at 50% 0%,
    transparent 52%,
    rgba(33, 31, 26, 0.055)
  );
}

::selection {
  background: var(--rust);
  color: var(--paper-light);
}

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

a {
  color: var(--moss-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 4px;
}

.wrap {
  width: var(--page);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--paper-light);
  font-size: 0.85rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--paper-light);
}

.masthead {
  padding-top: 1.1rem;
}

.masthead-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.55rem 2rem;
  padding: 0.55rem 0 0.7rem;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.edition {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--rust);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: end;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
  color: var(--moss-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-kicker::before {
  width: 2.6rem;
  height: 1px;
  flex: none;
  content: "";
  background: var(--rust);
}

.hero h1,
.page-hero h1 {
  max-width: 13ch;
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(3.1rem, 7.2vw, 6.3rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: break-word;
}

.hero h1 em,
.page-hero h1 em {
  color: var(--moss-deep);
  font-style: italic;
}

.hero-sub,
.page-lede {
  max-width: 38rem;
  margin: 0 0 1.9rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  align-items: center;
}

.arrow-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding-bottom: 0.18rem;
  border-bottom: 1px solid var(--rust);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.arrow-link::after {
  content: "→";
  color: var(--rust);
  font-size: 1rem;
  line-height: 1;
}

.arrow-link:hover {
  color: var(--rust);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.58rem 1rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper-light);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover {
  border-color: var(--rust);
  color: var(--rust);
}

.button-primary {
  border-color: var(--moss-deep);
  background: var(--moss-deep);
  color: var(--paper-light);
}

.button-primary:hover {
  border-color: var(--rust);
  background: var(--rust);
  color: var(--paper-light);
}

.hero-plate {
  justify-self: end;
  width: min(100%, 320px);
}

.plate-frame {
  position: relative;
  padding: 0.85rem 0.85rem 2.8rem;
  background: var(--paper-light);
  border: 1px solid var(--rule-strong);
  box-shadow: 9px 10px 0 rgba(88, 104, 75, 0.14);
  transform: rotate(1.1deg);
}

.plate-tape {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  width: 5.5rem;
  height: 1.35rem;
  background: rgba(168, 95, 56, 0.2);
  border-right: 1px dashed rgba(33, 31, 26, 0.18);
  border-left: 1px dashed rgba(33, 31, 26, 0.18);
  transform: translateX(-50%) rotate(-2deg);
}

.plate-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(33, 31, 26, 0.16);
  filter: saturate(0.92) contrast(1.03);
  object-fit: cover;
}

.plate-frame figcaption {
  position: absolute;
  right: 1rem;
  bottom: 0.62rem;
  left: 1rem;
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: 1.05rem;
  line-height: 1;
  transform: rotate(-0.5deg);
}

.section {
  padding: clamp(2.8rem, 6vw, 4.8rem) 0;
  border-top: 1px solid var(--rule-strong);
}

.section-head {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem 2rem;
  align-items: start;
  margin-bottom: 2.2rem;
}

.section-no {
  margin: 0;
  color: var(--rust);
  font-family: var(--hand);
  font-size: 1.55rem;
  line-height: 1;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
}

.section-intro {
  max-width: 38rem;
  margin: 0;
  color: var(--ink-soft);
}

.section-note {
  max-width: 46rem;
  margin: 1.6rem 0 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.section-note a {
  color: var(--rust);
}

.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
}

.path {
  padding: 2rem 2.6rem 0.4rem 0;
}

.path + .path {
  padding-right: 0;
  padding-left: 2.6rem;
  border-left: 1px solid var(--rule);
}

.path + .path .path-label {
  color: var(--blue);
}

.path + .path .arrow-link {
  border-color: var(--blue);
}

.path + .path .arrow-link::after {
  color: var(--blue);
}

.path-label {
  margin: 0;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.path h3 {
  margin: 0.6rem 0 0.9rem;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.03;
}

.path p {
  max-width: 30rem;
  margin: 0;
  color: var(--ink-soft);
}

.path ul {
  margin: 1.2rem 0 1.6rem;
  padding: 0;
  list-style: none;
}

.path li {
  position: relative;
  margin-bottom: 0.35rem;
  padding-left: 1rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.path li::before {
  position: absolute;
  left: 0;
  color: var(--rust);
  content: "·";
  font-weight: 700;
}

.notes {
  border-top: 1px solid var(--rule);
}

.note {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 2rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--rule);
}

.note-meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.note h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.note h3 a {
  color: inherit;
  text-decoration-thickness: 1.5px;
}

.note h3 a:hover {
  color: var(--rust);
}

.note p {
  max-width: 47rem;
  margin: 0;
  color: var(--ink-soft);
}

.note .outcome {
  display: block;
  margin-top: 0.55rem;
  color: var(--moss-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.night {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background-color: var(--night);
  background-image: url("paper-grain.svg");
  color: var(--night-ink);
}

.night .section-head {
  margin-bottom: 2.4rem;
}

.night .section-no {
  color: var(--mint);
}

.night .section-head h2 {
  color: var(--night-ink);
}

.night .section-intro {
  color: var(--night-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.about-quote {
  margin: 0;
  color: var(--night-ink);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3.2vw, 2.7rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

.about-quote::before {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--mint);
  content: "“";
  font-family: var(--serif);
  font-size: 3.4rem;
  font-style: normal;
  line-height: 0.6;
}

.about-copy p {
  max-width: 34rem;
  margin: 0 0 1rem;
  color: var(--night-soft);
}

.about-copy .hand,
.hand {
  margin: 1.5rem 0;
  color: var(--mint);
  font-family: var(--hand);
  font-size: 1.55rem;
  line-height: 1.1;
}

.night .arrow-link {
  border-color: var(--mint);
  color: var(--night-ink);
}

.night .arrow-link::after {
  color: var(--mint);
}

.night .arrow-link:hover {
  color: var(--mint);
}

.night .button {
  border-color: var(--mint);
  background: transparent;
  color: var(--night-ink);
}

.night .button:hover {
  background: var(--mint);
  color: var(--night);
}

.footer {
  padding: 2.4rem 0 3.2rem;
  border-top: 1px solid var(--rule-strong);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.footer-kicker {
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-email {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.footer-email:hover {
  color: var(--rust);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--rust);
}

.footer-links .footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--ink-soft);
}

.footer-links .footer-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.footer-links .footer-icon:hover {
  color: var(--rust);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
}

.footer-bottom p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.colophon {
  font-family: var(--hand);
  font-size: 1.1rem !important;
  letter-spacing: 0 !important;
}

.colophon a {
  color: inherit;
  text-decoration-color: var(--rust);
  text-underline-offset: 0.18em;
}

.colophon a:hover {
  color: var(--rust);
}

.page-hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.page-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.9rem, 6.4vw, 5.5rem);
}

.page-hero .page-lede {
  margin-bottom: 1.6rem;
}

.consulting-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.research-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero-photo {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
  margin: 0.35rem 0 0;
  padding: 0.7rem 0.7rem 0.5rem;
  background-color: var(--paper-light);
  background-image: url("paper-grain.svg");
  border: 1px solid var(--rule-strong);
  box-shadow: 9px 10px 0 rgba(88, 104, 75, 0.14);
  transform: rotate(-1deg);
}

.hero-photo::before {
  position: absolute;
  top: -0.6rem;
  left: 50%;
  width: 5.5rem;
  height: 1.35rem;
  content: "";
  background: rgba(168, 95, 56, 0.2);
  border-right: 1px dashed rgba(33, 31, 26, 0.18);
  border-left: 1px dashed rgba(33, 31, 26, 0.18);
  transform: translateX(-50%) rotate(2deg);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  filter: saturate(0.92);
}

.hero-photo figcaption {
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: 1.25rem;
  text-align: center;
  transform: rotate(-1.5deg);
}

.hero-definition {
  position: relative;
  margin: 0.35rem 0 0;
  padding: 1.5rem 1.6rem 1.7rem;
  background-color: var(--paper-light);
  background-image: url("paper-grain.svg");
  border: 1px solid var(--rule-strong);
  box-shadow: 9px 10px 0 rgba(88, 104, 75, 0.14);
  transform: rotate(0.8deg);
}

.hero-definition::before {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  width: 5.5rem;
  height: 1.35rem;
  content: "";
  background: rgba(168, 95, 56, 0.2);
  border-right: 1px dashed rgba(33, 31, 26, 0.18);
  border-left: 1px dashed rgba(33, 31, 26, 0.18);
  transform: translateX(-50%) rotate(-2deg);
}

.definition-term {
  margin: 0 0 0.9rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.definition-term dfn {
  font-style: italic;
}

.definition-term span {
  color: var(--rust);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.definition-senses {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sense;
}

.definition-senses li {
  position: relative;
  margin: 0;
  padding: 0.7rem 0 0.7rem 1.55rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.definition-senses li::before {
  position: absolute;
  top: 0.72rem;
  left: 0;
  counter-increment: sense;
  content: counter(sense) ".";
  color: var(--rust);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
}

.definition-senses .definition-practice {
  color: var(--ink);
}

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
}

.service {
  padding: 1.6rem 2.2rem 1.7rem 0;
  border-bottom: 1px solid var(--rule);
}

.service:nth-child(even) {
  padding-right: 0;
  padding-left: 2.2rem;
  border-left: 1px solid var(--rule);
}

.service-list > .service:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  padding-right: 0;
}

.service h3 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.service p {
  max-width: 32rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.service .service-tag {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.archive-list li {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1.5rem 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}

.archive-meta {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.archive-list h3 {
  margin: 0 0 0.25rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.archive-list h3 a {
  color: var(--ink);
  text-decoration: none;
}

.archive-list h3 a:hover {
  color: var(--rust);
}

.archive-list h4 {
  margin: 0 0 0.25rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.archive-list h4 a {
  color: var(--ink);
  text-decoration: none;
}

.archive-list h4 a:hover {
  color: var(--rust);
}

.pub-group + .pub-group {
  margin-top: 2.6rem;
}

.section-note + .pub-group {
  margin-top: 2.6rem;
}

.pub-group-title {
  margin: 0 0 0.6rem;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.archive-list p {
  max-width: 46rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.archive-list .pub-cite {
  margin: 0.15rem 0 0.45rem;
  font-size: 0.9rem;
}

.prose {
  max-width: 54rem;
  margin-inline: auto;
  padding-bottom: 5rem;
}

.prose h2 {
  margin: 2.8rem 0 0.9rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.prose h3 {
  margin: 1.8rem 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.2rem;
}

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

.prose blockquote {
  margin: 1.4rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 2px solid var(--rust);
}

.prose blockquote p {
  margin: 0 0 0.8rem;
  color: var(--ink);
  font-size: 0.96rem;
}

.prose a {
  font-weight: 600;
}

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

.image {
  margin: 2rem 0;
  padding: 1rem;
  border: 1px solid var(--rule);
  background: var(--paper-light);
}

.image img {
  display: block;
  width: 100%;
}

.image div {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.resume-page {
  padding-bottom: 4rem;
}

.resume-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem;
}

.resume-toolbar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.resume-toolbar .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.resume {
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--rule-strong);
  background: var(--paper-light);
  box-shadow: 10px 11px 0 rgba(88, 104, 75, 0.13);
}

.resume-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid var(--ink);
}

.resume-header h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.resume-title {
  margin: 0.4rem 0 0;
  color: var(--moss-deep);
  font-size: 0.95rem;
  font-weight: 700;
}

.resume-contact {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-align: right;
}

.resume-contact li {
  margin-bottom: 0.2rem;
}

.resume-section {
  margin-top: 1.6rem;
}

.resume-section h2 {
  margin: 0 0 0.7rem;
  color: var(--rust);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.resume-section > p {
  margin: 0 0 0.6rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.resume-section ul {
  margin: 0;
  padding-left: 1.1rem;
}

.resume-section li {
  margin-bottom: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.resume-role {
  margin-bottom: 1rem;
}

.resume-role:last-child {
  margin-bottom: 0;
}

.resume-role-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.resume-role-head h3 {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.resume-role-head span {
  color: var(--ink-faint);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.resume-role-org {
  margin: 0.1rem 0 0.4rem;
  color: var(--moss-deep);
  font-size: 0.88rem;
  font-weight: 600;
}

.resume-inline {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 0.4rem 1rem;
  font-size: 0.92rem;
}

.resume-inline dt {
  color: var(--ink-faint);
  font-weight: 700;
}

.resume-inline dd {
  margin: 0;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  html {
    font-size: 100%; /* 16px at the browser default */
  }

  .masthead-top {
    flex-wrap: wrap;
    gap: 0.55rem 2rem;
  }

  .hero,
  .consulting-hero,
  .research-hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2.5rem;
  }

  .hero-photo {
    justify-self: start;
    width: min(72%, 300px);
    margin-top: 0;
  }

  .hero-plate {
    justify-self: start;
    width: min(72%, 300px);
  }

  .hero-definition {
    max-width: 30rem;
    margin-top: 0;
    transform: rotate(0.5deg);
  }

  .section-head {
    grid-template-columns: 3.8rem minmax(0, 1fr);
    gap: 0.7rem 1.2rem;
  }

  .paths,
  .service-list {
    grid-template-columns: 1fr;
  }

  .path {
    padding: 1.6rem 0;
  }

  .path + .path {
    padding: 1.6rem 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .service {
    padding: 1.5rem 0;
  }

  .service:nth-child(even) {
    padding: 1.5rem 0;
    border-left: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .resume-header {
    flex-direction: column;
    gap: 1rem;
  }

  .resume-contact {
    text-align: left;
  }

  .resume-inline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: calc(100% - 2rem);
  }

  .hero {
    padding-top: 2.6rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.6rem, 12vw, 3.8rem);
  }

  .hero-plate {
    width: min(88%, 290px);
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .section-no {
    font-size: 1.35rem;
  }

  .note {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 1.4rem 0;
  }

  .archive-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.35rem;
  }

  .resume-toolbar {
    padding-top: 2.5rem;
  }

  .resume {
    padding: 1.2rem;
    box-shadow: 6px 7px 0 rgba(88, 104, 75, 0.13);
  }

  .resume-role-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.1rem;
  }
}

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

  .button {
    transition: none;
  }
}

@media print {
  @page {
    size: Letter;
    margin: 0.45in;
  }

  body {
    background: #fff;
    color: #111;
    font-family: var(--sans);
    font-size: 9.2pt;
    line-height: 1.27;
  }

  body::before {
    display: none;
  }

  .masthead,
  .footer,
  .resume-toolbar,
  .skip-link {
    display: none !important;
  }

  .wrap {
    width: 100%;
  }

  .resume-page {
    padding: 0;
  }

  .resume {
    max-width: none;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: #fff;
  }

  .resume-header {
    flex-direction: row;
    align-items: flex-start;
    padding-bottom: 0.55rem;
  }

  .resume-contact {
    text-align: right;
  }

  .resume-header h1 {
    font-size: 22pt;
  }

  .resume-section {
    margin-top: 0.65rem;
  }

  .resume-section h2 {
    margin-bottom: 0.35rem;
    break-after: avoid;
  }

  .resume-section ul {
    padding-left: 0.9rem;
  }

  .resume-section li {
    margin-bottom: 0.08rem;
  }

  .resume-inline {
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0.12rem 0.8rem;
    break-inside: avoid;
  }

  .resume-role {
    margin-bottom: 0.45rem;
    break-inside: avoid;
  }

  .resume-section:last-child {
    break-inside: avoid;
  }

  .resume-role-org {
    margin-bottom: 0.2rem;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}

/* Prototype style tile */

.prototype-bar {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  background: rgba(168, 95, 56, 0.08);
}

.prototype-bar p {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prototype-bar a {
  color: var(--rust);
  text-decoration: none;
}

.tile-header {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.tile-header h1 {
  max-width: 18ch;
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.tile-header p {
  max-width: 42rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.tile {
  padding: 2.2rem 0;
  border-top: 1px solid var(--rule-strong);
}

.tile h2 {
  margin: 0 0 1.4rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.swatch {
  border: 1px solid var(--rule);
}

.swatch-color {
  height: 7rem;
  border-bottom: 1px solid var(--rule);
}

.swatch-info {
  padding: 0.7rem 0.8rem;
}

.swatch-info strong {
  display: block;
  font-size: 0.82rem;
}

.swatch-info span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.type-specimen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.type-display {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.type-display em {
  color: var(--moss-deep);
}

.type-body {
  max-width: 30rem;
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.type-hand {
  margin: 0;
  color: var(--rust);
  font-family: var(--hand);
  font-size: 1.6rem;
  line-height: 1.1;
}

.labels-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: center;
  margin-top: 1.5rem;
}

.sample-note {
  max-width: 48rem;
}

.tile-dark {
  margin-top: 1rem;
  padding: 2rem;
  background: var(--night);
  color: var(--night-ink);
}

.tile-dark .about-quote {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.tile-dark p {
  color: var(--night-soft);
}

.tile-dark .hand {
  color: var(--mint);
  font-family: var(--hand);
  font-size: 1.4rem;
}

@media (max-width: 900px) {
  .type-specimen {
    grid-template-columns: 1fr;
  }

  .swatches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .swatches {
    grid-template-columns: 1fr;
  }
}
