@font-face {
  font-family: "Manrope";
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/Manrope-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Manrope";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/Manrope-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Manrope";
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/Manrope-ExtraBold.ttf") format("truetype");
}

:root {
  color-scheme: light dark;
  --bg: #f5f2eb;
  --surface: #fffefa;
  --border: #e2ddd2;
  --ledge: #d4cdbf;
  --text: #17161a;
  --text-2: #5d5a57;
  --text-3: #69655f;
  --accent: #ff5c3e;
  --accent-ledge: #c93a20;
  --accent-text: #c2381e;
  --highlight: #ffd84a;
  --dot: #dcd5c8;
  --math: #3557e3;
  --physics: #1a9cc0;
  --chemistry: #c8417a;
  --biology: #2e8c4f;
  --mark: var(--highlight);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151513;
    --surface: #1e1d1b;
    --border: #302e2a;
    --ledge: #0b0b0a;
    --text: #e8e4db;
    --text-2: #aba69d;
    --text-3: #928d84;
    --accent: #ff6a4d;
    --accent-ledge: #a8301b;
    --accent-text: #ff8a70;
    --highlight: #f2cc4b;
    --dot: #24231f;
    --math: #7d97ff;
    --physics: #45bee0;
    --chemistry: #f07bae;
    --biology: #6ccb8a;
    --mark: color-mix(in srgb, #f2cc4b 34%, transparent);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.1px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-text);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

header.top {
  padding: 28px 0 8px;
}

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

.brand {
  display: block;
  line-height: 0;
}

.brand img {
  height: 28px;
  width: auto;
}

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

nav.links a {
  color: var(--text-2);
  text-decoration: none;
}

nav.links a:hover,
nav.links a[aria-current="page"] {
  color: var(--text);
}

main {
  flex: 1;
  padding: 24px 0 56px;
}

.sheet {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 3px 0 var(--ledge);
  padding: 40px 44px 44px;
}

h1 {
  font-weight: 800;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -0.8px;
  margin: 0 0 6px;
}

h2 {
  font-weight: 800;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin: 36px 0 8px;
}

h3 {
  font-weight: 700;
  font-size: 17px;
  margin: 22px 0 4px;
}

p,
ul {
  margin: 0 0 14px;
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

strong {
  font-weight: 700;
}

.meta {
  color: var(--text-3);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 26px;
}

.note {
  background: color-mix(in srgb, var(--highlight) 22%, transparent);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text);
}

.key {
  display: inline-block;
  background: var(--accent);
  color: #17161a;
  font-weight: 800;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--accent-ledge);
  transition:
    transform 80ms ease,
    box-shadow 80ms ease;
}

.key:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--accent-ledge);
}

footer.bottom {
  padding: 0 0 36px;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 600;
}

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

footer.bottom a {
  color: var(--text-3);
}

.home {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 40px 0 72px;
}

.home h1 {
  font-size: clamp(38px, 7vw, 60px);
  letter-spacing: -1.6px;
  line-height: 1.06;
  max-width: 13ch;
  margin-bottom: 18px;
}

.home h1 mark {
  background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%);
  color: inherit;
  padding: 0 2px;
}

.home .lede {
  color: var(--text-2);
  font-size: 19px;
  max-width: 34ch;
  margin-bottom: 28px;
}

.subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.subjects li {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 2px 0 var(--ledge);
}

.subjects li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: 1px;
  background: var(--c);
}

.soon {
  color: var(--text-3);
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 16px;
  }
  header.top {
    padding-top: 20px;
  }
  header.top .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .sheet {
    padding: 28px 20px 32px;
    border-radius: 16px;
  }
  h1 {
    font-size: 28px;
  }
}

.brand-text {
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.3px;
  text-decoration: none;
}

.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-text img {
  border-radius: 7px;
}

.app-icon {
  display: block;
  border-radius: 22px;
  box-shadow: 0 3px 0 var(--ledge);
  margin-bottom: 18px;
}

.app-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 10px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.cta .soon {
  margin: 0;
}
