/* Antenna brand, taken from weareantenna.be: PolySans for headings, Messina Sans for text,
   purple #5541f0 on near-black #050505 and off-white #f6f6fa, pill buttons, 1rem cards. */

@font-face { font-family: PolySans; src: url(fonts/PolySans-Neutral.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: PolySans; src: url(fonts/PolySans-Median.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Messina Sans'; src: url(fonts/MessinaSans-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Messina Sans'; src: url(fonts/MessinaSans-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --purple: #5541f0;
  --purple-hover: #6551f3;
  --ink: #050505;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --bg: #f6f6fa;
  --surface: #fff;
  --error: #c4122f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 'Messina Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: PolySans, system-ui, sans-serif; font-weight: 500; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; }
h2 { font-size: 1.5rem; }
a { color: inherit; }
code { font-size: 0.9em; background: var(--bg); padding: 0.1em 0.35em; border-radius: 0.25rem; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand svg { height: 22px; width: auto; }
.brand span {
  font-family: PolySans, system-ui, sans-serif;
  font-size: 1.05rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
}

main { max-width: 72rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem); }

.intro p, .lead { color: var(--muted); font-size: 1.1rem; max-width: 36rem; margin: 0.75rem 0 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem;
  min-height: 10rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--purple); transform: translateY(-2px); }
.card-title { font-family: PolySans, system-ui, sans-serif; font-weight: 500; font-size: 1.25rem; line-height: 1.2; }
.card-host { color: var(--purple); font-size: 0.875rem; word-break: break-all; }
.card-date { margin-top: auto; color: var(--muted); font-size: 0.875rem; }

.empty, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.empty { margin-top: 2.5rem; }
.empty p { color: var(--muted); margin: 0.5rem 0 0; }
.panel { max-width: 28rem; margin: 0 auto; }
.panel h1 { font-size: 2.25rem; }
.panel .lead { font-size: 1rem; margin-bottom: 1.75rem; }
.panel form { display: flex; flex-direction: column; gap: 0.75rem; }
.panel label { font-size: 0.95rem; }

input {
  font: inherit;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 50rem;
  background: var(--bg);
  outline: none;
}
input:focus { border-color: var(--purple); background: var(--surface); box-shadow: 0 0 0 3px rgb(85 65 240 / 0.15); }
input.code { font-family: PolySans, system-ui, sans-serif; font-size: 1.75rem; letter-spacing: 0.4em; text-align: center; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  border-radius: 50rem;
  border: 1px solid transparent;
  font: 600 1rem 'Messina Sans', system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.button.primary { background: var(--purple); color: #fff; }
.button.primary:hover { background: var(--purple-hover); }
.button.google { width: 100%; background: var(--surface); border-color: var(--line); }
.button.google:hover { border-color: var(--ink); }
.button.google svg { width: 20px; height: 20px; }
.panel > .button.primary { margin-top: 0.5rem; }

.link { font: inherit; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; }
.hint { color: var(--muted); font-size: 0.875rem; margin: 0.75rem 0 0; text-align: center; }

.or { display: flex; align-items: center; gap: 1rem; margin: 1.75rem 0; color: var(--muted); font-size: 0.875rem; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }

.error {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #fdecef;
  color: var(--error);
  font-size: 0.95rem;
}

/* --- Artifact frame: top bar + the artifact in an iframe, like Claude artifacts --- */

body.artifact { display: flex; flex-direction: column; height: 100vh; overflow: hidden; background: var(--surface); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.5rem;
  padding: 0 1rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.emblem { display: flex; flex-shrink: 0; padding-right: 0.75rem; border-right: 1px solid var(--line); }
.emblem svg { height: 17px; width: auto; }
.topbar-title { display: flex; align-items: baseline; gap: 0.6rem; min-width: 0; }
.topbar-title strong {
  font-family: PolySans, system-ui, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-title span { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }

.icon-button {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: var(--muted);
}
.icon-button:hover { background: var(--bg); color: var(--ink); }
.icon-button svg { width: 18px; height: 18px; }

.button.small { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.button.secondary { background: var(--surface); border-color: var(--line); white-space: nowrap; }
.button.secondary:hover { border-color: var(--ink); }

.frame { flex: 1; width: 100%; border: 0; background: #fff; }

.dialog {
  width: min(32rem, calc(100vw - 2rem));
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 1.5rem 4rem rgb(5 5 5 / 0.18);
}
.dialog::backdrop { background: rgb(5 5 5 / 0.35); }
.dialog h2 { font-size: 1.6rem; }
.dialog h3 { font: 600 0.95rem 'Messina Sans', system-ui, sans-serif; margin: 1.75rem 0 0.5rem; }
.dialog-close { position: absolute; top: 1rem; right: 1rem; }
.dialog-close button { width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: none; font-size: 1.4rem; color: var(--muted); cursor: pointer; }
.dialog-close button:hover { background: var(--bg); color: var(--ink); }
.muted { color: var(--muted); font-size: 0.9rem; margin: 0.4rem 0 0; }
.notice { margin: 1rem 0 0; padding: 0.65rem 1rem; border-radius: 0.75rem; background: #eeebfe; color: #3a28c9; font-size: 0.9rem; }

.copy, .row { display: flex; gap: 0.5rem; }
.copy { margin-top: 1.5rem; }
.copy input, .row input { flex: 1; min-width: 0; }
.copy input { color: var(--muted); font-size: 0.9rem; }
.invite { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.5rem; }
.invite label { font-size: 0.95rem; }
.check { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.875rem !important; }
.check input { padding: 0; accent-color: var(--purple); }

.guests { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 0.75rem; }
.guests li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.65rem 1rem; font-size: 0.9rem; }
.guests li + li { border-top: 1px solid var(--line); }
.guests .link { font-size: 0.85rem; color: var(--muted); }

@media (max-width: 640px) {
  .topbar { padding: 0 0.75rem; gap: 0.5rem; }
  .topbar-title span { display: none; }
}

/* --- Publishing --- */
.intro-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.panel.wide { max-width: 40rem; }
.panel.wide + .panel.wide { margin-top: 1.5rem; }
.panel h2 + .lead { margin-top: 0.5rem; }
.slug { display: flex; align-items: center; gap: 0.5rem; }
.slug input { flex: 1; min-width: 0; }
.slug span { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.hint.left { text-align: left; margin: -0.25rem 0 0.5rem; }
input.file { border-radius: 1rem; border-style: dashed; padding: 1.5rem 1.1rem; cursor: pointer; }
.token { margin-bottom: 1.25rem; padding: 1rem; border-radius: 0.75rem; background: #eeebfe; }
.token p { margin: 0 0 0.75rem; font-size: 0.9rem; }
.token input { width: 100%; font-family: ui-monospace, monospace; font-size: 0.85rem; background: #fff; }
.token pre { margin: 0.75rem 0 0; padding: 0.75rem; overflow-x: auto; border-radius: 0.5rem; background: #fff; font-size: 0.8rem; }
.token code { background: none; padding: 0; }
.panel .row { flex-direction: row; margin-bottom: 1rem; }
.muted-inline { color: var(--muted); }
.version { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.version .muted { margin: 0; }
input.file::file-selector-button {
  margin-right: 1rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 50rem;
  background: var(--surface);
  font: 600 0.9rem 'Messina Sans', system-ui, sans-serif;
  cursor: pointer;
}
input.file:hover::file-selector-button { border-color: var(--ink); }
.token pre { white-space: pre-wrap; word-break: break-all; }

/* --- Roles and deleting --- */
.panel h2 { font-size: 1.25rem; margin: 1.75rem 0 0.75rem; }
.panel .guests + .hint { margin-top: 0.5rem; }
.panel .guests + .hint + .row { margin-top: 1.25rem; }
section.intro + .notice { margin-top: 1.5rem; max-width: 36rem; }
.danger .muted { margin: 0 0 0.75rem; }
.button.danger { background: var(--surface); border-color: #f3c3cc; color: var(--error); }
.button.danger:hover { background: #fdecef; border-color: var(--error); }

/* --- Account dropdown --- */
.account { position: relative; }
.account summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border-radius: 50rem;
}
.account summary:hover, .account[open] summary { background: var(--bg); }
.account-who { display: flex; flex-direction: column; line-height: 1.2; text-align: left; min-width: 0; max-width: 14rem; }
.account-who strong { font-family: PolySans, system-ui, sans-serif; font-weight: 500; font-size: 0.9rem; }
.account-who span { color: var(--muted); font-size: 0.78rem; }
.account-who strong, .account-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account .chevron { width: 16px; height: 16px; color: var(--muted); transition: transform 0.15s; }
.account[open] .chevron { transform: rotate(180deg); }
.account summary::-webkit-details-marker { display: none; }
.account summary:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font: 500 0.95rem PolySans, system-ui, sans-serif;
  object-fit: cover;
}
.avatar.sm { width: 2.25rem; height: 2.25rem; }
.avatar.lg { width: 2.75rem; height: 2.75rem; font-size: 1.15rem; }
.account-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  z-index: 20;
  width: 17rem;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 1rem 2.5rem rgb(5 5 5 / 0.12);
}
.account-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.75rem 1rem; margin-bottom: 0.25rem; border-bottom: 1px solid var(--line); }
.account-head div { display: flex; flex-direction: column; min-width: 0; }
.account-head strong { font-family: PolySans, system-ui, sans-serif; font-weight: 500; }
.account-head div span { color: var(--muted); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu a, .account-menu button {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-radius: 0.6rem;
  background: none;
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}
.account-menu a:hover, .account-menu button:hover, .account-menu a:focus-visible, .account-menu button:focus-visible { background: var(--bg); outline: none; }
.account-menu form { margin: 0.25rem 0 0; padding-top: 0.25rem; border-top: 1px solid var(--line); }

/* Small screens: only the photo; name and email are in the menu. */
@media (max-width: 640px) {
  .account-who, .account .chevron { display: none; }
  .account summary { padding: 0; }
}
.topbar-left { overflow: hidden; }
.topbar-right { flex-shrink: 0; }

/* --- Main nav --- */
.bar .brand { margin-right: auto; }
.nav { display: flex; gap: 0.25rem; margin-right: 1rem; }
.nav a {
  padding: 0.5rem 0.9rem;
  border-radius: 50rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}
.nav a:hover { color: var(--ink); background: var(--bg); }
.nav a[aria-current='page'] { color: var(--ink); background: var(--bg); font-weight: 600; }

/* --- Instructions --- */
.doc { max-width: 44rem; margin-top: 2.5rem; }
.doc h2 { margin: 2.5rem 0 1rem; }
.doc h2:first-child { margin-top: 0; }
.doc ul { padding-left: 1.2rem; margin: 0; }
.doc li { margin-bottom: 0.6rem; }
.doc pre { margin: 0.75rem 0; padding: 1rem; overflow-x: auto; border-radius: 0.75rem; background: var(--surface); border: 1px solid var(--line); font-size: 0.85rem; }
.doc pre code { background: none; padding: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.step { display: flex; gap: 1rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; margin: 0; }
.step h3 { font: 500 1.1rem PolySans, system-ui, sans-serif; margin: 0.2rem 0 0.5rem; }
.step p { margin: 0 0 0.5rem; }
.step > div { min-width: 0; }
.step-n {
  display: grid; place-items: center; flex-shrink: 0;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--purple); color: #fff; font: 500 0.95rem PolySans, system-ui, sans-serif;
}

@media (max-width: 760px) {
  .brand span { display: none; }
  .nav { margin-right: 0.25rem; }
  .nav a { padding: 0.45rem 0.6rem; font-size: 0.9rem; }
}
.steps { grid-template-columns: minmax(0, 1fr); }
.doc pre { white-space: pre-wrap; word-break: break-all; }
.menu-nav { display: none; }
@media (max-width: 640px) {
  .bar .nav { display: none; }
  .menu-nav { display: block; padding-bottom: 0.25rem; margin-bottom: 0.25rem; border-bottom: 1px solid var(--line); }
}
