/* ==========================================================================
   Holly Kwan - one page sheet
   Theme: ink and earth. Layered translucent washes - slate-indigo ink down
   the right, sepia earth in the lower left - with roughened edges, mineral
   speckle, and a few solid blush dots. Fabric-inspired rather than fabric:
   the layering and sheerness stay, the geometry goes organic.
   Single family (Figtree). Fits one viewport; no JavaScript.
   ========================================================================== */

:root {
  --paper: #fbfaf7;
  --ink:   #272d31;
  --muted: #6b7370;
  --slate: #3d5a73;
  --deep:  #33506b;
  --blush: #ea8fae;
}

/* ---------- reset ---------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(61, 90, 115, 0.5);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover { color: var(--deep); text-decoration-color: var(--blush); }

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

::selection {
  background: #f7dde6;
  color: var(--deep);
}

h1, h2, h3 { margin: 0; color: var(--ink); }

/* ---------- washes ---------- */

.panel {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.panel--ink   { top: -140px; right: -170px; width: 560px; transform: rotate(-6deg); }
.panel--earth { bottom: -120px; left: -160px; width: 540px; transform: rotate(3deg); }

/* Smaller screens get smaller washes, kept to the corners. */
@media (max-width: 719.98px) {
  .panel--ink   { top: -140px; right: -230px; width: 400px; }
  .panel--earth { bottom: -130px; left: -200px; width: 400px; }
}

/* ---------- sheet ---------- */

.sheet {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100dvh;
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(24px, 4.5vh, 54px) clamp(20px, 4vw, 48px) clamp(20px, 3.5vh, 40px);
}

/* ---------- masthead ---------- */

/* The one rule on the page. */
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  padding-bottom: clamp(16px, 2.4vh, 26px);
  border-bottom: 1px solid rgba(39, 45, 49, 0.6);
}

/* Lets the bio column shrink so the contact links keep their own column. */
.masthead__id { flex: 1 1 460px; min-width: 0; }

.name {
  font-size: clamp(2.4rem, 5.5vw, 3.3rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}

.name b { font-weight: 600; }

.lede {
  margin-top: 14px;
  max-width: 60ch;
  line-height: 1.55;
}

.masthead__meta {
  display: grid;
  gap: 3px;
  justify-items: end;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: right;
}

/* Once the meta wraps below the name it should read left aligned. */
@media (max-width: 719.98px) {
  .masthead__meta { justify-items: start; text-align: left; }
}

/* ---------- body ---------- */

.body {
  align-content: start;
  padding-top: clamp(20px, 3.4vh, 36px);
}

.block + .block { margin-top: clamp(24px, 4.2vh, 42px); }

.label {
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--deep);
}

/* ---------- jobs ---------- */

.job + .job { margin-top: clamp(16px, 2.6vh, 23px); }

.job__head,
.job__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
}

.job__co {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.job__where {
  font-size: 0.86rem;
  color: var(--muted);
}

.job__row { margin-top: 4px; }

.job__title { font-size: 0.95rem; }

.job__when {
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--deep);
}

/* Narrow screens: stack the date under its title, and tighten the rhythm
   so a typical phone shows the whole sheet in one screen too. */
@media (max-width: 559.98px) {
  .job__row { display: block; }
  .job__when { display: inline-block; margin-top: 2px; }
  .job + .job { margin-top: 14px; }
  .block + .block { margin-top: 20px; }
  .lede { margin-top: 10px; }
}

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

@media print {
  body { font-size: 11pt; }
  .panel { display: none; }
  .sheet { min-height: 0; padding: 0; }
  a { color: inherit; text-decoration: none; }
}
