/* Mythos Minis website. Self-hosted fonts only; no third-party requests. */

@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-stretch: 75% 125%;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --ink: #2b2d42;
  --ink-soft: #55586f;
  --cream: #fff8ec;
  --card: #fffdf8;
  --line: #eadfca;
  --sky: #4cb5f5;
  --sunshine: #ffc93c;
  --link: #3a2fa0;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* Always cream, with spots like the ones on Pip's egg (no dark theme: the brand is cream). */
body {
  margin: 0;
  background: var(--cream) url("egg-spots.svg") repeat;
  background-size: 960px 960px;
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}

h1,
h2,
h3,
.brand-line {
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--card);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  z-index: 10;
}

.skip-link:focus {
  left: 0.5rem;
}

/* Home */

.hero {
  text-align: center;
}

.hero h1 {
  margin: 0;
}

.hero .logo {
  display: block;
  width: min(100%, 34rem);
  height: auto;
  margin: 0 auto;
}

.brand-line {
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  margin: 1.75rem 0 0.75rem;
  text-wrap: balance;
}

.lede {
  font-size: 1.2rem;
  max-width: 34rem;
  margin: 0 auto;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.5rem 1.5rem 0.5rem;
  margin-top: 3rem;
}

.card h2 {
  margin-top: 0;
}

.promises {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.promises li {
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 1rem;
}

/* Little egg bullets, a nod to Pip. */
.promises li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.3rem;
  width: 1.15rem;
  height: 1.4rem;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--sunshine);
  box-shadow: inset -3px -3px 0 rgb(0 0 0 / 0.08);
}

.promises strong {
  font-weight: 800;
}

/* Long-form pages (privacy) */

.page-header {
  margin-bottom: 2rem;
}

.page-header .home-link {
  display: inline-block;
}

.page-header .logo {
  width: 14rem;
  height: auto;
  display: block;
}

.page-header h1 {
  font-size: clamp(2rem, 6vw, 2.6rem);
  margin: 1.5rem 0 0.25rem;
}

.meta {
  color: var(--ink-soft);
  margin: 0;
}

.summary {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 1.25rem;
  padding: 1rem 1.5rem;
}

.summary h2 {
  margin-top: 0.5rem;
}

h1,
h2 {
  text-wrap: balance;
}

.prose ul {
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* 404 */

.lost {
  text-align: center;
}

.lost img {
  width: min(70%, 16rem);
  height: auto;
}

/* Footer */

footer {
  border-top: 2px solid var(--line);
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  font-size: 1rem;
  color: var(--ink-soft);
}

footer p {
  margin: 0.25rem 0;
}

footer a {
  display: inline-block;
  padding: 0.75rem 0.5rem; /* 48px tap target */
  margin: -0.75rem 0;
}
