/* Aditi Vasa — portfolio. Black, white and grey only. */

:root {
  --board: #D9D9D5;
  --board-dots: #C4C4BF;
  --paper: #FBFBF8;
  --paper-grey: #E8E8E4;
  --dark-card: #1B1B1B;
  --ink: #000000;
  --soft-ink: #4B4B48;
  --page: #F3F3F0;
  --hairline: #CFCFCA;

  /* page-below colours (flip in dark mode; notes don't) */
  --page-ink: var(--ink);
  --page-soft: var(--soft-ink);
  --board-ink: var(--soft-ink);

  --hand: "Kalam", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  --sans: "Familjen Grotesk", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  --shadow:
    0 1px 1px rgba(0, 0, 0, .10),
    0 3px 6px rgba(0, 0, 0, .08),
    0 10px 22px rgba(0, 0, 0, .08);
  --shadow-dark-card:
    0 1px 1px rgba(0, 0, 0, .18),
    0 6px 12px rgba(0, 0, 0, .14),
    0 18px 36px rgba(0, 0, 0, .12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --board: #232322;
    --board-dots: #30302E;
    --page: #161615;
    --hairline: #3A3A38;
    --page-ink: #F3F3F0;
    --page-soft: #B9B9B4;
    --board-ink: #C9C9C4;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--page-ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}

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

a { color: inherit; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 8px 14px;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.skip:focus { top: 16px; }

/* ---------------------------------------------------------------- board */

.board {
  position: relative;
  height: 270vh;
  background: var(--board);
}

.stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background-color: var(--board);
  background-image: radial-gradient(var(--board-dots) 1.3px, transparent 1.6px);
  background-size: 22px 22px;
  background-position: 11px 11px;
}

/* Fallback when the tidy grid can't fit the stage (e.g. 200% zoom) and for reduced motion:
   the board becomes a normal block, drawn in its tidy state. */
.board.is-static { height: auto; }
.board.is-static .stage { position: relative; height: var(--stage-h, 100svh); }

.svh-probe {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 100svh;
  visibility: hidden;
  pointer-events: none;
}

.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 500;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 48px);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--page-ink);
}
.nav ul {
  display: flex;
  gap: clamp(14px, 2.4vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  text-decoration: none;
  padding: 6px 0;
}
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.brand { font-weight: 700; }

.notes { position: absolute; inset: 0; }
.scraps { display: contents; }

/* Notes are placed from their centre. Without JS they sit at their messy positions;
   main.js takes over with transforms only. */
.note {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1px);
  height: calc(var(--h) * 1px);
  margin: 0;
  transform: translate(-50%, -50%) rotate(calc(var(--r) * 1deg));
  transform-origin: 0 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.js .note {
  left: 0;
  top: 0;
  transform: none;
  visibility: hidden; /* until the first layout pass */
}
.js .is-ready .note { visibility: visible; }

.note.grey { background: var(--paper-grey); }

/* tape */
.note::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 72px;
  height: 20px;
  margin-left: -36px;
  background: rgba(205, 205, 200, .62);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset;
  transform: rotate(-2deg);
  pointer-events: none;
}
.card:nth-of-type(3n)::before { transform: rotate(3deg); margin-left: -30px; }
.card:nth-of-type(4n)::before { transform: rotate(-4deg); margin-left: -42px; }
.scrap:nth-of-type(odd)::before { transform: rotate(3deg); }

/* scraps: deliberately quieter than the cards — smaller type, lighter shadow, thinner tape */
.scrap {
  max-width: 190px;
  padding: 12px 12px 10px;
  font-family: var(--hand);
  font-size: 15px;
  line-height: 20px;
  text-wrap: balance;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 2px 6px rgba(0, 0, 0, .06);
}
.scrap::before {
  top: -5px;
  width: 46px;
  height: 11px;
  margin-left: -23px;
  background: rgba(205, 205, 200, .5);
}
.scrap del {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 17px;
  color: var(--soft-ink);
  text-decoration-thickness: 1px;
}
.scrap ins { display: block; text-decoration: none; }

/* sorted cards */
.card { text-decoration: none; }
a.card { cursor: pointer; }
a.card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.headline {
  padding: 22px;
  background: var(--dark-card);
  color: var(--paper);
  box-shadow: var(--shadow-dark-card);
}
.headline::before { background: rgba(205, 205, 200, .45); }
.headline h1 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.headline p {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 22px;
  color: #D8D8D4;
}

.polaroid {
  padding: 12px 12px 0;
  background: #FFFFFF;
}
.polaroid img {
  width: 176px;
  height: 176px;
  object-fit: cover;
  object-position: 50% 28%;
}
.polaroid figcaption {
  font-family: var(--hand);
  font-size: 20px;
  line-height: 48px;
  text-align: center;
}

.paper { padding: 18px 18px 16px; }
.hand {
  font-family: var(--hand);
  font-size: 20px;
  line-height: 28px;
}
.work-card strong, .idea-card strong {
  display: block;
  font-family: var(--sans);
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
}
.work-card .line, .idea-card .line {
  display: block;
  margin-top: 6px;
  font-family: var(--hand);
  font-size: 16px;
  line-height: 22px;
}
.work-card .more {
  position: absolute;
  left: 18px;
  bottom: 14px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.contact-card {
  display: flex;
  align-items: center;
  padding: 12px 18px 10px;
  font-size: 19px;
  line-height: 24px;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}
a.card:hover { box-shadow: var(--shadow), 0 0 0 1.5px var(--ink); }

/* column labels: handwritten, on a board-coloured tag so a scrap behind can't muddy them */
.col-label {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  height: 28px;
  padding: 0 10px;
  font-family: var(--hand);
  font-size: 22px;
  line-height: 30px;
  color: var(--ink);
  background: var(--board);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
  transform-origin: 0 0;
  opacity: 0;
  z-index: 90;
  pointer-events: none;
  white-space: nowrap;
}
@media (prefers-color-scheme: dark) {
  .headline { box-shadow: var(--shadow-dark-card), 0 0 0 1px #3A3A38; }
  .col-label { color: var(--page-ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
}

.hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 450;
  margin: 0;
  padding: 2px 12px;
  transform: translateX(-50%);
  font-family: var(--hand);
  font-size: 20px;
  line-height: 28px;
  color: var(--board-ink);
  background: var(--board);
  white-space: nowrap;
  pointer-events: none;
}

/* ------------------------------------------------------ mobile card set */

@media (max-width: 759.98px) {
  .nav { height: 56px; font-size: 15px; }
  .nav ul { gap: 12px; }
  .nav .brand { font-size: 15px; }

  .note {
    left: calc(var(--mx) * 1%);
    top: calc(var(--my) * 1%);
    width: calc(var(--mw) * 1px);
    height: calc(var(--mh) * 1px);
    transform: translate(-50%, -50%) rotate(calc(var(--mr) * 1deg));
  }
  .desk-only { display: none; }
  .col-label { display: none; }

  .headline { padding: 14px; }
  .headline h1 { font-size: 20px; line-height: 24px; margin-bottom: 8px; }
  .headline p { font-size: 13px; line-height: 18px; }

  .polaroid { padding: 10px 10px 0; }
  .polaroid img { width: 120px; height: 120px; }
  .polaroid figcaption { font-size: 16px; line-height: 36px; }

  .paper { padding: 12px 12px 10px; }
  .hand { font-size: 15px; line-height: 21px; }
  .work-card strong, .idea-card strong { font-size: 15px; line-height: 20px; }
  .work-card .line, .idea-card .line { margin-top: 4px; font-size: 13px; line-height: 18px; }
  .work-card .more { left: 12px; bottom: 10px; font-size: 13px; line-height: 18px; text-underline-offset: 4px; }
  .contact-card { padding: 8px 12px; font-size: 14px; line-height: 19px; text-underline-offset: 4px; overflow-wrap: anywhere; }

  .card::before { width: 52px; height: 16px; margin-left: -26px; top: -6px; }
  .hint { font-size: 17px; bottom: 8px; }
}

/* ------------------------------------------------------ page below board */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(64px, 10vw, 128px) 0;
  border-top: 1px solid var(--hairline);
}
.section:first-child { border-top: 0; }

.section-title {
  margin: 0 0 48px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.02em;
}

.prose p { margin: 0 0 1.1em; max-width: 64ch; }

.link, .prose a {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 1.5px solid var(--page-ink);
  color: var(--page-ink);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.button-solid { background: var(--page-ink); color: var(--page); }

/* philosophy */
.philosophy-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.portrait { margin: 0; position: sticky; top: 32px; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.pull {
  margin: 1.2em 0 1.3em !important;
  font-family: var(--hand);
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.25;
  font-weight: 700;
}

/* work: each row is one link to its case study page */
.case-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hairline); }
.case-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 28px;
  align-items: start;
  padding: 32px 0;
  color: inherit;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--hairline);
  transition: box-shadow 150ms ease;
}
.case-row:hover { box-shadow: inset 0 -2px 0 var(--page-ink); }
.case-row:focus-visible { outline: 2px solid var(--page-ink); outline-offset: 6px; }
.case-num {
  font-size: 14px;
  line-height: 46px;
  color: var(--page-soft);
  font-variant-numeric: tabular-nums;
  transition: color 150ms ease;
}
.case-row:hover .case-num, .case-row:focus-visible .case-num { color: var(--page-ink); }
.case-head h3 { margin: 0; }
.case-line { display: block; margin-top: 8px; font-size: 19px; }
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 10px;
  font-size: 15px;
  color: var(--page-soft);
}
/* the only affordance: a drawn arrow that nudges right on hover / focus */
.case-arrow {
  display: block;
  margin-top: 9px; /* centres on the first title line */
  color: var(--page-ink);
  transition: transform 150ms ease;
}
.case-row:hover .case-arrow, .case-row:focus-visible .case-arrow { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .case-row, .case-num, .case-arrow { transition: none; }
}

/* handwritten display headings (same face as the philosophy pull quote) */
.case-head h3, .article-title, .menu-title {
  font-family: var(--hand);
  font-weight: 700;
  letter-spacing: 0;
}
.case-head h3 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; }

.article-body h4 { margin: 2em 0 .5em; font-size: 21px; line-height: 1.3; }
.article-body h4:first-child { margin-top: 0; }
.article-body p { margin: 0 0 1em; }
.article-body ul { margin: 0 0 1em; padding-left: 1.2em; }
.article-body li { margin-bottom: .35em; }
.article-body a {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}

.diagram-placeholder {
  display: grid;
  place-items: center;
  min-height: 240px;
  margin: 1.6em 0;
  padding: 24px;
  border: 1.5px dashed var(--page-soft);
  text-align: center;
}
.diagram-placeholder figcaption { font-size: 16px; color: var(--page-soft); }
.diagram-placeholder span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ideas: two pinned paper notes, quieter than the work rows */
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: stretch; /* equal heights */
  padding-top: 8px;
}
.idea {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 30px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.idea + .idea { transform: rotate(1.5deg); }
.idea::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 72px;
  height: 20px;
  margin-left: -36px;
  background: rgba(205, 205, 200, .62);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset;
  transform: rotate(-2deg);
  pointer-events: none;
}
.idea + .idea::before { transform: rotate(3deg); margin-left: -30px; }
.idea:hover, .idea:focus-within {
  transform: rotate(0deg);
  box-shadow:
    0 2px 2px rgba(0, 0, 0, .10),
    0 8px 14px rgba(0, 0, 0, .10),
    0 18px 34px rgba(0, 0, 0, .12);
}
@media (prefers-reduced-motion: reduce) {
  .idea { transition: none; }
}
.idea h3 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
}
.idea-lead { margin: 0 0 14px; font-weight: 600; }
.idea .tags { margin: 0 0 28px; padding: 0; list-style: none; font-size: 15px; color: var(--soft-ink); }
.idea-link { margin: auto 0 0; }
.idea-link a {
  font-family: var(--hand);
  font-size: 19px;
  line-height: 24px;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}
.idea-link a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* contact: the board comes back one last time */
.contact-board {
  background-color: var(--board);
  background-image: radial-gradient(var(--board-dots) 1.3px, transparent 1.6px);
  background-size: 22px 22px;
  background-position: 11px 11px;
  scroll-margin-top: 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 64px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(88px, 11vw, 144px) 24px calc(clamp(72px, 9vw, 120px) + 56px);
}
.contact-title {
  max-width: 13ch;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.contact-aside {
  margin: 18px 0 0;
  font-family: var(--hand);
  font-size: 20px;
  line-height: 28px;
  color: var(--board-ink);
}

.contact-notes { display: flex; flex-direction: column; align-items: flex-start; }
.contact-note {
  position: relative;
  display: flex;
  align-items: center;
  width: min(300px, 100%);
  min-height: 72px;
  padding: 14px 22px 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-family: var(--hand);
  font-size: 19px;
  line-height: 24px;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
  transform: rotate(-3deg);
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}
.contact-note.grey { background: var(--paper-grey); }
.contact-note + .contact-note {
  margin: -6px 0 0 32px; /* overlaps the first note slightly */
  transform: rotate(4deg);
}
.contact-note::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 72px;
  height: 20px;
  margin-left: -36px;
  background: rgba(205, 205, 200, .62);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset;
  transform: rotate(-2deg);
  pointer-events: none;
}
.contact-note + .contact-note::before { transform: rotate(3deg); margin-left: -30px; }
.contact-note:hover,
.contact-note:focus-visible {
  z-index: 1;
  transform: rotate(0deg) translateY(-3px);
  box-shadow:
    0 2px 2px rgba(0, 0, 0, .10),
    0 8px 14px rgba(0, 0, 0, .10),
    0 18px 34px rgba(0, 0, 0, .12);
}
.contact-note:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .contact-note { transition: none; }
}
.contact-resume { margin-top: 32px; }

.footer {
  padding: 32px 24px 40px;
  border-top: 1px solid var(--hairline);
  text-align: center;
  font-size: 15px;
  color: var(--page-soft);
}

.footer-board {
  /* sits on the contact board's bottom padding so the dot grid runs unbroken */
  position: relative;
  height: 56px;
  margin-top: -56px;
  padding: 0 24px;
  border-top: 0;
  background: transparent;
  font-size: 13px;
  line-height: 36px;
  color: var(--board-ink);
}

@media (max-width: 759.98px) {
  body { font-size: 17px; }
  .philosophy-grid, .ideas-grid { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 360px; }
  .case-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 26px 0; }
  .case-num { display: none; }
  .case-arrow { margin-top: 3px; }
  .idea { padding: 30px 24px 26px; }
  .contact-inner { grid-template-columns: minmax(0, 1fr); padding: 72px 20px 112px; gap: 40px; }
  .contact-note + .contact-note { margin-left: 20px; }
}

/* ---------------------------------------------------------------- debug */
.debug .note { outline: 1px solid rgba(0, 0, 0, .55); }
.debug-badge {
  position: absolute;
  z-index: 999;
  padding: 1px 5px;
  font: 600 11px/16px var(--sans);
  background: #000;
  color: #fff;
  pointer-events: none;
}
.debug-badge.low { background: #fff; color: #000; outline: 1.5px solid #000; }

.section, .idea { scroll-margin-top: 24px; }

/* ---------------------------------------------------------- subpages */
.subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--hairline);
  font-size: 16px;
}
.subnav ul { display: flex; gap: clamp(12px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.subnav a { text-decoration: none; padding: 6px 0; }
.subnav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }

.article { max-width: 780px; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(64px, 9vw, 112px); }
.back { margin: 0 0 32px; font-size: 16px; }
.back-end { margin: 56px 0 0; }
.article-title { margin: 0; font-size: clamp(44px, 7vw, 76px); line-height: 1.05; }
.article-line { margin: 14px 0 0; font-size: clamp(20px, 2.4vw, 24px); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 14px 0 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--page-soft);
}

/* sabrosa menu viewer: a stack of pages without JS; menu.js turns it into a paged strip */
.menu { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--hairline); }
.menu-title { margin: 0 0 24px; font-size: clamp(32px, 4vw, 44px); }
.menu-track { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.menu-page img { width: 100%; height: auto; box-shadow: var(--shadow); }
.menu-viewer.is-paged .menu-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.menu-viewer.is-paged .menu-track::-webkit-scrollbar { display: none; }
.menu-viewer.is-paged .menu-page {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  padding: 8px 0 18px;
  scroll-snap-align: center;
}
.menu-viewer.is-paged .menu-page img { width: auto; max-width: 100%; max-height: min(78vh, 800px); }
.menu-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}
.menu-controls[hidden] { display: none; }
.menu-controls .button { background: transparent; font: inherit; font-weight: 600; cursor: pointer; }
.menu-controls .button:disabled { opacity: .35; cursor: default; text-decoration: none; }
.menu-count { margin: 0; min-width: 5ch; text-align: center; font-variant-numeric: tabular-nums; color: var(--page-soft); }

/* resume preview */
.pdf-dialog {
  width: min(920px, calc(100vw - 32px));
  height: min(92vh, 1200px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid var(--hairline);
  background: var(--page);
  color: var(--page-ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}
.pdf-dialog[open] { display: flex; flex-direction: column; }
.pdf-dialog::backdrop { background: rgba(20, 20, 19, .6); }
.pdf-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 20px;
  border-bottom: 1px solid var(--hairline);
}
.pdf-title { margin: 0; font-size: 18px; }
.pdf-actions { display: flex; gap: 10px; }
.pdf-actions .button { min-height: 40px; padding: 6px 16px; background: transparent; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.pdf-frame { flex: 1; width: 100%; border: 0; background: #fff; }
body:has(.pdf-dialog[open]) { overflow: hidden; }
@media (max-width: 759.98px) {
  .pdf-dialog { width: 100vw; height: 100dvh; border: 0; }
  .subnav { font-size: 15px; }
  .subnav .brand { font-size: 15px; }
}
