html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  min-height: 44px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c99986;
  outline-offset: 5px;
}
img {
  max-width: 100%;
  height: auto;
}
.brand-mark {
  font-size: clamp(19px, 2vw, 26px);
  white-space: nowrap;
  letter-spacing: -0.06em;
}
.desktop-nav {
  gap: 18px;
  margin-right: 20px;
}
.certification-row {
  display: flex;
  gap: 18px;
  color: inherit;
  text-decoration: none;
  min-height: 88px;
}
.certification-row > div {
  flex: 1;
  min-width: 0;
}
.certification-row > span:last-child {
  color: var(--clay);
}
.certification-row:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.certification-row strong {
  overflow-wrap: anywhere;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.project-card[hidden] {
  display: none;
}
.contact-links a {
  overflow-wrap: anywhere;
}
.contact-form input,
.contact-form textarea {
  font-size: 16px;
}
.honey {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
}
#form-status {
  color: #f3ded4;
  font-size: 14px;
  line-height: 1.6;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
dialog {
  color: #eee4dd;
  background: #191513;
  border: 1px solid #795c50;
  width: min(600px, calc(100% - 32px));
  max-height: 85dvh;
  padding: 40px;
  margin: auto;
  line-height: 1.7;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 20px 0;
}
dialog ul {
  padding-left: 20px;
  margin: 20px 0 30px;
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 8px;
  background: none;
  color: inherit;
  border: 0;
  font-size: 30px;
  cursor: pointer;
  min-width: 44px;
}
.theme-toggle > span:first-child {
  display: inline !important;
  font-size: 20px;
}
.hero-kicker {
  line-height: 1.8;
}
.hero-proof {
  justify-content: flex-start;
}
.portrait-frame img {
  width: 100%;
  object-fit: cover;
}
.skill-tags {
  min-height: 120px;
}
.footer-brand {
  font-size: 22px;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .desktop-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--surface);
    padding: 14px;
    border: 1px solid var(--line);
    margin: 0;
    z-index: 100;
  }
  .desktop-nav--open {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .desktop-nav button {
    font-size: 13px;
    padding: 10px 16px;
  }
  .mobile-menu-button {
    display: block;
    min-width: 44px;
    color: var(--ink);
    font-size: 24px;
  }
  .header-actions {
    margin-left: auto;
  }
}
@media (max-width: 700px) {
  .site-header {
    gap: 10px;
  }
  .brand-mark {
    font-size: 23px;
  }
  .header-actions {
    gap: 10px;
  }
  .header-resume {
    display: inline-flex;
    padding: 8px;
    font-size: 11px;
  }
  .theme-toggle {
    min-width: 32px;
  }
  .desktop-nav--open {
    flex-direction: column;
  }
  .hero-copy h1 {
    font-size: clamp(62px, 17vw, 96px);
    line-height: 0.96;
  }
  .hero-section {
    padding-top: 45px;
  }
  .hero-portrait-wrap {
    min-width: 0;
  }
  .hero-proof {
    justify-content: flex-start;
    gap: 24px;
  }
  .certification-row {
    gap: 12px;
  }
  .contact-layout,
  .education-layout,
  .about-layout,
  .skills-layout {
    min-width: 0;
  }
  .contact-form {
    min-width: 0;
  }
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    min-width: 0;
  }
  .site-footer {
    gap: 22px;
  }
  .footer-brand {
    font-size: 20px;
  }
  .portrait-frame {
    max-width: 90%;
  }
  .portrait-float-card {
    right: 0;
  }
  .hero-intro {
    font-size: 16px;
  }
}
@media (max-width: 380px) {
  .header-resume {
    font-size: 10px;
    padding: 4px;
  }
  .header-actions {
    gap: 2px;
  }
  .brand-mark {
    font-size: 20px;
  }
  .hero-cta-row {
    flex-wrap: wrap;
  }
  .contact-links a {
    font-size: 14px;
  }
  .portrait-float-card {
    max-width: 190px;
  }
  .certification-row time {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.submission-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 42px 32px 32px;
  border: 1px solid #866051;
  border-radius: 12px;
  background: #211815;
  color: #f1e5dc;
  text-align: center;
  font-family: "Geist Variable", Arial, sans-serif;
  box-shadow: 0 24px 90px #0007;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
.submission-dialog::backdrop {
  background: rgba(18, 12, 10, 0.72);
  backdrop-filter: blur(5px);
}
.submission-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  color: #cfb2a3;
  font-size: 28px;
  cursor: pointer;
}
.submission-check {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 24px;
  border: 1px solid #a77765;
  border-radius: 50%;
  background: #3a2821;
  color: #e5c5b1;
  font-size: 29px;
}
.submission-eyebrow {
  font-family: "JetBrains Mono Variable", monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: #c09580;
  margin: 0;
}
.submission-dialog h2 {
  font-family: "Space Grotesk Variable", Arial, sans-serif;
  font-size: clamp(27px, 6vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 17px 0;
}
.submission-dialog #submission-description {
  font-size: 16px;
  line-height: 1.6;
  color: #cfb7aa;
  margin: 0 0 28px;
}
.submission-done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
  padding: 14px 18px;
  background: #c19883;
  border: 1px solid #c19883;
  color: #211815;
  min-height: 48px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
}
.submission-done:hover {
  background: #d8b29b;
}
.submission-dialog--light {
  background: #f5e9df;
  color: #30201a;
  border-color: #ba927d;
}
.submission-dialog--light #submission-description {
  color: #75584a;
}
.submission-dialog--light .submission-check {
  background: #e8d4c5;
  color: #76523f;
}
.submission-dialog--light .submission-close {
  color: #75584a;
}
