/* Etchy site. No third-party requests: fonts are served from this site. */

@font-face {
  font-family: "Nunito";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Nunito-SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "Nunito";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Nunito-ExtraBold.ttf") format("truetype");
}

:root {
  --violet: #7c3aed;
  --yellow: #fcd34d;
  --bg: #faf8f4;
  --text: #1f2433;
  --card: #ffffff;
  --line: #e7e2d8;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
h2,
.wordmark {
  font-weight: 800;
  line-height: 1.2;
}

a {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
}

a:hover {
  text-decoration-color: var(--yellow);
}

a:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--violet);
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

/* Layout */

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1rem 2.5rem;
}

.centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Etch, waving at the top. The animated GIF has transparent edges. */

.etch {
  display: block;
  width: min(20rem, 85vw);
  height: auto;
  margin: -1rem auto 0;
}

/* Wordmark: violet text, yellow curved underline */

.wordmark {
  display: inline-block;
  margin: 0;
  color: var(--violet);
  font-size: clamp(4rem, 22vw, 7rem);
  letter-spacing: -0.02em;
}

.wordmark svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -0.1em;
}

.wordmark-link {
  text-decoration: none;
  display: inline-block;
}

.wordmark-small {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.tagline {
  margin: 1.5rem 0 0;
  max-width: 20ch;
  font-size: clamp(1.5rem, 6vw, 2.125rem);
  font-weight: 800;
  line-height: 1.25;
}

.soon {
  display: inline-block;
  margin: 1.75rem 0 0;
  padding: 0.5rem 1.5rem;
  background: var(--yellow);
  color: var(--text);
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.125rem;
  box-shadow: 0 3px 0 rgba(31, 36, 51, 0.15);
}

/* Header on inner pages */

.site-header {
  max-width: 40rem;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1rem 0;
}

/* Text pages */

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 7vw, 2.5rem);
  color: var(--violet);
}

h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.375rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 1rem 1.25rem;
  margin: 0 0 1rem;
}

.card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 800;
}

.card p {
  margin: 0;
}

.note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: #fff8dc;
  border-left: 6px solid var(--yellow);
  border-radius: 12px;
}

.note p {
  margin: 0;
}

.button {
  display: inline-block;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  background: var(--violet);
  color: #ffffff;
  border-radius: 24px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(31, 36, 51, 0.2);
}

.button:hover {
  background: #6d28d9;
}

.button:focus-visible {
  outline-color: var(--text);
}

/* Footer */

footer {
  flex-shrink: 0;
  padding: 1.25rem 1rem 1.75rem;
  text-align: center;
  font-size: 0.9375rem;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
}

footer li {
  margin: 0;
}

footer a {
  display: inline-block;
  padding: 0.75rem 0.25rem; /* tall enough for a 48px touch target */
}

@media (min-width: 40rem) {
  body {
    font-size: 1.1875rem;
  }

  main {
    padding-top: 3rem;
  }
}

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