@font-face {
  font-family: "Fraunces";
  src: url("/mingle/fonts/fraunces-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f7f6f4;
  --card: #ffffff;
  --text: #21182c;
  --muted: #62605e;
  --border: #ddd7ee;
  --accent: #6c42f0;
  --accent-dark: #5a34d6;
  --danger: #a4364e;
  --success: #216b55;
  --focus: #1f6feb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, #eee7fd 0, var(--bg) 22rem);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  hyphens: auto;
}

a { color: var(--accent-dark); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--text);
  color: #fff;
}
.skip-link:focus { top: 1rem; }

.site-header {
  border-bottom: 1px solid rgba(108, 66, 240, 0.18);
  background: rgba(247, 246, 244, 0.9);
  backdrop-filter: blur(12px);
}

.header-inner, main, .site-footer {
  width: min(100% - 2rem, 760px);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
}

.brand-svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--accent);
  flex-shrink: 0;
}

nav { display: flex; flex-wrap: wrap; gap: 0.8rem; }
nav a { font-size: 0.92rem; font-weight: 650; text-decoration: none; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; }

main { padding: 3.5rem 0 4.5rem; }

.hero { margin-bottom: 2rem; }
.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.025em; overflow-wrap: anywhere; }
h1, h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; }
h1 { margin: 0; font-size: clamp(2rem, 7vw, 3.3rem); }
h2 { margin-top: 2.4rem; font-size: 1.45rem; }
h3 { margin-top: 1.6rem; font-size: 1.1rem; }
p, li { max-width: 72ch; }
.lead { color: var(--muted); font-size: 1.08rem; }
.meta { color: var(--muted); font-size: 0.9rem; }

.card {
  margin: 1.25rem 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(57, 38, 78, 0.06);
}

.notice {
  border-left: 4px solid var(--accent);
  background: #eee7fd;
}
.notice.warning { border-left-color: #b66f24; background: #fff6e9; }
.notice.success { border-left-color: var(--success); background: #eef9f5; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 0.7rem;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--accent-dark); }
.button.secondary { border: 1px solid var(--border); background: #fff; color: var(--text); }
.button.danger { background: var(--danger); }

form { display: grid; gap: 1rem; }
label { display: grid; gap: 0.35rem; font-weight: 700; }
label small { color: var(--muted); font-weight: 450; }
input, textarea, select {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: #fff;
  color: var(--text);
  font: inherit;
}
textarea { min-height: 9rem; resize: vertical; }
.checkbox { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 0.65rem; font-weight: 500; }
.checkbox input { width: 1.2rem; min-height: 1.2rem; margin-top: 0.2rem; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.table-wrap { overflow-x: auto; }
.table-wrap table { min-width: 480px; }
.table-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 520px) {
  .table-wrap {
    background: linear-gradient(270deg, rgba(108, 66, 240, 0.18), rgba(247, 246, 244, 0) 28px) right / 28px 100% no-repeat;
  }
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { font-size: 0.9rem; }

.site-footer {
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 620px) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  nav { gap: 0.65rem 1rem; }
  main { padding-top: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
