:root {
  --bg: #fbfaf7;
  --ink: #1b1a17;
  --muted: #6f6b63;
  --line: #e7e3da;
  --accent: #c2410c;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --ink: #ece9e2;
    --muted: #9a958b;
    --line: #2a2926;
    --accent: #fb923c;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.header,
.main,
.footer {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  font-family: "Young Serif", Georgia, serif;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.mark svg {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.15s ease;
}

.links a:hover {
  color: var(--ink);
}

.main {
  flex: 1;
  padding-top: clamp(72px, 16vh, 168px);
  padding-bottom: 96px;
}

h1 {
  margin: 0 0 24px;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 24px;
}

.examples {
  color: var(--ink);
}

.task {
  white-space: nowrap;
  border-bottom: 1px dashed var(--line);
}

.doodle {
  width: 20px;
  height: 20px;
  margin-left: 4px;
  vertical-align: -3px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(-6deg);
  transition: transform 0.25s ease;
}

.task:hover .doodle {
  transform: rotate(6deg) scale(1.15);
}

.ctas {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

.cta span {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.15s ease;
}

.cta svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.cta:hover span {
  text-decoration-color: var(--accent);
}

.cta:hover svg {
  transform: translateX(3px);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 32px;
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

@media (max-width: 480px) {
  body {
    font-size: 18px;
  }

  .header,
  .main,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .task {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
