:root {
  color-scheme: light;
  --cream: #fbf8f1;
  --ink: #172b4d;
  --copy: #59616c;
  --green: #55966d;
  --green-hover: #467f5b;
  --label: #e7e8e8;
  --focus: #d19445;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body {
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
button:focus-visible, a:focus-visible, [contenteditable="true"]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 10px;
  padding: 11px 15px;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
  font-size: 13px;
}
.skip-link:focus { transform: translateY(0); }
.page-shell, .main-content, .profile { width: 100%; min-height: 100vh; }
.profile { display: flex; flex-direction: column; }
.photo-frame {
  position: relative;
  width: 100%;
  line-height: 0;
  background: #e3ded1;
}
.profile-photo { display: block; width: 100%; height: auto; }
.menu-toggle, .mobile-menu { display: none; }
.profile-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 30px;
  flex: 1;
  min-height: clamp(192px, 19vw, 244px);
  padding: 20px 4.6vw 48px;
  background: var(--cream);
}
.profile-copy { min-width: 0; }
h1 {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(35px, 4.55vw, 48px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.facts { display: grid; gap: 1px; margin-top: 3px; }
.facts p {
  margin: 0;
  color: var(--copy);
  font-size: 20px;
  line-height: 1.34;
  letter-spacing: .005em;
}
.details-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 187px;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: 18px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color .16s ease, transform .16s ease;
}
.details-button:hover { background: var(--green-hover); transform: translateY(-1px); }
.arrow {
  position: relative;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.labels {
  position: absolute;
  right: 4.1vw;
  bottom: 14px;
  left: 4.1vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6e7379;
  font-size: 12px;
  line-height: 1;
}
.labels span:first-child {
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--label);
}
.labels span:last-child { padding-right: 0; }
.details-dialog {
  width: min(420px, calc(100% - 36px));
  max-width: none;
  padding: 20px 24px 25px;
  border: 0;
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 20px 70px rgba(18, 35, 58, .22);
}
.details-dialog::backdrop { background: rgba(15, 26, 43, .48); }
.dialog-top { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.dialog-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d9d8d0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.dialog-close span, .dialog-close span::after {
  display: block;
  width: 12px;
  height: 1px;
  background: var(--ink);
  transform: rotate(45deg);
}
.dialog-close span::after { content: ""; transform: rotate(90deg); }
.details-dialog h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.02em;
}
@media (max-width: 700px) {
  .profile { min-height: 100dvh; }
  .profile-content {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 20px;
    min-height: 292px;
    padding: 22px 22px 62px;
  }
  h1 { font-size: clamp(32px, 8vw, 42px); }
  .facts p { font-size: 17px; }
  .details-button { min-width: 164px; min-height: 48px; font-size: 16px; }
  .labels { right: 18px; bottom: 13px; left: 18px; font-size: 10px; }
  .labels span:first-child { padding: 7px 10px; }
  .menu-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 50%;
    background: rgba(251,248,241,.92);
    color: var(--ink);
    cursor: pointer;
  }
  .menu-icon { display: grid; gap: 5px; width: 17px; }
  .menu-icon i { display: block; width: 100%; height: 1.5px; background: currentColor; }
  .menu-toggle[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .mobile-menu {
    position: absolute;
    z-index: 2;
    top: 60px;
    right: 12px;
    display: block;
    min-width: 154px;
    padding: 6px;
    border: 1px solid rgba(23,43,77,.12);
    border-radius: 10px;
    background: var(--cream);
    box-shadow: 0 8px 24px rgba(23,43,77,.17);
  }
  .mobile-menu[hidden] { display: none; }
  .menu-details {
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    font-size: 14px;
    cursor: pointer;
  }
  .menu-details:hover { background: #eeece5; }
}
@media (max-width: 380px) {
  .profile-content { padding-right: 17px; padding-left: 17px; }
  .labels { right: 14px; left: 14px; font-size: 9px; }
  .labels span:first-child { padding-right: 8px; padding-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
