:root {
  color-scheme: light;
  --color-bg: #f3f2f2;
  --color-surface-card: #ffffff;
  --color-text: #201f1d;
  --color-muted: rgba(32, 31, 29, 0.68);
  --color-muted-body: rgba(32, 31, 29, 0.85);
  --color-accent: #7d5411;
  --color-divider: rgba(32, 31, 29, 0.16);

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Lora", Georgia, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 84ch;
  --row-pad: 20px;

  /* type scale — every font-size in the page maps to one of these six steps.
     Six rather than five: the original five-step scale forced sidebar detail
     text up and nav/meta text down, which cost the sidebar name its relative
     dominance and made titles read heavier than intended. */
  --fs-display: 30px;
  /* sidebar name */
  --fs-heading: 18px;
  /* section labels, role/row titles */
  --fs-body: 15px;
  /* paragraphs, descriptions */
  --fs-sub: 14px;
  /* nav */
  --fs-small: 13px;
  /* uppercase labels, contact list, education degrees, tags */
  --fs-meta: 12px;
  /* education schools, certification issuers */
  --fs-micro: 11px;
  /* dates, years */

  /* spacing scale — every margin/padding/gap maps to one of these steps,
     except the nav's 28px item gap (documented at .nav) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 20px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 40px;
  --sp-8: 56px;
  --sp-9: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --color-bg: #2d2b2b;
    --color-surface-card: #353333;
    --color-text: #f8f4f4;
    --color-muted: #9b9797;
    --color-muted-body: #bab6b6;
    --color-accent: #e1ad66;
    --color-divider: #444141;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #2d2b2b;
  --color-surface-card: #353333;
  --color-text: #f8f4f4;
  --color-muted: #9b9797;
  --color-muted-body: #bab6b6;
  --color-accent: #e1ad66;
  --color-divider: #444141;
}

:root[data-theme="light"] {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-size: var(--fs-body);
  /* The design sets a 1.55 body leading globally. Without it, browser-default
     line boxes made descriptions read tighter (and so visually darker) than
     the mock, and squeezed the gap under row titles. */
  line-height: 1.55;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  transition: background 0.2s, color 0.2s;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0;
}

a {
  color: inherit;
}

/* theme toggle */
.theme-toggle {
  position: fixed;
  top: var(--sp-5);
  right: 48px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.theme-toggle:hover {
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-text) 6%, transparent);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
  display: block;
}

/* mobile header — replaces the nav bar once the layout stacks. Carries the name,
   so the sidebar's identity block is hidden at the same breakpoint. */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 18px var(--sp-4);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-bg);
}

.mobile-header-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-display);
  line-height: 1.1;
  letter-spacing: -0.45px;
  margin-bottom: var(--sp-1);
}

.mobile-header-role {
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.menu-toggle {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 1px solid var(--color-divider);
  border-radius: 4px;
  background: transparent;
  color: var(--color-accent);
  cursor: pointer;
}

.menu-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: var(--sp-2) var(--sp-4) var(--sp-3);
  border-bottom: 1px solid var(--color-divider);
  font-size: 15px;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--color-accent);
}

/* nav */
/* The 28px item gap sits between --sp-5 and --sp-6 and is deliberate: it
   matches the design's flat nav rhythm. Using the same value within and
   between groups makes the two .nav-groups read as one evenly spaced row
   while keeping the sections/external-links split in the markup.
   The 120px right padding clears the fixed .theme-toggle. */
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  padding: var(--sp-5) 120px var(--sp-5) 48px;
  max-width: 1400px;
  margin: 0 auto;
  font-size: var(--fs-sub);
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  color: var(--color-accent);
}

.nav a:hover {
  text-decoration: underline;
}

/* layout */
.layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px 80px;
  display: grid;
  grid-template-columns: 320px 1fr;
  /* The intro is a sibling of <main> rather than its first child so the mobile
     layout can lead with it, above the sidebar's contact/skills/education. */
  grid-template-areas:
    "sidebar intro"
    "sidebar main";
  column-gap: var(--sp-9);
  row-gap: 0;
  align-items: start;
}

.sidebar {
  grid-area: sidebar;
}

.intro {
  grid-area: intro;
}

main {
  grid-area: main;
  min-width: 0;
}

.sidebar {
  border-right: 1px solid var(--color-divider);
  padding: var(--sp-2) var(--sp-7) var(--sp-7) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  position: sticky;
  top: var(--sp-5);
}

.sidebar h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.45px;
  margin-bottom: var(--sp-2);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-sub);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1.5;
}

.label {
  font-family: var(--font-body);
  font-size: var(--fs-sub);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-3);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: var(--fs-sub);
  font-weight: 400;
  color: var(--color-muted-body);
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  color: var(--color-muted-body);
}

.contact-list a:hover {
  color: var(--color-accent);
}

.contact-icon {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--color-muted);
}

.contact-list a:hover .contact-icon {
  color: var(--color-accent);
}

.sidebar-block {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--sp-5);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.tag {
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: 400;
  padding: 4px 11px;
  border-radius: 3px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.edu-item {
  margin-bottom: var(--sp-3);
}

.edu-degree {
  font-size: var(--fs-sub);
  font-weight: 600;
}

.cert-name {
  font-weight: 400;
}

.edu-meta {
  font-size: var(--fs-small);
  color: var(--color-muted);
  margin-top: var(--sp-1);
}

/* main content */
.intro {
  padding: var(--sp-2) 0 var(--sp-7);
}

.intro .section-label {
  margin-bottom: var(--sp-3);
}

.intro p {
  font-size: var(--fs-body);
  line-height: 1.65;
  max-width: var(--measure);
  color: var(--color-muted-body);
  margin: 0;
}

section {
  padding: 0 0 var(--sp-8);
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--fs-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-5);
}

.row-list {
  display: flex;
  flex-direction: column;
}

/* career roles (click-to-expand accordion, per the design) */
.role {
  border-top: 1px solid var(--color-divider);
}

.role-last {
  border-bottom: 1px solid var(--color-divider);
}

.role-head {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "chevron title meta"
    ".       desc  meta";
  column-gap: 10px;
  row-gap: 4px;
  align-items: baseline;
  margin: 0 calc(-1 * var(--sp-3));
  padding: var(--row-pad) var(--sp-3);
  background: transparent;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

/* Hover-only so the tint can't stick to a tapped row on touch. */
@media (hover: hover) {
  .role-head:hover {
    background: color-mix(in srgb, var(--color-text) 5%, transparent);
  }
}

.role-head:focus-visible {
  background: color-mix(in srgb, var(--color-text) 5%, transparent);
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.role-chevron {
  grid-area: chevron;
  flex: none;
  width: 12px;
  height: 12px;
  position: relative;
  top: 1px;
  color: var(--color-accent);
  transition: transform 0.15s ease;
}

.role-head[aria-expanded="true"] .role-chevron {
  transform: rotate(90deg);
}

.role-title {
  grid-area: title;
  font-weight: 600;
  font-size: var(--fs-heading);
  color: var(--color-text);
}

.role-desc {
  grid-area: desc;
  font-size: var(--fs-sub);
  color: var(--color-muted-body);
}

.role-meta {
  grid-area: meta;
  align-self: start;
  text-align: right;
  white-space: nowrap;
  padding-left: var(--sp-4);
}

.role-company {
  color: var(--color-text);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

@media (hover: hover) {
  .role-head:hover .role-company {
    color: var(--color-accent);
  }
}

.role-years {
  color: var(--color-muted);
  font-size: var(--fs-micro);
  font-variant-numeric: tabular-nums;
  margin-top: 3px;
  opacity: 0.85;
}

/* Accordion panel: collapsed by default, height animated via a grid row so
   the content can size itself instead of needing a hard-coded max-height. */
.role-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease;
}

.role[data-open="true"] .role-body {
  grid-template-rows: 1fr;
}

.role-body-inner {
  overflow: hidden;
  padding-left: 22px;
}

.role[data-open="true"] .role-body-inner {
  padding-bottom: 22px;
}

@media (prefers-reduced-motion: reduce) {
  .role-body,
  .role-chevron {
    transition: none;
  }
}

.highlights-label {
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-2);
}

.highlight {
  font-size: var(--fs-sub);
  color: var(--color-muted-body);
  padding: var(--sp-1) 0;
  max-width: var(--measure);
}

/* projects / writing rows */
.row-item {
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--row-pad) 0;
  border-top: 1px solid var(--color-divider);
}

.row-item::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--sp-3));
  z-index: -1;
  border-radius: 8px;
  background: transparent;
  transition: background 0.15s ease;
}

@media (hover: hover) {
  .row-item:hover::before {
    background: color-mix(in srgb, var(--color-text) 5%, transparent);
  }
}

.row-item:focus-within::before {
  background: color-mix(in srgb, var(--color-text) 5%, transparent);
}

.row-item-last {
  border-bottom: 1px solid var(--color-divider);
}

.row-main {
  flex: 1 1 auto;
  min-width: 0;
}

/* Writing rows keep the date on the title's line so it never reads as part of
   the row below once the layout stacks. */
.row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
}

.row-title {
  font-weight: 600;
  font-size: var(--fs-heading);
  color: var(--color-text);
}

.row-blurb {
  font-size: var(--fs-sub);
  margin-top: 4px;
  color: var(--color-muted-body);
  max-width: var(--measure);
}

.row-link {
  font-size: var(--fs-small);
  color: var(--color-accent);
  white-space: nowrap;
  padding-left: var(--sp-4);
  text-decoration: none;
}

.row-link:hover {
  text-decoration: underline;
}

.row-item-link {
  text-decoration: none;
  cursor: pointer;
}

.row-date {
  font-size: var(--fs-micro);
  color: var(--color-muted);
  white-space: nowrap;
  padding-left: var(--sp-4);
  font-variant-numeric: tabular-nums;
}

.all-posts {
  margin-top: var(--sp-4);
}

.all-posts a {
  font-size: var(--fs-small);
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.all-posts a:hover {
  text-decoration: underline;
}

/* dual-pillar grid (Option 3 two-card layout for writing & projects) */
.dual-pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-8);
}

.pillar-card {
  position: relative;
  border-radius: 10px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  scroll-margin-top: var(--sp-6);
}

/* Pillar 1: Featured Writer / Publication Card (Lighter white hue top washing into warm accent gradient) */
.pillar-card.featured-writer {
  background: linear-gradient(
    170deg,
    var(--color-surface-card) 0%,
    color-mix(in srgb, var(--color-surface-card) 88%, var(--color-bg)) 45%,
    color-mix(in srgb, var(--color-accent) 8.5%, var(--color-surface-card)) 100%
  );
  border: 1px solid color-mix(in srgb, var(--color-accent) 28%, var(--color-divider));
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03),
    0 4px 14px color-mix(in srgb, var(--color-accent) 5%, transparent);
}

@media (hover: hover) {
  .pillar-card.featured-writer:hover {
    border-color: color-mix(in srgb, var(--color-accent) 60%, var(--color-divider));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--color-accent) 12%, transparent),
      0 2px 6px rgba(0, 0, 0, 0.04);
  }
}

.featured-writer .pillar-kicker {
  color: var(--color-accent);
}

.featured-writer .pillar-kicker::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.85;
}

.featured-writer .pillar-title em {
  font-style: italic;
  font-weight: 400;
}

.featured-writer .pillar-meta {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-accent) 22%, transparent);
  padding: 1px 7px;
  border-radius: 3px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

/* Pillar 2: Engineering & Systems Card (Architectural studio surface, crisp & lighter than page bg) */
.pillar-card.card-engineering {
  background: var(--color-surface-card);
  border: 1px solid var(--color-divider);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

@media (hover: hover) {
  .pillar-card.card-engineering:hover {
    border-color: color-mix(in srgb, var(--color-text) 32%, var(--color-divider));
    transform: translateY(-2px);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--color-text) 6%, transparent),
      0 2px 5px rgba(0, 0, 0, 0.03);
  }
}

.card-engineering .pillar-kicker {
  color: var(--color-muted);
}

.card-engineering .pillar-kicker::before {
  content: "›_";
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent);
}

.card-engineering .pillar-meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--color-muted-body);
  background: color-mix(in srgb, var(--color-text) 4%, transparent);
  border: 1px solid var(--color-divider);
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0;
}

.pillar-header {
  margin-bottom: var(--sp-2);
}

.pillar-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0;
}

.pillar-content {
  font-size: var(--fs-sub);
  color: var(--color-muted-body);
  line-height: 1.5;
  margin: 4px 0 16px;
}

.pillar-list-container {
  position: relative;
  margin-bottom: var(--sp-2);
}

/* Subtle bottom fade wash to indicate content continues below */
.pillar-list-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 6px;
  height: 28px;
  background: linear-gradient(to bottom, transparent, var(--color-surface-card));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.featured-writer .pillar-list-container::after {
  background: linear-gradient(
    to bottom,
    transparent,
    color-mix(in srgb, var(--color-accent) 8.5%, var(--color-surface-card))
  );
}

.pillar-list-container[data-at-bottom="true"]::after {
  opacity: 0;
}

/* Floating scroll indicator pill */
.pillar-scroll-cue {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: var(--color-surface-card);
  border: 1px solid color-mix(in srgb, var(--color-accent) 35%, var(--color-divider));
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.25s ease, transform 0.2s ease, background 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.pillar-scroll-cue:hover {
  background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface-card));
  border-color: var(--color-accent);
  transform: translateX(-50%) translateY(1px);
}

.scroll-cue-icon {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.pillar-scroll-cue:hover .scroll-cue-icon {
  transform: translateY(2px);
}

.pillar-list-container[data-at-bottom="true"] .pillar-scroll-cue {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
}

.pillar-list {
  list-style: none;
  padding: 0 6px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-height: 218px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--color-accent) 35%, transparent) transparent;
}

.pillar-list::-webkit-scrollbar {
  width: 4px;
}

.pillar-list::-webkit-scrollbar-track {
  background: transparent;
}

.pillar-list::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--color-accent) 30%, transparent);
  border-radius: 4px;
}

.pillar-list::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

.pillar-list-item {
  border-bottom: 1px solid color-mix(in srgb, var(--color-divider) 65%, transparent);
  padding-bottom: 10px;
}

.pillar-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pillar-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
}

.pillar-item-head a {
  font-weight: 500;
  font-size: var(--fs-body);
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.pillar-item-head a:hover {
  color: var(--color-accent);
}

.pillar-item-blurb {
  font-size: 12.5px;
  color: var(--color-muted);
  line-height: 1.45;
  margin-top: 3px;
}

.pillar-footer {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid color-mix(in srgb, var(--color-divider) 80%, transparent);
}

.pillar-link {
  font-size: var(--fs-small);
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s ease, opacity 0.15s ease;
}

.pillar-link:hover {
  gap: 7px;
  text-decoration: underline;
}

#career {
  scroll-margin-top: var(--sp-6);
}

/* responsive */

/* Stacked layout. The nav bar gives way to the mobile header's menu. */
@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .mobile-menu:not([hidden]) {
    display: flex;
  }

  .theme-toggle {
    top: auto;
    bottom: var(--sp-4);
    right: var(--sp-6);
  }

  .layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "sidebar"
      "main";
    padding: var(--sp-5) var(--sp-6) 60px;
    row-gap: var(--sp-6);
  }

  /* Education and Certifications sit side by side; everything else spans. */
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--sp-4);
    row-gap: var(--sp-6);
    border-right: none;
    border-bottom: 1px solid var(--color-divider);
    padding: 0 0 var(--sp-6);
    position: static;
  }

  .sidebar > :not(.sidebar-block--half) {
    grid-column: 1 / -1;
  }

  .sidebar-identity {
    display: none;
  }

  .intro {
    padding: 0;
  }

  /* Company and years move above the description, indented under the title. */
  .role-head {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "chevron title"
      ".       meta"
      ".       desc";
    row-gap: 6px;
  }

  .role-meta {
    text-align: left;
    padding-left: 0;
    display: flex;
    align-items: baseline;
    gap: var(--sp-2);
  }

  .role-years {
    margin-top: 0;
  }

  .role-years::before {
    content: "· ";
    margin-right: 2px;
  }

  .row-item {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-2);
  }

  .row-link,
  .row-date {
    padding-left: 0;
  }

  .row-link {
    align-self: flex-start;
  }

  .dual-pillar-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
}

/* Phone: one step down the type scale, tighter gutters. */
@media (max-width: 560px) {
  :root {
    --fs-display: 28px;
    --fs-heading: 16px;
    --fs-sub: 13px;
    --row-pad: 18px;
  }

  .mobile-header,
  .mobile-menu {
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
  }

  .layout {
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
  }

  .theme-toggle {
    right: var(--sp-4);
  }

  .section-label {
    margin-bottom: 18px;
  }
}
