@import './disclosure.css';

@font-face {
  font-family: 'Dexter Invite';
  src: url('../company-home/Satoshi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Dexter Invite';
  src: url('../company-home/Satoshi-Medium.woff2') format('woff2');
  font-weight: 500 600;
  font-display: swap;
}
@font-face {
  font-family: 'Dexter Invite';
  src: url('../company-home/Satoshi-Bold.woff2') format('woff2');
  font-weight: 650 900;
  font-display: swap;
}

.invite-shell { font: 400 16px/1.5 'Dexter Invite', sans-serif; }
.invite-shell, .invite-shell *, .invite-shell *::before, .invite-shell *::after { box-sizing: border-box; }
.invite-sheet {
  --inset: clamp(20px, 3vw, 30px);
  width: min(100%, 29rem);
  padding: var(--inset);
  margin: 0 auto;
  border: 1px solid var(--edge);
  border-radius: 5px;
  background: var(--panel-bg);
  color: var(--ink);
}
.invite-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.invite-sheet .invite-title :is(h1, h2) {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  font: 700 clamp(22px, 4vw, 32px)/1.16 'Dexter Invite', sans-serif;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.invite-mark, .invite-disclosure > summary::before {
  background: url('../company-home/dexter-face.svg') center / contain no-repeat;
}
.invite-mark { width: 33px; height: 33px; flex: none; order: -1; }
.invite-sheet.invite-shell .invite-intro {
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.5 'Dexter Invite', sans-serif;
  text-wrap: pretty;
}
.invite-address { font-weight: 700; overflow-wrap: anywhere; }
.invite-form { margin: 18px 0 0; }
.invite-form label {
  display: block;
  margin: 0 0 6px;
  color: var(--ink);
  font: 700 14px/1.4 'Dexter Invite', sans-serif;
}
.invite-form input[type=email], .invite-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--field);
  color: var(--ink);
  caret-color: var(--focus);
  font: 400 16px/1.5 'Dexter Invite', sans-serif;
}
.invite-form input::placeholder { color: var(--muted); opacity: 1; }
.invite-form textarea { min-height: 72px; resize: vertical; }
.invite-form .invite-note { margin: 0; padding: 0; border: 0; background: transparent; }
.invite-form summary, .invite-disclosure > summary {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  padding: 0;
  list-style: none;
  cursor: pointer;
}
.invite-form summary::-webkit-details-marker, .invite-disclosure > summary::-webkit-details-marker { display: none; }
.invite-note summary { position: relative; gap: 4px; color: var(--ink); font-size: 14px; font-weight: 550; }
.invite-note summary span { color: var(--muted); }
.invite-note summary::before {
  content: '';
  width: 12px;
  height: 12px;
  margin-right: 3px;
  background: linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat;
}
.invite-note summary::after {
  content: '';
  position: absolute;
  inset-inline-start: 5.25px;
  top: 50%;
  width: 1.5px;
  height: 10px;
  background: currentColor;
  transform: translateY(-50%) rotate(0);
}
.invite-note[open] summary::after { transform: translateY(-50%) rotate(90deg); }
.invite-note textarea { margin-bottom: 14px; }
.invite-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid;
  border-color: #ff9b64 #d7530e #b64108;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff7b31, #f2671a 48%, #ec5b0e);
  box-shadow: inset 0 1px 0 #ffffff38;
  color: #171918;
  font: 700 15px/1.4 'Dexter Invite', sans-serif;
  cursor: pointer;
}
.invite-form button:hover { background: linear-gradient(#ff893f, #fd7426 48%, #ef6419); }
.invite-form button:active { background: #ed702a; transform: translateY(1px); }
.invite-form button:disabled { background: #dbab8b; cursor: progress; }
.invite-form button .invite-arrow { width: 18px; height: 18px; flex: none; }
.invite-shell :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.invite-sheet .invite-error { margin: 0 0 12px; color: var(--error); font-weight: 600; }
.invite-sheet ::selection { background: #ffc39f; color: #23190f; }

.invite-docs {
  --panel-bg: hsl(var(--fd-muted));
  --ink: hsl(var(--fd-foreground));
  --edge: hsl(var(--fd-border));
  --field: hsl(var(--fd-background));
  --muted: hsl(var(--fd-muted-foreground));
  --rule: color-mix(in srgb, var(--ink) 44%, var(--field));
  --focus: hsl(var(--fd-ring));
  --error: var(--ink);
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--font-body, Arial), sans-serif;
}
.invite-docs .invite-disclosure { margin: 0; padding: 0; border: 0; background: none; }
.invite-disclosure > summary { gap: 8px; color: inherit; font-weight: 650; text-underline-offset: 3px; }
.invite-disclosure > summary:hover { text-decoration: underline; }
.invite-disclosure > summary::before { content: ''; width: 22px; height: 22px; flex: none; }
.invite-disclosure > summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin: -3px 3px 0 2px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.invite-disclosure[open] > summary::after { transform: translateY(3px) rotate(225deg); }
.invite-expanded { max-width: 29rem; }
.invite-doc-panel { --inset: clamp(16px, 3vw, 22px); margin: 0; }
.invite-docs .invite-status { margin: 0 0 2px; }
.invite-check {
  width: 24px;
  height: 24px;
  order: -1;
  padding: 3px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  color: hsl(var(--fd-primary));
}

/* Preserve the compact confirmation from the website. */
.invite-site-panel.invite-receipt { --ink: #29241b; max-width: 28.5rem; border: 0; border-radius: 0; background: #fff9eb; color-scheme: light; }
.invite-site-panel.invite-receipt .invite-title { justify-content: space-between; margin-bottom: 12px; }
.invite-stamp { position: relative; width: 38px; flex: none; aspect-ratio: 134 / 154; background: url('./postage.svg') center / contain no-repeat; transform: rotate(5deg); }
.invite-postmark { position: absolute; right: 12%; bottom: -1px; width: 145%; aspect-ratio: 163 / 82; background: url('./postmark.svg') center / contain no-repeat; transform: rotate(-11deg); }
@media (max-width: 360px) {
  .invite-site-panel { --inset:18px; }
  .invite-stamp { width: 32px; }
}
@media (forced-colors: active) {
  .invite-site-panel.invite-receipt, .invite-form button { border: 1px solid CanvasText; }
  .invite-note summary { display: list-item; list-style: disclosure-closed; }
  .invite-note[open] summary { list-style: disclosure-open; }
  .invite-note summary::before, .invite-note summary::after { display: none; }
}
