/* gettasca.com – the one stylesheet for every page.
   System fonts only: the site loads nothing from other hosts.
   Brand colours (docs/design/brand): Cream and Ink for the page, Patina for accents,
   Tan only in the symbol (it's drawn into the SVG). */

:root {
  color-scheme: light dark;
  --bg: #F4ECDF;          /* Cream */
  --text: #2A1D15;        /* Ink */
  --accent: #6E3A1C;      /* Patina – 7.8:1 on Cream */
  --muted: #5D5148;       /* Ink 75 % over Cream – 6.5:1 */
  --rule: rgba(42, 29, 21, 0.16);
  --stitch: rgba(110, 58, 28, 0.55);
  --button-bg: #6E3A1C;
  --button-text: #F4ECDF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2A1D15;        /* Ink */
    --text: #F4ECDF;      /* Cream – 13.9:1 on Ink */
    --accent: #F4ECDF;    /* Patina is too dark on Ink; accents use Cream */
    --muted: #C2B8AD;     /* Cream 75 % over Ink – 8.4:1 */
    --rule: rgba(244, 236, 223, 0.18);
    --stitch: rgba(244, 236, 223, 0.4);
    --button-bg: #F4ECDF;
    --button-text: #2A1D15;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* On iPhone, follow the text size set in Settings (Dynamic Type). Every size below is in rem/em. */
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html {
    font: -apple-system-body;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-wrap: break-word;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 38rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1.5rem;
}

main {
  flex: 1;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

h1,
h2 {
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2rem;
  margin: 1.5rem 0 0.75rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.6rem;
}

li::marker {
  color: var(--muted);
}

strong {
  font-weight: 650;
}

/* Header on every page but Home: the symbol and the name, back to Home. */
.site-header {
  padding-bottom: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.15rem;
}

.brand img {
  width: 48px;   /* the smallest size the stitched symbol is drawn at */
  height: 48px;
  flex: none;
}

/* Footer: Home, Support, Privacy. */
.site-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--muted);
}

.site-footer a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
}

/* A link that looks like a button: the App Store link, the Copy code button. */
.button {
  display: inline-block;
  min-height: 44px;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  font: inherit;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

/* Home */
.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 12vh;
}

.home .symbol {
  width: 112px;
  height: 112px;
}

.home h1 {
  font-size: 2.5rem;
  margin: 1rem 0 0.5rem;
}

.home .line {
  font-size: 1.25rem;
  color: var(--accent);
  max-width: 24em;
  margin-bottom: 1.25rem;
}

.home .about {
  color: var(--muted);
  max-width: 30em;
  margin-bottom: 2rem;
}

/* Privacy and support */
.updated {
  color: var(--muted);
  margin-top: -0.25rem;
  margin-bottom: 1.5rem;
}

/* Join */
.code-card {
  margin: 1.5rem 0 2rem;
  padding: 1.5rem 1.25rem;
  border: 2px dashed var(--stitch);   /* a stitched pocket, like the mark */
  border-radius: 1.25rem;
  text-align: center;
  container-type: inline-size;
}

.code-label {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.code {
  margin: 0.25rem 0 1.25rem;
  /* Never wider than the card, even with large text: 17 % of the card's width fits the seven characters. */
  font-size: min(2.75rem, 11vw);
  font-size: min(2.75rem, 17cqi);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
  -webkit-user-select: all;
  user-select: all;
}

.steps li {
  padding-left: 0.25rem;
}

.incomplete {
  font-size: 1.5rem;
}
