:root {
  --paper: #f3efe6;
  --paper-deep: #e7e1d4;
  --card: #fbf9f4;
  --ink: #172033;
  --navy: #152238;
  --muted: #5c6572;
  --gold: #9a7848;
  --line: #ddd4c4;
  --cream: #f6f1e7;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  --wrap: 1120px;
  --pad: clamp(1.25rem, 4vw, 2rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

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

::selection {
  background: var(--navy);
  color: var(--cream);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 0.9rem;
  background: var(--navy);
  color: var(--cream);
}

.skip:focus {
  top: 1rem;
}

#results,
#experience,
#skills,
#contact {
  scroll-margin-top: 5.25rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(243, 239, 230, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.mark {
  justify-self: start;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 1.35rem;
}

.nav a {
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover {
  color: var(--gold);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4.75rem) 0 clamp(3rem, 7vw, 5.25rem);
}

.eyebrow,
.kicker {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
}

h1 {
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 0.9;
}

.role {
  margin: 1.35rem 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
}

.role-line {
  margin: 0;
  color: var(--muted);
}

.summary {
  max-width: 40rem;
  margin: 1.35rem 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.intro .button {
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--cream);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #243652;
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.portrait {
  margin: 0;
  padding: 0.7rem;
  background: var(--navy);
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.results {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(3.25rem, 7vw, 5rem) 0;
}

.results .kicker {
  color: #c6a36a;
}

.results h2,
.band h2 {
  margin: 0 0 1.75rem;
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.05;
}

.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.result-list li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-top: 1px solid rgba(246, 241, 231, 0.16);
  font-family: var(--serif);
  font-size: clamp(1.28rem, 2.3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.result-list li:last-child {
  border-bottom: 1px solid rgba(246, 241, 231, 0.16);
}

.result-list span {
  color: #c6a36a;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.band {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.role-list {
  display: grid;
  gap: 0;
}

.job {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
}

.job:last-child {
  border-bottom: 1px solid var(--line);
}

.job time {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 500;
}

.job h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  line-height: 1.15;
}

.job-title {
  margin: 0.35rem 0 0;
  font-weight: 500;
}

.job-place {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

.job ul {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.job li {
  position: relative;
  margin: 0.45rem 0 0;
  padding-left: 1rem;
}

.job li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.38rem;
  height: 1px;
  background: var(--gold);
}

.skills {
  padding-top: 1.25rem;
}

.skills-lead {
  max-width: 38rem;
  margin: -0.4rem 0 0;
  color: var(--muted);
}

.rings {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: start;
  margin-top: 1.8rem;
}

.ring-card {
  min-width: 0;
  padding: 1rem 0.75rem 0.85rem;
  background: var(--card);
  border: 1px solid #ddd4c6;
}

.ring-wrap {
  position: relative;
  width: 7.25rem;
  margin: 0 auto 0.85rem;
}

.ring-svg {
  display: block;
  width: 100%;
  height: auto;
}

.ring-core {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  text-align: center;
  pointer-events: none;
}

.ring-core strong {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.ring-core span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ring-card h3 {
  min-height: 2.5rem;
  margin: 0 0 0.75rem;
  font-size: 1.12rem;
  line-height: 1.15;
  text-align: center;
}

.ring-card ul {
  margin: 0;
  padding: 0.7rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.ring-card li {
  margin-top: 0.38rem;
  padding: 0.42rem 0.5rem;
  background: var(--navy);
  color: var(--cream);
  font-size: 0.78rem;
  line-height: 1.35;
  border-left: 3px solid #8ea4c0;
}

.ring-card li:nth-child(even) {
  border-left-color: #c6a36a;
}

@media (prefers-reduced-motion: no-preference) {
  .ring-card {
    animation: rise-in 0.7s ease both;
  }

  .ring-card:nth-child(2) { animation-delay: 0.06s; }
  .ring-card:nth-child(3) { animation-delay: 0.12s; }
  .ring-card:nth-child(4) { animation-delay: 0.18s; }
  .ring-card:nth-child(5) { animation-delay: 0.24s; }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.education {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.education h3 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  line-height: 1.25;
}

.contact {
  background: var(--paper-deep);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.contact h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 1.02;
}

.contact-copy p:last-of-type {
  margin-bottom: 0;
}

.contact-portrait {
  width: min(100%, 15.5rem);
  margin-top: 1.75rem;
}

.place {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

form {
  display: grid;
  gap: 0.95rem;
  padding: 1.35rem;
  background: var(--card);
  border: 1px solid #ddd4c6;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d4cbbd;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0.75rem 0.8rem;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0.9rem 0 0;
}

.form-status:empty {
  display: none;
}

.is-success {
  padding: 1.25rem 1.35rem;
  background: var(--card);
  border: 1px solid #ddd4c6;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.3;
}

.is-error {
  color: #8a3b32;
}

.site-footer {
  padding: 1.4rem 0 1.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .intro,
  .contact-grid,
  .job {
    grid-template-columns: 1fr;
  }

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

  .intro {
    gap: 1.75rem;
  }

  .portrait {
    max-width: 22rem;
    order: -1;
  }

  .job time {
    margin-bottom: -0.6rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 0.55rem;
    min-height: 0;
    padding-block: 0.75rem;
  }

  .nav {
    order: 3;
    flex-basis: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .nav a {
    font-size: 0.88rem;
  }

  #results,
  #experience,
  #skills,
  #contact {
    scroll-margin-top: 7rem;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.4rem);
  }

  .result-list li {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }

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

  .ring-card h3 {
    min-height: 0;
  }
}

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

@media print {
  .site-header,
  .button,
  form,
  .honeypot {
    display: none;
  }

  body,
  .results,
  .contact {
    background: #fff;
    color: #000;
  }

  .results .kicker,
  .result-list span,
  .eyebrow,
  .kicker {
    color: #000;
  }

  .portrait {
    background: transparent;
    padding: 0;
    max-width: 2.4in;
  }

  a {
    text-decoration: none;
  }
}
