/* DragonTime website. Colours are the Penpot "v2 Tokens/Dark" set; one theme (dark), as in the app. */
@font-face {
  font-family: Inter;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range:
    U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Headlines: Fraunces, soft axis (assets/fonts/OFL-Fraunces.txt) */
@font-face {
  font-family: Fraunces;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/fraunces-latin-soft-normal.woff2) format('woff2');
}

:root {
  --surface: #1e1724;
  --raised: #2d2435;
  --raised-hover: #3a2f45;
  --accent: #ceb4ef;
  --accent-strong: #8b5ab8;
  --accent-strong-hover: #9d6ccb;
  --text: #f3eef8;
  --text-2: #b9aec4;
  --muted: #8a7f95;
  --warning: #fed33b;
  --border: rgb(255 255 255 / 10%);
  --radius: 14px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* in-page links land below the sticky top bar */
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font:
    16px/1.6 Inter,
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent);
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
code,
pre {
  font-family: ui-monospace, 'DejaVu Sans Mono', monospace;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 20px;
  top: 12px;
  background: var(--raised);
  padding: 8px 12px;
  z-index: 30;
}

/* Nav: stays on top while scrolling */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}
.brand img {
  width: 32px;
  height: 32px;
}
.brand:hover {
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a:not(.btn) {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
}
.nav-links a:not(.btn):hover {
  color: var(--accent);
  text-decoration: underline;
}
.nav-links .gh {
  display: flex;
  margin-left: 4px;
}
.menu {
  display: none;
}

/* Buttons and chips */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--text);
  background: var(--raised);
  border: 1px solid var(--border);
}
.btn:hover {
  background: var(--raised-hover);
  border-color: rgb(255 255 255 / 20%);
  text-decoration: none;
}
.btn.primary {
  background: var(--accent-strong);
  border-color: transparent;
  color: #fff;
}
.btn.primary:hover {
  background: var(--accent-strong-hover);
}
.btn.small {
  padding: 8px 14px;
}
.chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(206 180 239 / 14%);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}
.chip.warn {
  background: rgb(254 211 59 / 14%);
  color: var(--warning);
}

/* Type */
h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  font-variation-settings: 'SOFT' 100;
  font-weight: 600;
}
h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 20px 0;
}
h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.lead {
  font-size: 18px;
  color: var(--text-2);
  max-width: 620px;
}
.sub {
  color: var(--text-2);
  margin: 0 0 40px;
}
.small {
  font-size: 13px;
  color: var(--muted);
}

/* Sections */
section {
  padding: 72px 0;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-block: 56px 72px;
}
.ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 16px;
}
.shot {
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgb(0 0 0 / 40%);
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.grid {
  display: grid;
  gap: 24px;
}
.grid.two {
  grid-template-columns: repeat(2, 1fr);
}
.grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.grid.four {
  grid-template-columns: repeat(4, 1fr);
}
/* Unboxed items (audience, features, questions): a rule on top instead of a card */
.list > div {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.list p {
  color: var(--text-2);
  margin: 0;
}
picture {
  display: block;
}
.card {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card p {
  color: var(--text-2);
  margin: 0;
}
.card .chip {
  margin-bottom: 14px;
}
.card .btn {
  margin-top: 20px;
}
.card .shot {
  margin-bottom: 20px;
  box-shadow: none;
  border-radius: 10px;
}
.card.featured {
  border-color: var(--accent);
}
.card.notice {
  background: #433629;
  border-color: transparent;
}

pre {
  background: #15111a;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 14px 0 0;
}
.stack > * + * {
  margin-top: 16px;
}
ul.plain {
  padding-left: 18px;
  margin: 0;
  color: var(--text-2);
}

/* Legal pages */
.page-head {
  padding-block: 56px 32px;
}
.page-head p {
  color: var(--muted);
  margin: 0;
}
.legal {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  padding-bottom: 72px;
}
.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.toc p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.toc ol {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 2;
}
.toc a {
  color: var(--text-2);
  text-decoration: none;
}
.toc a:hover {
  color: var(--accent);
}
article h2 {
  font-size: 24px;
  margin: 40px 0 10px;
}
article h2:first-child {
  margin-top: 0;
}
article p,
article li {
  color: var(--text-2);
  max-width: 760px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.trademarks {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.foot .brand {
  font-weight: 400;
  font-size: 14px;
  color: var(--text-2);
}
.foot .brand img {
  width: 20px;
  height: 20px;
}
.foot nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.foot nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
}
.foot nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.center {
  text-align: center;
}
.center .ctas {
  justify-content: center;
}
.end {
  padding-bottom: 72px;
}
.notfound {
  padding-block: 96px 120px;
}
.notfound img {
  margin: 0 auto 20px;
}
.notfound .lead {
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 960px) {
  .hero,
  .legal {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* phones and tablets: the product right under the headline, before the intro */
  .hero {
    gap: 0;
  }
  .hero-copy {
    display: contents;
  }
  .hero h1 {
    order: 1;
  }
  .hero picture {
    order: 2;
    margin-bottom: 24px;
  }
  .hero-copy > :not(h1) {
    order: 3;
  }
  .grid.three {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
  }
}
@media (max-width: 640px) {
  .grid.two,
  .grid.four {
    grid-template-columns: 1fr;
  }
  section {
    padding: 48px 0;
  }
  .ctas .btn,
  .card .btn {
    width: 100%;
  }
  .nav-links {
    display: none;
  }
  .menu {
    display: block;
  }
  .menu summary {
    list-style: none;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    padding: 6px;
  }
  .menu summary::-webkit-details-marker {
    display: none;
  }
  .menu[open] summary::after {
    content: '';
  }
  .menu div {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: var(--surface);
    padding: 8px 20px 28px;
    z-index: 5;
    border-bottom: 1px solid var(--border);
  }
  .menu div a:not(.btn) {
    display: block;
    color: var(--text);
    text-decoration: none;
    font-size: 22px;
    font-weight: 500;
    padding: 16px 0;
    border-bottom: 1px solid rgb(255 255 255 / 8%);
  }
  .menu div .btn {
    width: 100%;
    margin-top: 24px;
  }
  .foot nav {
    flex-direction: column;
    gap: 10px;
  }
}
