@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("/fonts/figtree.woff2") format("woff2-variations");
}

/* Brand and neutral colours follow solar-web-new src/styles.css. */
:root {
  --primary: oklch(0.377 0.076 261.254);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.69 0.072 66.874);
  --background: oklch(0.985 0 0);
  --card: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --muted: oklch(0.97 0 0);
  --border: oklch(0.922 0 0);
  --radius: 0.625rem;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --control-height: 2.75rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: var(--space-5) var(--space-3);
  background: var(--background);
  color: var(--foreground);
  font: 1rem/1.5 "Figtree", system-ui, sans-serif;
}

.header,
main {
  max-width: 45rem;
  margin-inline: auto;
}

.header {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-block-end: var(--space-4);
}

.logo {
  flex: none;
}

h1,
h2,
h3,
p,
ol {
  margin: 0;
}

h1 {
  font-size: 1.5rem;
  line-height: 1.25;
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1rem;
}

.muted {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

a {
  color: var(--primary);
}

main {
  display: grid;
  gap: var(--space-3);
}

.card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.6);
}

.steps {
  display: grid;
  gap: var(--space-1);
  padding-inline-start: 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: var(--control-height);
  padding-inline: var(--space-4);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  text-decoration: none;
}

.button.outline {
  background: transparent;
  color: var(--primary);
}

.button[hidden] {
  display: none;
}

.button:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.aside {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--muted);
}

.aside .button {
  margin-block: var(--space-1);
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: var(--space-3);
  padding: 0;
  list-style: none;
  counter-reset: shot;
}

.shots li {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: var(--space-2);
  counter-increment: shot;
}

.shot {
  position: relative;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Ring around the control to tap; position and size come from the element's style. */
.mark {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  border: 2px solid var(--secondary);
  border-radius: 0.375rem;
  box-shadow: 0 0 0 2px oklch(1 0 0 / 0.8);
}

.shots p::before {
  content: counter(shot) ". ";
  font-weight: 600;
}

@media (max-width: 30rem) {
  body {
    padding-block: var(--space-4);
  }

  .card {
    padding: var(--space-3);
  }

  .button {
    justify-self: stretch;
  }
}
