/* Personal site: warm paper, ink-blue accents, responsive editorial layouts, and a reduced-motion-safe arrival animation. */
@font-face {
  font-family: DM Sans;
  src: url('/assets/fonts/dm-sans-400-latin.ca72d2bc.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Instrument Serif;
  src: url('/assets/fonts/instrument-serif-400-latin.5eb09b5a.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Instrument Serif;
  src: url('/assets/fonts/instrument-serif-400-italic-latin.5a51946d.woff2') format('woff2');
  font-style: italic;
  font-display: swap;
}
:root {
  --paper: #f7f5ef;
  --ink: #263c47;
  --muted: #58666a;
  --blue: #365c70;
  --line: #d5d9d4;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 35px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
button {
  font: inherit;
  cursor: pointer;
}
img {
  display: block;
  width: 100%;
  height: auto;
}
figure {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(70px, 7.4vw, 112px);
}
h2 {
  font-size: clamp(44px, 5vw, 68px);
}
h3 {
  font-weight: 500;
  line-height: 1.3;
}
em,
.serif-italic {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
}
p {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #a95528;
  outline-offset: 5px;
}
.wrap {
  width: min(1180px, calc(100% - 96px));
  margin-inline: auto;
}
.section {
  padding-block: 110px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 25px;
}
.header {
  height: 110px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  font: 48px/1 var(--serif);
  letter-spacing: -0.1em;
  text-decoration: none;
}
.brand span {
  color: #a36642;
}
.header nav {
  display: flex;
  align-items: center;
  gap: 33px;
  font-size: 13px;
}
.header nav a {
  text-decoration: none;
}
.header nav a:hover {
  text-decoration: underline;
}
.nav-contact {
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: 25px;
}
.nav-contact span {
  padding-left: 14px;
}
.hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 70px;
}
.small-star {
  color: #a36642;
  font-size: 20px;
  margin-right: 8px;
}
.hero h1 em {
  color: #a36642;
}
.intro {
  font-size: 25px;
  line-height: 1.35;
  color: var(--ink);
  margin-top: 28px;
}
.intro .serif-italic {
  font-size: 32px;
}
.hero-description {
  max-width: 440px;
  margin-top: 23px;
  font-size: 15px;
  line-height: 1.8;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  margin-top: 28px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 23px;
  border-radius: 3px;
  font-size: 13px;
  text-decoration: none;
}
.button:hover {
  background: var(--blue);
}
.hero-photo {
  position: relative;
  margin-right: 28px;
  transform: rotate(2deg);
}
.hero-photo picture {
  display: block;
  border-radius: 150px 150px 5px 5px;
  overflow: hidden;
  background: #d7e3e6;
}
.hero-photo img {
  height: 520px;
  object-fit: cover;
  object-position: 50% 30%;
}
.hero-photo figcaption {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  color: var(--muted);
}
.photo-stamp {
  position: absolute;
  bottom: 45px;
  left: -38px;
  border-radius: 50%;
  width: 115px;
  height: 115px;
  background: #e6eadb;
  display: grid;
  align-content: center;
  text-align: center;
  font-size: 13px;
  line-height: 1.3;
  transform: rotate(-12deg);
  box-shadow: 0 3px 0 #263c4709;
}
.photo-stamp em {
  font-size: 28px;
}
.chapter-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 25px;
  border-block: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.055em;
}
.chapter-strip span:last-child {
  color: var(--muted);
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 42px;
}
.section-heading > p {
  max-width: 310px;
  font-size: 14px;
}
.filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter {
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 7px 17px;
  font-size: 12px;
  background: transparent;
  color: var(--ink);
}
.filter[aria-pressed='true'],
.filter:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}
.project {
  padding: 30px;
  background: #eeefe8;
  border: 1px solid #dfe2d9;
  border-radius: 4px;
}
.project:nth-child(2),
.project:nth-child(3) {
  background: #eaf0f0;
  border-color: #dbe4e3;
}
.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 44px;
}
.project-number {
  font-family: var(--serif);
  font-size: 23px;
  color: var(--muted);
}
.tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.project h3 {
  font: 36px/1.08 var(--serif);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.project > p {
  font-size: 14px;
  max-width: 450px;
  min-height: 70px;
}
.project details {
  margin-top: 26px;
  border-top: 1px solid #c9d2cb;
}
.project summary {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  font-size: 12px;
  cursor: pointer;
  list-style: none;
}
.project summary::-webkit-details-marker,
.skill-list summary::-webkit-details-marker {
  display: none;
}
.project summary > span {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s;
}
.project details[open] summary > span {
  transform: rotate(45deg);
}
.detail-body p {
  font-size: 14px;
  margin-top: 18px;
}
.tags {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 20px 0 0;
}
.tags li {
  font-size: 10px;
  border: 1px solid #bcc9c4;
  padding: 3px 8px;
  border-radius: 12px;
}
.project-personal {
  background: #263f4d !important;
  color: #f7f5ef;
  border-color: #263f4d;
}
.project-personal p,
.project-personal .project-number {
  color: #d0dce0;
}
.project-personal details {
  border-color: #647b85;
}
.store-links {
  display: flex;
  gap: 22px;
  font-size: 12px;
  margin-top: 23px;
}
.work-note {
  align-self: center;
  padding: 42px 45px;
}
.note-star {
  font-size: 54px;
  color: #a36642;
}
.work-note h3 {
  font-size: 15px;
  margin: 18px 0;
}
.work-note .serif-italic {
  font-size: 37px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 23px;
}
.work-note > p:last-child {
  font-size: 13px;
  max-width: 260px;
}
.skills-section {
  background: #eaece5;
}
.skill-list {
  border-top: 1px solid #c4cdc4;
}
.skill-list details {
  border-bottom: 1px solid #c4cdc4;
}
.skill-list summary {
  display: flex;
  gap: 25px;
  align-items: center;
  list-style: none;
  cursor: pointer;
  padding: 25px 0;
  font-size: 19px;
}
.skill-index {
  font-size: 11px;
  color: var(--muted);
}
.skill-hint {
  font-size: 11px;
  margin-left: auto;
  color: var(--muted);
}
.plus {
  font-size: 23px;
  font-weight: 300;
}
.skill-list details[open] .plus {
  transform: rotate(45deg);
}
.skill-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  padding: 0 42px 28px;
  font-size: 14px;
}
.experience-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 85px;
}
.experience-intro > p:not(.eyebrow) {
  max-width: 270px;
  margin-top: 25px;
  font-size: 14px;
}
.education {
  border-top: 1px solid var(--line);
  margin-top: 45px;
  padding-top: 25px;
}
.education .eyebrow {
  font-size: 10px;
}
.education h3 {
  font-size: 16px;
  margin-top: 10px;
}
.education p {
  font-size: 12px;
  margin-top: 7px;
}
.timeline {
  border-left: 1px solid #c4cec7;
  padding-left: 32px;
}
.timeline article {
  position: relative;
  padding-bottom: 37px;
}
.timeline article:last-child {
  padding-bottom: 0;
}
.timeline article:before {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  left: -37px;
  top: 7px;
  box-shadow: 0 0 0 5px var(--paper);
}
.date {
  font-size: 11px;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.timeline h3 {
  font-size: 20px;
}
.company {
  font-size: 13px;
  color: var(--blue);
  margin: 5px 0 15px;
}
.timeline article > p:last-child {
  font-size: 14px;
}
.story {
  background: #eeefe8;
  border-left: 3px solid #a36642;
  padding: 27px;
  margin-top: 20px;
}
.story h4 {
  font: 29px/1.1 var(--serif);
  margin: 0 0 14px;
}
.story p {
  font-size: 14px;
  margin-top: 12px;
}
.story details {
  margin-top: 15px;
}
.story summary {
  cursor: pointer;
  font-size: 13px;
}
.about-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 85px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.about-photo picture {
  display: block;
  overflow: hidden;
  border-radius: 5px 5px 100px 5px;
}
.about-photo img {
  height: 540px;
  object-fit: cover;
  object-position: 50% 30%;
}
.about-photo figcaption {
  font: italic 21px var(--serif);
  margin-top: 18px;
}
.about-lead {
  font-size: 15px;
  margin-top: 25px;
}
.interests {
  margin-top: 28px;
}
.interests > div {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 17px 0 17px 28px;
}
.interests > div > span {
  position: absolute;
  left: 0;
}
.interests h3 {
  font-size: 14px;
  margin-bottom: 5px;
}
.interests p {
  font-size: 13px;
}
.contact-section {
  background: #dfe8ea;
  padding-block: 80px;
}
.contact-section h2 {
  font-size: clamp(48px, 5.5vw, 76px);
}
.contact-section p:not(.eyebrow) {
  margin-top: 25px;
  font-size: 14px;
}
.email-link {
  display: inline-block;
  font-size: clamp(18px, 3vw, 28px);
  margin-top: 24px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 7px;
}
.email-link span {
  margin-left: 30px;
}
.social-links {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-top: 27px;
  font-size: 12px;
}
.print-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-size: 12px;
}
.footer {
  display: flex;
  justify-content: space-between;
  padding-block: 25px;
  font-size: 11px;
  color: var(--muted);
}
.footer a {
  text-decoration: none;
}
.arrival {
  display: none;
}
.skip {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 100;
  background: var(--paper);
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .arrival {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    font: 100px var(--serif);
    letter-spacing: -0.08em;
    pointer-events: none;
    animation: arrival-away 0.35s 0.7s both;
  }
  .arrival-s {
    animation: assemble-left 0.65s both;
  }
  .arrival-z {
    animation: assemble-right 0.65s both;
  }
  .arrival-dot {
    color: #a36642;
    animation: assemble-dot 0.65s both;
  }
  @keyframes arrival-away {
    to {
      opacity: 0;
      visibility: hidden;
    }
  }
  @keyframes assemble-left {
    from {
      transform: translate(-80px, 20px) rotate(-25deg);
      opacity: 0;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
  @keyframes assemble-right {
    from {
      transform: translate(80px, -20px) rotate(25deg);
      opacity: 0;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
  @keyframes assemble-dot {
    from {
      transform: translateY(-60px);
      opacity: 0;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 85px;
    padding-bottom: 90px;
  }
}
@media (max-width: 950px) {
  .wrap {
    width: calc(100% - 56px);
  }
  .hero {
    gap: 35px;
  }
  .hero-photo {
    margin-right: 5px;
  }
  .hero-photo img {
    height: 450px;
  }
  .hero h1 {
    font-size: 78px;
  }
  .experience-section,
  .about-section {
    gap: 40px;
  }
  .skill-hint {
    max-width: 230px;
    text-align: right;
  }
  .section {
    padding-block: 80px;
  }
  .project {
    padding: 25px;
  }
  .project h3 {
    font-size: 32px;
  }
  .section-heading {
    gap: 30px;
  }
  .section-heading > p {
    max-width: 260px;
  }
}
@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header {
    height: 82px;
  }
  .brand {
    font-size: 38px;
  }
  .header nav {
    gap: 16px;
    font-size: 11px;
  }
  .nav-contact {
    padding: 0;
    border: 0;
  }
  .nav-contact span {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-top: 42px;
    padding-bottom: 40px;
  }
  .hero h1 {
    font-size: 86px;
  }
  .hero .eyebrow {
    margin-bottom: 20px;
  }
  .intro {
    font-size: 23px;
  }
  .hero-description {
    max-width: 100%;
  }
  .hero-photo {
    width: 85%;
    margin: auto;
    transform: rotate(1.5deg);
  }
  .hero-photo img {
    height: 390px;
  }
  .photo-stamp {
    width: 90px;
    height: 90px;
    left: -23px;
    font-size: 11px;
  }
  .photo-stamp em {
    font-size: 24px;
  }
  .chapter-strip {
    display: block;
    font-size: 10px;
    padding-block: 17px;
  }
  .chapter-strip span {
    display: block;
  }
  .chapter-strip span + span {
    margin-top: 5px;
  }
  .section {
    padding-block: 62px;
  }
  .section-heading {
    display: block;
    margin-bottom: 28px;
  }
  .section-heading > p {
    max-width: 100%;
    margin-top: 23px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-top {
    margin-bottom: 28px;
  }
  .project > p {
    min-height: 0;
  }
  .work-note {
    padding: 25px 15px;
  }
  .work-note h3 br,
  .work-note .serif-italic br {
    display: none;
  }
  .work-note > p:last-child {
    max-width: 100%;
  }
  .work-note .serif-italic {
    font-size: 32px;
  }
  .skill-list summary {
    gap: 12px;
    font-size: 16px;
    flex-wrap: wrap;
    padding-block: 20px;
  }
  .skill-hint {
    display: none;
  }
  .plus {
    margin-left: auto;
  }
  .skill-body {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 0 23px 27px;
  }
  .experience-section,
  .about-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .experience-intro h2 br:nth-child(2) {
    display: none;
  }
  .experience-intro > p:not(.eyebrow) {
    max-width: 100%;
  }
  .education {
    margin-top: 25px;
  }
  .timeline {
    margin-left: 5px;
    padding-left: 25px;
  }
  .timeline article:before {
    left: -30px;
  }
  .about-photo {
    max-width: 320px;
  }
  .about-photo img {
    height: 390px;
  }
  .contact-section {
    padding-block: 60px;
  }
  .email-link span {
    margin-left: 12px;
  }
  .footer {
    font-size: 10px;
  }
  .story {
    padding: 20px;
  }
  .filters {
    gap: 7px;
  }
  .filter {
    padding: 7px 12px;
    font-size: 11px;
  }
}
@media print {
  body {
    background: white;
    color: #111;
    font-size: 10pt;
  }
  .wrap {
    width: 100%;
  }
  .header,
  .arrival,
  .hero-photo,
  .filters,
  .work-note,
  .about-section,
  .footer,
  .print-button,
  .button,
  .chapter-strip {
    display: none !important;
  }
  .section,
  .hero,
  .contact-section {
    padding: 16px 0;
  }
  .hero,
  .experience-section {
    display: block;
  }
  .hero h1 {
    font-size: 40pt;
  }
  .hero h1 br {
    display: none;
  }
  .hero-description {
    max-width: 100%;
  }
  h2 {
    font-size: 26pt;
  }
  h3 {
    break-after: avoid;
  }
  .section-heading {
    margin-bottom: 15px;
  }
  .project-grid {
    display: block;
  }
  .project {
    break-inside: avoid;
    padding: 14px;
    margin-bottom: 12px;
    background: white !important;
    color: #111;
  }
  .project[hidden] {
    display: block !important;
  }
  .project-top {
    margin-bottom: 10px;
  }
  .project h3 {
    font-size: 20pt;
  }
  .project h3 br {
    display: none;
  }
  .project-personal p {
    color: #333;
  }
  .project summary,
  .skill-list summary {
    list-style: none;
  }
  .project summary span,
  .plus {
    display: none;
  }
  .skills-section,
  .contact-section {
    background: white;
  }
  .skill-body {
    display: block;
  }
  .timeline {
    margin-top: 20px;
  }
  .education {
    margin-top: 15px;
  }
  .contact-section h2 {
    font-size: 26pt;
  }
  .email-link {
    font-size: 14pt;
  }
  .social-links {
    margin-top: 10px;
  }
  p {
    color: #333;
  }
}

/* Shared contact-form markup, styled to match the personal site's paper and blue palette. */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 65px;
  align-items: start;
}
.contact-intro h2 {
  font-size: clamp(42px, 4.5vw, 62px);
}
.contact-intro .email-link {
  font-size: 21px;
}
.contact-card {
  padding: 32px;
  background: var(--paper);
  border: 1px solid #c9d4d5;
  border-radius: 5px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 12px;
}
.field small {
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid #b7c3c5;
  background: #fffefa;
  border-radius: 3px;
  padding: 12px;
  color: var(--ink);
  font: 14px/1.5 var(--sans);
}
.field textarea {
  resize: vertical;
  min-height: 140px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #617074;
}
.form-footer {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.form-footer .button {
  margin: 0;
  border: 0;
  cursor: pointer;
}
.form-footer > span {
  font-size: 10px;
  color: var(--muted);
}
.button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.contact-section .contact-status {
  font-size: 12px;
  margin: 0 0 15px;
}
.contact-status[data-tone='error'] {
  color: #9a3424;
}
.contact-sent {
  display: none;
  padding: 45px 0;
}
.contact-sent > span {
  font-size: 36px;
}
.contact-sent h3 {
  font: 38px var(--serif);
  margin-top: 15px;
}
.contact-sent p {
  font-size: 14px;
}
.contact-card[data-state='sent'] form {
  display: none;
}
.contact-card[data-state='sent'] .contact-sent {
  display: block;
}
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 950px) {
  .contact-layout {
    gap: 30px;
  }
  .contact-card {
    padding: 24px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (max-width: 640px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .contact-card {
    padding: 22px;
  }
}
@media print {
  .contact-layout {
    display: block;
  }
  .contact-card {
    display: none;
  }
}

/* Explicit project completion states remain readable alongside the category on small screens. */
.project-top {
  flex-wrap: wrap;
  gap: 10px;
}
.project-top .tag {
  margin-left: auto;
}
.project-status {
  border: 1px solid #789b86;
  background: #dce9de;
  color: #284633;
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.project-status.status-wip {
  border-color: #b89c65;
  background: #f3e8ce;
  color: #634818;
}
.project-personal .project-status {
  background: #dce9de;
  color: #284633;
}
