:root {
  --ink: #141c1e;
  --muted: #647070;
  --paper: #f5f1e9;
  --white: #fffdf9;
  --line: #d7d0c4;
  --brand: #d30943;
  --brand-dark: #9d0a34;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --shadow: 0 24px 70px rgba(20, 28, 30, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(20, 28, 30, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 28, 30, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(211, 9, 67, 0.35);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 220px;
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
}

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

.eyebrow {
  margin: 0 0 18px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.directory-hero {
  display: grid;
  min-height: 430px;
  align-items: end;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  gap: 56px;
  padding: 92px 0 72px;
}

.directory-hero h1,
.profile-name,
.generator-copy h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.directory-hero h1 em {
  color: var(--brand);
  font-weight: 400;
}

.hero-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.directory {
  padding: 64px 0 110px;
  border-top: 1px solid var(--line);
}

.directory-topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.search-wrap {
  width: min(100%, 320px);
}

.search-wrap label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-wrap input,
.field input,
.field select {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.search-wrap input:focus,
.field input:focus,
.field select:focus {
  border-color: var(--brand);
  box-shadow: 0 2px 0 var(--brand);
}

.people-list {
  border-top: 1px solid var(--ink);
}

.person-row {
  display: grid;
  grid-template-columns: 72px minmax(210px, 1.2fr) minmax(200px, 0.9fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 116px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.person-row:hover {
  color: var(--brand);
  transform: translateX(6px);
}

.initials {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.person-row h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.person-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.5;
  text-transform: uppercase;
}

.arrow {
  font-size: 1.7rem;
}

.empty-message {
  padding: 44px 0;
  color: var(--muted);
}

.profile-main {
  padding: 54px 0 110px;
}

.back-link {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--brand);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: clamp(52px, 8vw, 110px);
}

.profile-intro {
  min-width: 0;
}

.profile-mark {
  display: grid;
  width: 86px;
  height: 86px;
  margin-bottom: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-family: var(--serif);
  font-size: 1.6rem;
}

.profile-name {
  font-size: clamp(3.6rem, 8vw, 8.2rem);
  overflow-wrap: anywhere;
}

.profile-role {
  margin: 28px 0 0;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.contact-lines {
  margin: 72px 0 0;
  border-top: 1px solid var(--ink);
}

.contact-line {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-line dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-line dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.contact-line a {
  text-underline-offset: 4px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.button-primary:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.qr-panel {
  align-self: start;
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.qr-frame {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  background: white;
}

.qr-frame::before,
.qr-frame::after {
  position: absolute;
  width: 34px;
  height: 34px;
  content: "";
}

.qr-frame::before {
  top: -1px;
  left: -1px;
  border-top: 3px solid var(--brand);
  border-left: 3px solid var(--brand);
}

.qr-frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 3px solid var(--brand);
  border-bottom: 3px solid var(--brand);
}

.qr-frame img,
.qr-frame canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.qr-frame canvas {
  width: 100% !important;
  height: auto !important;
}

.qr-kicker {
  margin: 24px 0 7px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.qr-note,
.privacy-note,
.generator-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-underline-offset: 4px;
  text-transform: uppercase;
}

.generator-main {
  padding: 76px 0 110px;
}

.generator-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 54px;
  padding-bottom: 64px;
}

.generator-copy h1 {
  font-size: clamp(3.2rem, 7vw, 7rem);
}

.generator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: clamp(44px, 8vw, 100px);
  padding-top: 64px;
  border-top: 1px solid var(--ink);
}

.generator-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}

.field {
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.generator-output {
  align-self: start;
}

.qr-placeholder {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  padding: 32px;
  background: #ece7de;
  color: var(--muted);
  text-align: center;
}

.generator-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.42;
}

.privacy-note {
  margin-top: 22px;
}

.generator-status {
  margin-top: 8px;
}

.site-footer {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer a {
  text-underline-offset: 4px;
}

@media (max-width: 800px) {
  .shell {
    width: min(100% - 28px, 680px);
  }

  .site-header {
    min-height: 82px;
  }

  .brand-logo {
    width: 164px;
  }

  .site-nav {
    gap: 14px;
    font-size: 0.67rem;
  }

  .directory-hero,
  .generator-copy,
  .profile-grid,
  .generator-layout {
    grid-template-columns: 1fr;
  }

  .directory-hero {
    min-height: 0;
    gap: 36px;
    padding: 72px 0 56px;
  }

  .directory-hero h1,
  .profile-name,
  .generator-copy h1 {
    letter-spacing: -0.045em;
  }

  .directory {
    padding: 48px 0 80px;
  }

  .directory-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .search-wrap {
    width: 100%;
  }

  .person-row {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 98px;
  }

  .person-title {
    grid-column: 2 / -1;
    margin-top: -18px;
  }

  .profile-main {
    padding: 38px 0 80px;
  }

  .back-link {
    margin-bottom: 38px;
  }

  .profile-grid {
    gap: 54px;
  }

  .profile-mark {
    width: 70px;
    height: 70px;
    margin-bottom: 30px;
  }

  .contact-lines {
    margin-top: 52px;
  }

  .qr-panel {
    width: min(100%, 440px);
    justify-self: center;
  }

  .generator-main {
    padding: 58px 0 80px;
  }

  .generator-copy {
    gap: 30px;
    padding-bottom: 48px;
  }

  .generator-layout {
    gap: 52px;
    padding-top: 48px;
  }
}

@media (max-width: 520px) {
  .site-nav a:first-child {
    display: none;
  }

  .directory-hero h1,
  .profile-name,
  .generator-copy h1 {
    font-size: clamp(2.85rem, 14vw, 4.4rem);
  }

  .person-row {
    grid-template-columns: 48px minmax(0, 1fr) 18px;
  }

  .initials {
    width: 44px;
    height: 44px;
    font-size: 0.86rem;
  }

  .person-title {
    font-size: 0.68rem;
  }

  .contact-line {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
  }

  .profile-actions,
  .generator-downloads {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .qr-panel {
    padding: 18px;
  }

  .generator-form {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body::before,
  .site-header,
  .site-footer,
  .profile-actions,
  .back-link,
  .text-link {
    display: none;
  }

  .profile-main {
    padding: 0;
  }

  .profile-grid {
    min-height: 100vh;
    align-items: center;
  }

  .qr-panel {
    box-shadow: none;
  }
}
