/* Polish Exam Prep — the app's Organic theme (ios-app/PolishExamPrep/Design/Theme.swift). */

@font-face {
  font-family: "Baloo 2";
  src: url("fonts/Baloo2.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #F5EAD8;
  --surface: #EBDDC5;
  --surface-2: #DCD3C4;
  --text: #201E1D;
  --muted: #645C50;
  --muted-2: #82796A;
  --accent: #C67139;
  --accent-deep: #8C491A;
  --accent-tint: #FFE1D0;
  --sage: #7A8A5E;
  --sage-tint: #E1EECC;
  --divider: rgba(32, 30, 29, 0.12);

  --display: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent-deep); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--divider);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 15px;
  font-weight: 600;
}

.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); }

/* Content */

main { padding: 40px 0 64px; }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0;
}

h1 { font-size: clamp(32px, 7vw, 44px); margin-bottom: 8px; }
h2 { font-size: 24px; margin: 40px 0 10px; }
h3 { font-size: 19px; margin: 24px 0 6px; }

p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

.lede { font-size: 19px; color: var(--muted); }
.updated { color: var(--muted-2); font-size: 14px; margin-bottom: 28px; }

.card {
  background: var(--surface);
  border-radius: 22px;
  padding: 20px 22px;
  margin: 20px 0;
}

.card > :last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 15px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--divider);
}

th { font-weight: 700; }

.table-scroll { overflow-x: auto; }

/* Fill-in-before-publishing marker. Deliberately loud, so nothing ships with one left in. */
mark.todo {
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-weight: 700;
  padding: 0 4px;
  border-radius: 4px;
}

/* Home */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.hero img { width: 180px; height: auto; margin: 0 auto; }

.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  margin-top: 8px;
}

.badge.soon { background: var(--surface-2); color: var(--muted); }

.features {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 40px;
}

.features .card { margin: 0; }
.features h3 { margin-top: 0; }
.features p { color: var(--muted); font-size: 16px; }

@media (min-width: 640px) {
  .hero { grid-template-columns: 200px 1fr; text-align: left; }
  .hero img { margin: 0; }
  .features { grid-template-columns: 1fr 1fr; }
}

/* FAQ */

details {
  background: var(--surface);
  border-radius: 16px;
  padding: 14px 18px;
  margin: 10px 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
  list-style-position: outside;
}

details[open] summary { margin-bottom: 8px; }
details > :last-child { margin-bottom: 0; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--divider);
  padding: 24px 0 40px;
  color: var(--muted-2);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
