/* Kismet Cup website. Palette and type match the app (src/theme). No build step, no third-party requests. */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/CormorantGaramond_600SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter_400Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter_500Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter_600SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #0f1123;
  --surface: #171a33;
  --border: #262a4a;
  --gold: #d4a853;
  --purple: #6b4eff;
  --text: #f5efe6;
  --text-muted: #a9a397;
  --heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --measure: 42rem;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  z-index: 10;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
}
.brand svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}
.site-nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--gold);
}

/* Type */
h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin: 0;
}
h1 {
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  letter-spacing: -0.01em;
}
h2 {
  font-size: 1.75rem;
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
}
h3 {
  font-size: 1.35rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
p,
ul,
ol {
  margin: 0 0 1rem;
}
ul,
ol {
  padding-left: 1.25rem;
}
li {
  margin-bottom: 0.4rem;
}
strong {
  font-weight: 600;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.lede {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.muted {
  color: var(--text-muted);
}
.small {
  font-size: 0.9rem;
}

main {
  padding: 3rem 0 4rem;
}

/* Home */
.hero {
  padding: 2.5rem 0 1rem;
}
.hero-mark {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.98rem;
}
.soon::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 560px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem 1.25rem 1.1rem;
  margin: 0;
}
.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
}
.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}
.promise {
  margin-top: 2.5rem;
  padding: 1.25rem;
  border-left: 3px solid var(--gold);
  background: var(--surface);
  border-radius: 0 14px 14px 0;
}
.promise p:last-child {
  margin-bottom: 0;
}

/* Callouts and legal pages */
.notice {
  margin: 1.75rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--gold);
  border-radius: 14px;
  background: rgba(212, 168, 83, 0.08);
}
.notice p:last-child {
  margin-bottom: 0;
}
.updated {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.toc {
  margin: 2rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.95rem;
}
.toc ol {
  margin: 0.5rem 0 0;
}
.toc li {
  margin-bottom: 0.25rem;
}
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
th {
  font-weight: 600;
  color: var(--text);
}
td {
  color: var(--text-muted);
}
@media (max-width: 560px) {
  table,
  tbody,
  tr,
  td {
    display: block;
  }
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  tr {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }
  td {
    border: 0;
    padding: 0.15rem 0;
  }
  td:first-child {
    color: var(--text);
    font-weight: 600;
    font-size: 1.05rem;
  }
  td[data-label]:not(:first-child)::before {
    content: attr(data-label) ': ';
    color: var(--text);
    font-weight: 500;
  }
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 0.25rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 2rem 0.85rem 0;
  font-weight: 500;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 0.7rem;
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '\2212';
}
.faq details > div {
  padding: 0 0 0.75rem;
  color: var(--text-muted);
}
.contact {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.contact h2 {
  margin-top: 0;
}
.email {
  font-size: 1.2rem;
  font-weight: 600;
  word-break: break-all;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.site-footer a {
  color: var(--text-muted);
}
.site-footer a:hover {
  color: var(--gold);
}
.site-footer p {
  margin: 0.25rem 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
