@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,750&family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
  --paper: #f7f0e3;
  --paper-deep: #eadfce;
  --ink: #1b1b18;
  --muted: #66625b;
  --line: #ddd5c7;
  --red: #c73532;
  --red-deep: #9f2624;
  --sage: #607466;
  --blue: #2f5967;
  --white: #fffdfa;
  --max: 1180px;
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(27,27,24,0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 99;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 800;
}

.skip-link:focus { transform: none; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(247,240,227,0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(221,213,199,0.8);
  box-shadow: 0 10px 30px rgba(27,27,24,0.06);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 72px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-decoration: none;
  font-weight: 800;
  min-width: 0;
}

.brand-name {
  font-size: 16px;
  line-height: 1.05;
}

.brand-title {
  color: var(--red);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  min-width: 0;
}

.nav-links a {
  text-decoration: none;
  text-underline-offset: 4px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  text-decoration: underline;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 82px) 28px 88px;
}

.page-narrow {
  max-width: 900px;
}

.resume-card,
.about-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 54px);
  box-shadow: 0 18px 60px rgba(27,27,24,0.06);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(34px, 7vw, 80px);
  align-items: center;
  margin-bottom: clamp(48px, 7vw, 76px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 14px;
}

.eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

h1,
h2 {
  font-family: Fraunces, Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 790px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.12;
  font-weight: 750;
}

h1 em,
.accent {
  color: var(--red);
  font-style: normal;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 750;
}

.lede {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
  margin-top: 22px;
  max-width: 720px;
}

.portrait {
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper-deep);
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(100%);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.btn-primary,
.btn-outline {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.button.primary,
.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.button:hover,
.btn-primary:hover,
.btn-outline:hover {
  transform: translateY(-1px);
}

.section {
  margin-top: 54px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.body-copy {
  max-width: 760px;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.body-copy p {
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 24px;
}

.body-copy a {
  color: var(--red);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 14px 50px rgba(27,27,24,0.05);
}

blockquote {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}

cite {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.resume-actions {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.r-section { margin-bottom: 44px; }

.r-section-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.r-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.r-summary {
  font-size: 16px;
  line-height: 1.8;
}

.r-employer {
  margin-bottom: 32px;
}

.r-employer + .r-employer {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.r-employer-header,
.r-role {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.r-employer-header { margin-bottom: 14px; }
.r-role { margin-bottom: 10px; }

.r-employer-name,
.r-role-title,
.r-item-name {
  font-weight: 900;
}

.r-employer-location,
.r-role-date,
.r-item-detail {
  color: var(--muted);
}

.r-role-title,
.r-bullets li,
.r-item-name {
  font-size: 14px;
}

.r-role-date {
  font-size: 12px;
  white-space: nowrap;
}

.r-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.r-bullets li {
  line-height: 1.75;
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}

.r-bullets li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 900;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(40px, 7vw, 80px);
  align-items: start;
}

.contact-links {
  display: flex;
  flex-direction: column;
  margin-top: 34px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-link:first-child { border-top: 1px solid var(--line); }
.contact-link:hover { color: var(--red); }

.link-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 18px 60px rgba(27,27,24,0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.form-group input,
.form-group textarea {
  font-family: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 28px 40px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
}

footer a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 860px) {
  .nav-inner {
    padding: 14px 20px;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 12px;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
  }
  .page,
  footer { padding-left: 20px; padding-right: 20px; }
  .page-hero,
  .about-story,
  .cards-3,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .portrait { max-width: 320px; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

@media (max-width: 560px) {
  .site-nav {
    position: static;
  }

  .nav-inner {
    min-height: 0;
    padding: 14px 16px 16px;
    gap: 12px;
  }

  .brand {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .brand-title {
    max-width: 280px;
  }

  .nav-links {
    gap: 8px 12px;
    font-size: 12px;
    line-height: 1.2;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }

  .page {
    padding: 28px 14px 54px;
  }

  .resume-card,
  .about-card,
  .form {
    padding: 22px 16px;
  }

  h1 {
    font-size: clamp(27px, 9vw, 34px);
  }

  h2 {
    font-size: clamp(25px, 8vw, 34px);
  }

  .lede,
  .body-copy p,
  .r-summary {
    font-size: 15px;
    line-height: 1.7;
  }

  .button-row,
  .resume-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .btn-primary,
  .btn-outline {
    width: 100%;
    padding: 0 16px;
    text-align: center;
  }

  .r-employer-header,
  .r-role {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .r-role-date {
    white-space: normal;
  }

  .r-bullets li {
    padding-left: 15px;
  }

  .contact-grid {
    gap: 34px;
  }

  .contact-link {
    gap: 12px;
    padding: 15px 0;
    font-size: 14px;
  }

  .link-icon {
    width: 34px;
    height: 34px;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
    font-size: 16px;
  }

  footer {
    padding: 22px 16px 34px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }
}
