@font-face {
  font-family: 'Libre Baskerville';
  src: url('/assets/heading.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url('/assets/body.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url('/assets/body-semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: light;
  --background: #f2f0ea;
  --surface: #fcfbf8;
  --ink: #0a0a0c;
  --muted: #5a6470;
  --accent: #4a002e;
  --accent-hover: #360022;
  --border: #d2cdc4;
  --highlight: #c7e0ff;
  font-family: Montserrat, Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: var(--accent); text-underline-offset: .22em; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  box-shadow: 0 0 0 5px var(--highlight);
}
button { font: inherit; cursor: pointer; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: 'Libre Baskerville', Georgia, serif; font-weight: 400; }
p { line-height: 1.75; }
.icon { width: 21px; height: 21px; flex-shrink: 0; }
.page-shell { width: min(100% - 48px, 640px); margin: 0 auto; padding-bottom: 32px; }
.page-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 20px; padding: 22px 0 16px; }
.wordmark { font-family: 'Libre Baskerville', Georgia, serif; font-size: 16px; color: var(--ink); text-decoration: none; padding: 12px 0; min-width: 0; overflow-wrap: anywhere; }
.edition { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.preview-notice { display: grid; gap: 4px; font-size: 12px; line-height: 1.6; color: #4c3d46; background: #eae3e4; border: 1px solid #c5b7bc; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; }
.preview-notice strong { font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 18px 48px #0a0a0c08; }
.identity { text-align: center; padding: 32px 36px 26px; border-top: 4px solid var(--accent); border-radius: 24px 24px 0 0; }
.eyebrow { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.avatar { position: relative; width: 88px; height: 88px; margin: 0 auto 20px; }
.monogram { width: 100%; height: 100%; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--background); position: relative; }
.monogram::after { content: ''; position: absolute; inset: 5px; border: 1px solid var(--border); border-radius: 50%; }
.monogram span { font: 32px 'Libre Baskerville', Georgia, serif; color: var(--accent); letter-spacing: -.08em; padding-right: 3px; }
.portrait { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: var(--surface); }
h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.3; letter-spacing: -.035em; overflow-wrap: anywhere; }
.role, .organisation { font-size: 13px; line-height: 1.7; margin-top: 10px; color: var(--muted); overflow-wrap: anywhere; }
.organisation { margin-top: 4px; }
.intro { font-size: 16px; line-height: 1.75; max-width: 480px; margin: 18px auto 24px; color: var(--muted); overflow-wrap: anywhere; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 18px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; line-height: 1.5; font-weight: 600; text-decoration: none; transition: background-color 160ms, color 160ms, border-color 160ms; }
.button-primary { background: var(--accent); color: var(--background); }
.button-primary:hover { background: var(--accent-hover); }
.save-contact { display: grid; grid-template-columns: 24px minmax(0, 1fr) 24px; width: 100%; font-size: 15px; min-height: 56px; }
.save-contact .icon:last-child { justify-self: end; }
.save-note { font-size: 12px; margin-top: 12px; color: var(--muted); }
.contact-section, .links-section, .sharing-section, .exchange-section { border-top: 1px solid var(--border); padding: 26px 32px; }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.section-number { font-size: 11px; letter-spacing: .08em; color: var(--muted); }
h2 { font-size: 20px; line-height: 1.5; letter-spacing: -.015em; }
.contact-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.contact-actions.email-only { grid-template-columns: 1fr; }
.contact-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 78px; border: 1px solid var(--border); border-radius: 7px; color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; }
.contact-action:hover { background: var(--background); border-color: var(--accent); }
.contact-details { display: flex; flex-wrap: wrap; gap: 0 20px; justify-content: center; margin-top: 14px; }
.contact-details a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; min-width: 0; max-width: 100%; }
.feature-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding: 16px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--ink); }
.feature-link:first-child { padding-top: 0; }
.feature-link:last-child { border-bottom: 0; padding-bottom: 0; }
.feature-link > span { min-width: 0; }
.feature-link strong { font-size: 14px; line-height: 1.6; font-weight: 600; overflow-wrap: anywhere; }
.link-description { display: block; font-size: 13px; line-height: 1.7; margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.feature-link .icon { width: 19px; height: 19px; color: var(--accent); transition: transform 160ms; }
.feature-link:hover .icon { transform: translateX(3px); }
.section-copy { font-size: 14px; color: var(--muted); margin-top: -8px; margin-bottom: 18px; }
.share-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.share-actions > :last-child { grid-column: 1 / -1; }
.button-secondary { border-color: var(--border); background: transparent; color: var(--accent); font-size: 13px; gap: 8px; padding: 12px; }
.button-secondary .icon { width: 18px; height: 18px; }
.button-secondary:hover { background: var(--background); border-color: var(--accent); }
.card-address { display: block; width: fit-content; max-width: 100%; padding: 12px 0; margin: 14px auto 0; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; user-select: all; }
.status { font-size: 13px; line-height: 1.7; color: var(--accent); text-align: center; overflow-wrap: anywhere; }
.status:not(:empty) { padding-top: 8px; }
.qr-details { margin-top: 18px; border-top: 1px solid var(--border); }
summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; min-height: 52px; padding: 14px 0; font-size: 14px; color: var(--accent); }
summary::-webkit-details-marker { display: none; }
.qr-details summary span { margin-left: auto; font-size: 22px; line-height: 1; }
.qr-details[open] summary span { transform: rotate(45deg); }
.qr-content { text-align: center; padding: 12px 0 20px; }
.qr-content img { display: block; width: 256px; max-width: 100%; height: auto; margin: 0 auto; background: #fff; }
.qr-content p { font-size: 13px; color: var(--muted); margin-top: 10px; }
.qr-downloads { display: flex; flex-wrap: wrap; gap: 0 16px; justify-content: center; align-items: center; }
.qr-downloads a { display: inline-flex; align-items: center; min-height: 44px; }
.save-help { border-top: 1px solid var(--border); }
.save-help summary { font-size: 12px; color: var(--muted); }
.save-help p { font-size: 13px; color: var(--muted); padding-bottom: 12px; }
.exchange-section .section-heading { align-items: baseline; margin-bottom: 12px; }
.exchange-section .section-copy { margin-top: 0; margin-bottom: 20px; }
.exchange-details > summary { padding: 14px 16px; gap: 12px; border: 1px solid var(--border); border-radius: 10px; background: #f6f1f2; font-weight: 600; line-height: 1.5; }
.exchange-details > summary:hover { border-color: var(--accent); }
.exchange-trigger-icon { display: flex; }
.exchange-trigger-icon .icon { width: 20px; height: 20px; }
.exchange-trigger-copy { flex: 1; min-width: 0; }
.exchange-toggle { font-size: 24px; line-height: 1; font-weight: 400; flex-shrink: 0; }
.exchange-details[open] > summary { margin-bottom: 24px; border-color: var(--accent); }
.exchange-details[open] > summary .exchange-toggle { transform: rotate(45deg); }
[data-contact-form] { display: grid; gap: 20px; position: relative; min-width: 0; }
.exchange-note { font-size: 13px; color: var(--muted); line-height: 1.7; }
.exchange-fields, .exchange-optional-fields { display: grid; gap: 20px; min-width: 0; }
.exchange-field { display: grid; gap: 8px; min-width: 0; }
.exchange-field label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.exchange-field label span { font-size: 12px; font-weight: 400; color: var(--muted); }
[data-contact-form] input, [data-contact-form] textarea { width: 100%; min-width: 0; min-height: 54px; border: 1px solid #bcb6ad; border-radius: 9px; background: #fff; color: var(--ink); padding: 14px; font: inherit; font-size: 16px; line-height: 1.5; transition: border-color 160ms, box-shadow 160ms; }
[data-contact-form] input:focus-visible, [data-contact-form] textarea:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 5px #4a002e0a; }
[data-contact-form] input[readonly], [data-contact-form] textarea[readonly] { background: var(--background); }
[data-contact-form] textarea { resize: vertical; min-height: 112px; }
[data-contact-form] textarea::placeholder { color: var(--muted); opacity: 1; }
.exchange-optional { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.exchange-optional > summary { justify-content: space-between; font-size: 13px; line-height: 1.6; gap: 16px; padding: 14px 0; }
.exchange-optional-mark { font-size: 21px; line-height: 1; flex-shrink: 0; }
.exchange-optional[open] > summary .exchange-optional-mark { transform: rotate(45deg); }
.exchange-optional-fields { padding: 6px 0 20px; }
.exchange-verification { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.exchange-check-title { font-size: 13px; font-weight: 600; line-height: 1.6; }
.exchange-check-hint { font-size: 12px; color: var(--muted); line-height: 1.6; text-align: center; }
.exchange-submit { width: 100%; min-height: 56px; justify-content: space-between; padding-inline: 18px; }
[data-contact-form] button:disabled { opacity: 1; background: #e9e3e5; border-color: #c9bdc3; color: #67545f; cursor: not-allowed; }
[data-contact-form] button:disabled:hover { background: #e9e3e5; }
.exchange-trust { font-size: 12px; line-height: 1.65; color: var(--muted); text-align: center; margin-top: -8px; }
.exchange-data { border-top: 1px solid var(--border); margin-top: -4px; }
.exchange-data > summary { font-size: 12px; min-height: 44px; padding: 10px 0; text-decoration: underline; text-underline-offset: .22em; }
.exchange-data p { font-size: 13px; color: var(--muted); padding-bottom: 6px; }
.exchange-fallback { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.8; margin-top: 18px; }
.exchange-fallback a { display: inline-flex; align-items: center; min-height: 44px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.exchange-status { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.exchange-status:empty { display: none; }
.exchange-status:not(:empty) { padding: 14px 16px; border: 1px solid var(--border); border-radius: 9px; background: var(--background); }
.exchange-status[data-state="success"] { border-color: #809a80; background: #edf3eb; color: #28452b; }
.exchange-status[data-state="error"] { border-color: #c4a9b4; background: #f6edef; color: var(--accent); }
[data-captcha] { display: flex; justify-content: center; min-height: 65px; width: 100%; max-width: 100%; }
[data-captcha][data-size="compact"] { min-height: 140px; }
.page-footer { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 22px 4px 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.page-footer span:first-child { font-weight: 600; }
.page-footer span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.skip-link { position: absolute; top: 8px; left: 8px; transform: translateY(-200%); background: var(--surface); padding: 14px; z-index: 10; }
.skip-link:focus { transform: none; }
.not-found { width: min(100% - 48px, 560px); margin: 15vh auto; padding: 32px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); }
.not-found p { margin: 24px 0; color: var(--muted); }
@media (min-width: 600px) {
  .exchange-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .share-actions > :last-child { grid-column: auto; }
}
@media (max-width: 520px) {
  .page-shell { width: calc(100% - 24px); }
  .page-header { padding: 12px 4px; }
  .wordmark { font-size: 14px; }
  .edition { font-size: 10px; letter-spacing: .08em; }
  .preview-notice { padding: 10px 12px; font-size: 12px; margin-bottom: 12px; }
  .card { border-radius: 18px; }
  .identity { padding: 24px 22px; border-radius: 18px 18px 0 0; }
  .eyebrow { font-size: 10px; margin-bottom: 16px; }
  .avatar { width: 76px; height: 76px; margin-bottom: 18px; }
  .monogram span { font-size: 28px; }
  .intro { margin: 16px auto 20px; }
  .contact-section, .links-section, .sharing-section, .exchange-section { padding: 24px 20px; }
  .contact-actions { gap: 8px; }
  .contact-action { font-size: 12px; }
  .contact-details { gap: 0 12px; }
  .contact-details a { font-size: 12px; }
  .button-secondary { font-size: 12px; padding: 12px 10px; }
  .qr-content img { width: 240px; }
  .card-address { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
