/* Nikki Wendt
   Light and soft, like a playroom in the morning: warm cream paper, sage, blush,
   butter and lavender in gentle tinted bands, rounded cards, a few hand-drawn notes.
   Type: Fraunces (soft) for headlines, Nunito for text, Caveat for handwritten notes
   (all SIL Open Font License). */

:root {
  color-scheme: light;

  --cream: #fcf8f3;
  --paper: #ffffff;
  --ink: #3b3740;
  --ink-soft: #6a6470;
  --rule: #ece3d9;

  --sage: #7f9c7c;
  --sage-deep: #56704f;
  --sage-tint: #edf2ea;
  --blush: #e39a87;
  --blush-deep: #b9654f;
  --blush-tint: #fbece6;
  --butter: #f2d58a;
  --butter-tint: #fdf6e2;
  --lavender: #a99bd0;
  --lavender-tint: #f1eef8;
  --sky: #9cc3d5;
  --sky-tint: #eaf3f7;

  --link: #56704f;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Nunito", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --measure: 64ch;
  --radius: 22px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

/* A soft pastel ribbon across the very top of every page */
body::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg,
    var(--sage) 0 20%, var(--blush) 20% 40%, var(--butter) 40% 60%,
    var(--lavender) 60% 80%, var(--sky) 80% 100%);
}

h1, h2, h3, p, dl, dd, ul, ol {
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  font-weight: 500;
  color: var(--ink);
}

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

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--blush-deep);
}

:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--paper);
  padding: 0.5rem 0.75rem;
}

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Top bar ---------- */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.4rem;
}

.brand {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--ink);
  text-decoration: none;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--blush);
  box-shadow: 0.55rem 0 0 var(--butter), 1.1rem 0 0 var(--sage);
  margin-right: 1.65rem;
  vertical-align: 0.15em;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
}

.top nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
}

.top nav a:hover {
  color: var(--blush-deep);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 2px solid var(--sage-deep);
  border-radius: 999px;
  background: var(--sage-deep);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 16px -10px rgba(86, 112, 79, 0.8);
}

.button:hover {
  background: #475e41;
  border-color: #475e41;
  color: #fff;
}

.button-quiet {
  background: transparent;
  border-color: var(--blush);
  color: var(--blush-deep);
  box-shadow: none;
}

.button-quiet:hover {
  background: var(--blush-tint);
  border-color: var(--blush);
  color: var(--blush-deep);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding-top: 2.5rem;
  padding-bottom: 4.5rem;
}

.note {
  font-family: var(--hand);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--blush-deep);
  transform: rotate(-2deg);
  transform-origin: left;
  margin-bottom: 0.6rem;
}

h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 em {
  font-style: italic;
  color: var(--sage-deep);
}

.lede {
  max-width: 34rem;
  margin-top: 1.4rem;
  font-size: 1.18rem;
  color: var(--ink-soft);
}

.hero-side {
  position: relative;
}

.doodle {
  display: block;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto -2.5rem;
  position: relative;
  z-index: 0;
}

.card {
  position: relative;
  z-index: 1;
  padding: 1.7rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -28px rgba(59, 55, 64, 0.45);
}

.card > h2 {
  font-size: 1.5rem;
  line-height: 1.15;
}

.now {
  border-top: 5px solid var(--sage);
}

.now dl {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.now dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blush-deep);
}

.now dd {
  margin-top: 0.1rem;
  line-height: 1.5;
}

.facts-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2.5rem;
  max-width: 34rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px dotted var(--rule);
}

.facts-strip dt {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.facts-strip dd {
  font-weight: 700;
  line-height: 1.35;
}

/* ---------- Sections: centered heads, soft full-width tinted bands ---------- */

.band {
  --band: var(--cream);
  --accent: var(--sage);
  position: relative;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  background: var(--band);
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
}

.band:nth-of-type(6n + 2) { --band: var(--sage-tint); --accent: var(--sage); }
.band:nth-of-type(6n + 3) { --band: var(--cream); --accent: var(--blush); }
.band:nth-of-type(6n + 4) { --band: var(--blush-tint); --accent: var(--blush); }
.band:nth-of-type(6n + 5) { --band: var(--cream); --accent: var(--lavender); }
.band:nth-of-type(6n + 6) { --band: var(--lavender-tint); --accent: var(--lavender); }
.band:nth-of-type(6n + 1) { --band: var(--butter-tint); --accent: var(--butter); }

.band-head {
  max-width: 44rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.band-head::before {
  content: "";
  display: block;
  width: 3.6rem;
  height: 0.8rem;
  margin: 0 auto 1.1rem;
  background:
    radial-gradient(circle, var(--accent) 0 0.32rem, transparent 0.34rem) 0 50% / 1.2rem 0.8rem repeat-x;
  opacity: 0.9;
}

.band-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  line-height: 1.1;
  text-wrap: balance;
}

.band-head p {
  margin-top: 0.8rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.closing .band-head {
  text-align: left;
  margin: 0;
}

.closing .band-head::before {
  margin-left: 0;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.2;
}

h3.mini {
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
}

h4 {
  margin: 0;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

/* What I do: three rounded cards side by side, each with its own color */

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

.rows > article {
  padding: 1.75rem 1.6rem;
  background: var(--paper);
  border-radius: var(--radius);
  border-top: 5px solid var(--sage);
  box-shadow: 0 16px 36px -30px rgba(59, 55, 64, 0.5);
}

.rows > article:nth-child(2) { border-top-color: var(--blush); }
.rows > article:nth-child(3) { border-top-color: var(--lavender); }

.rows > article > h3 {
  margin-bottom: 1.1rem;
}

.items {
  display: grid;
  gap: 1.1rem;
}

.items p {
  margin-top: 0.2rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Who I support */

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

.who article {
  padding: 1.6rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px -30px rgba(59, 55, 64, 0.5);
}

.who article::before {
  content: "";
  display: block;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.9rem;
  border-radius: 46% 54% 58% 42% / 50% 42% 58% 50%;
  background: var(--butter);
}

.who article:nth-child(2)::before { background: var(--sky); border-radius: 58% 42% 46% 54% / 44% 56% 44% 56%; }
.who article:nth-child(3)::before { background: var(--lavender); border-radius: 40% 60% 52% 48% / 58% 46% 54% 42%; }

.who p {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.aside {
  max-width: var(--measure);
  margin: 2rem auto 0;
  text-align: center;
  color: var(--ink-soft);
}

/* How I work */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  font-size: 1.02rem;
  line-height: 1.5;
  text-align: center;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px dashed var(--blush);
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  font-size: 1.5rem;
  color: var(--blush-deep);
}

.steps li:nth-child(2)::before { border-color: var(--sage); color: var(--sage-deep); }
.steps li:nth-child(3)::before { border-color: var(--lavender); color: #6e5fa3; }
.steps li:nth-child(4)::before { border-color: var(--sky); color: #3f7690; }

.sub {
  max-width: 44rem;
  margin: 3.25rem auto 0;
  text-align: center;
}

.honest {
  max-width: 44rem;
  margin: 0.9rem auto 0;
  padding: 1.3rem 1.5rem;
  background: var(--paper);
  border-radius: var(--radius);
  border: 2px dashed var(--butter);
  text-align: center;
}

.paperwork {
  max-width: 44rem;
  margin: 1.75rem auto 0;
  text-align: center;
}

/* Experience */

.cases {
  max-width: 58rem;
  margin-inline: auto;
}

.case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 14rem);
  gap: 1.25rem 2.25rem;
  padding: 1.8rem;
  margin-bottom: 1.25rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px -30px rgba(59, 55, 64, 0.5);
}

.case h3 {
  margin-bottom: 0.6rem;
  text-wrap: balance;
}

.case p {
  color: var(--ink-soft);
}

.case p + p {
  margin-top: 0.7rem;
}

.spec {
  align-self: start;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: var(--blush-tint);
}

.case:nth-child(2n) .spec { background: var(--sage-tint); }
.case:nth-child(3n) .spec { background: var(--lavender-tint); }

.spec div + div {
  margin-top: 0.6rem;
}

.spec dt {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.spec dd {
  font-weight: 700;
  line-height: 1.3;
}

.also {
  padding: 1.8rem;
  border-radius: var(--radius);
  border: 2px dashed var(--rule);
}

.also ul {
  margin-top: 0.7rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.also li::marker {
  color: var(--blush);
}

.also li + li {
  margin-top: 0.5rem;
}

/* Research */

.plainlist {
  list-style: none;
}

.plainlist li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
  font-size: 1.02rem;
  line-height: 1.4;
}

.plainlist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--lavender);
}

.plainlist li:nth-child(3n + 2)::before { background: var(--blush); }
.plainlist li:nth-child(3n)::before { background: var(--sage); }

.about .aside {
  text-align: left;
  margin: 1.5rem 0 0;
}

/* Chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.chips li {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.3;
}

.chips li:nth-child(4n + 1) { background: var(--sage-tint); border-color: #d6e2d2; }
.chips li:nth-child(4n + 2) { background: var(--blush-tint); border-color: #f3d6cc; }
.chips li:nth-child(4n + 3) { background: var(--butter-tint); border-color: #f2e3b5; }
.chips li:nth-child(4n + 4) { background: var(--lavender-tint); border-color: #ddd7ef; }

/* Two-column blocks (research, training, about) */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2rem 3.5rem;
  align-items: start;
  max-width: 64rem;
  margin-inline: auto;
}

.about > div,
.about > ol {
  padding: 1.75rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px -30px rgba(59, 55, 64, 0.5);
}

.prose p + p {
  margin-top: 1rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.links a {
  font-weight: 700;
}

.timeline {
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.75rem;
  border-top: 2px dotted var(--rule);
  font-size: 1rem;
  line-height: 1.45;
}

.timeline li:first-child {
  padding-top: 0;
  border-top: 0;
}

.when {
  font-weight: 700;
  color: var(--blush-deep);
}

/* Contact */

.closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem 4rem;
  align-items: center;
}

.address {
  margin-top: 1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.company {
  max-width: 30rem;
  width: 100%;
  justify-self: end;
}

/* "At a glance" as a soft pastel note pinned with washi tape */
.plate {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1.25rem;
  padding: 2.4rem 2rem 1.9rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 22px 44px -30px rgba(59, 55, 64, 0.55);
  transform: rotate(-1.2deg);
}

.plate::before {
  content: "";
  position: absolute;
  top: -0.8rem;
  left: 50%;
  width: 7rem;
  height: 1.7rem;
  margin-left: -3.5rem;
  background: repeating-linear-gradient(45deg, rgba(227, 154, 135, 0.55) 0 8px, rgba(242, 213, 138, 0.55) 8px 16px);
  border-radius: 3px;
  transform: rotate(2deg);
}

.plate > div {
  padding: 0.35rem 0;
}

.plate .plate-wide {
  grid-column: 1 / -1;
}

.plate dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.plate dd {
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.3;
}

.plate .plate-name dd {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  font-weight: 500;
  font-size: 1.75rem;
}

/* Footer */

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 2rem 2.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Plain pages: 404 ---------- */

.plain {
  padding-block: 4rem 6rem;
}

.plain h1 {
  max-width: 18ch;
}

.plain p {
  max-width: var(--measure);
  margin-top: 1.25rem;
}

/* ---------- Printable resume ---------- */

.sheet {
  max-width: 54rem;
  margin: 1rem auto 4rem;
  padding: 3rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 20px 44px -32px rgba(59, 55, 64, 0.5);
}

.sheet-head {
  padding-bottom: 0.9rem;
  border-bottom: 2px dotted var(--blush);
}

.sheet-head h1 {
  font-size: 2.3rem;
}

.sheet-contact {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.sheet-summary {
  margin-top: 1rem;
  font-size: 1rem;
}

.sheet h2 {
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
  line-height: 1.15;
  color: var(--sage-deep);
}

.job {
  margin-top: 0.8rem;
}

.job-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 1rem;
  font-size: 0.98rem;
}

.job-head strong {
  font-weight: 700;
}

.job-head .when {
  color: var(--ink-soft);
  font-weight: 600;
}

.sheet ul {
  padding-left: 1.05rem;
  margin-top: 0.25rem;
}

.sheet li {
  font-size: 0.94rem;
  line-height: 1.45;
}

.sheet li + li {
  margin-top: 0.2rem;
}

.sheet p.edu {
  font-size: 0.94rem;
  line-height: 1.45;
}

.sheet .grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.2rem 1rem;
  font-size: 0.9rem;
}

.sheet-actions {
  max-width: 54rem;
  margin: 1.5rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 1.5rem;
  }

  .doodle {
    max-width: 24rem;
  }

  .rows,
  .who {
    grid-template-columns: 1fr;
    max-width: 40rem;
    margin-inline: auto;
  }

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

  .closing {
    grid-template-columns: 1fr;
  }

  .company {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .band {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .case,
  .about {
    grid-template-columns: 1fr;
  }

  .about > div,
  .about > ol,
  .case {
    padding: 1.35rem;
  }

  .timeline li {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }

  .sheet {
    padding: 1.5rem 1.25rem;
    margin-top: 0.5rem;
  }

  .sheet .grid3 {
    grid-template-columns: 1fr;
  }
}

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

  .steps {
    grid-template-columns: 1fr;
  }
}

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

/* ---------- Print: the resume fits one Letter page ---------- */

@page {
  size: letter;
  margin: 0.5in;
}

@media print {
  body {
    background: #fff;
    font-size: 10pt;
  }

  body::before,
  .top,
  .skip,
  .sheet-actions,
  footer {
    display: none !important;
  }

  .sheet {
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .sheet-head h1 {
    font-size: 22pt;
  }

  .sheet h2 {
    margin-top: 8pt;
    font-size: 11.5pt;
  }

  .sheet li,
  .sheet p.edu,
  .job-head,
  .sheet-contact,
  .sheet .grid3 {
    font-size: 9pt;
    line-height: 1.3;
  }

  .sheet-summary {
    font-size: 9.5pt;
  }

  .job {
    margin-top: 5pt;
    break-inside: avoid;
  }

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