:root {
  color-scheme: dark;
  font: 16px/1.55 system-ui, sans-serif;
  background: #08292c;
}

* { box-sizing: border-box; }

:root:has(body:is([data-project="etsy"], [data-project="apa"])) { color-scheme: light; }

body {
  --page: #08292c;
  --wash: #175b50;
  --ink: #f6fbf6;
  --muted: #c4e0d8;
  --line: #46706b;
  --accent: #acdbff;
  --tint: #17454d;
  --cue: #a6f2cb;
  --marker: #2753be;
  --confetti-colors: #a6f2cb, #acdbff, #397fdf, #6ce4bf, #fff6cb;
  min-height: 100vh;
  margin: 0;
  padding: 0 clamp(14px, 4.3vw, 60px) clamp(36px, 6vw, 80px);
  position: relative;
  color: var(--ink);
  background: radial-gradient(ellipse 840px 460px at 50% 0%, var(--wash), transparent 86%), var(--page);
}

body[data-project="etsy"] {
  color-scheme: light;
  --page: #fcf0d7;
  --wash: #f0c4a8;
  --ink: #422324;
  --muted: #64413a;
  --line: #b99479;
  --accent: #893622;
  --tint: #f5dfc9;
  --cue: #a8452a;
  --marker: #2e58ca;
  --headline-font: Georgia, serif;
  --confetti-colors: #a8452a, #c58067, #2e58ca, #71dbe8, #d68b3d;
}

body[data-project="apa"] {
  color-scheme: light;
  --page: #f0f5eb;
  --wash: #cde4d3;
  --ink: #12392e;
  --muted: #365f53;
  --line: #acbfb0;
  --accent: #0b6453;
  --tint: #dce9dd;
  --cue: #146d5d;
  --marker: #168067;
  --confetti-colors: #168067, #3aa789, #91c850, #b9e27d, #188b95;
}

body[data-project="pdf"] {
  --page: #16332e;
  --wash: #2d5141;
  --ink: #f8efdc;
  --muted: #dceadd;
  --line: #526f5e;
  --accent: #d1c2fc;
  --tint: #30473f;
  --cue: #d1c2fc;
  --marker: #6550b5;
  --confetti-colors: #f8efdc, #e2eddf, #ad91f1, #a9de99, #f3acbb;
}

.welcome { max-width: 1050px; margin-inline: auto; }

.guide-footer {
  margin-block-start: clamp(24px, 5vw, 48px);
  padding-block-start: 8px;
  border-block-start: 1px solid var(--line);
  font-size: 0.875rem;
}

.guide-footer a, .policy-back {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
}

.privacy-policy { max-width: 720px; }
.privacy-policy .product { flex-wrap: wrap; }
.privacy-policy .product p { flex: 1 1 12rem; }

.policy-body {
  padding-block-start: clamp(28px, 6vw, 64px);
  overflow-wrap: anywhere;
}

.policy-updated {
  margin-block-start: 10px;
  color: var(--muted);
}

.policy-body section { margin-block-start: 28px; }
.policy-body section p + p { margin-block-start: 12px; }

.product {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 19px 0 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
  font-weight: 680;
  line-height: 1.3;
}

body:has(.welcome[data-mode="pin"]) .product { padding-inline-end: 112px; }
body:has(.welcome:not([data-interactive]) #usage:target) .product { padding-inline-end: 0; }

.product img { width: 43px; height: 43px; flex: none; }
.product p { margin: 0; }

.mode { padding-top: clamp(24px, 5vw, 60px); scroll-margin-top: 100px; }

[data-mode="pin"] [data-guide="usage"],
[data-mode="usage"] [data-guide="pin"] { display: none; }

.welcome:not([data-interactive]):has(#usage:target) [data-guide="pin"] { display: none; }
.welcome:not([data-interactive]):has(#usage:target) [data-guide="usage"] { display: block; }

.toolbar-cue {
  position: absolute;
  inset-block-start: 7px;
  inset-inline-end: clamp(65px, 12vw, 100px);
  inline-size: 24px;
  block-size: 46px;
  color: var(--cue);
  pointer-events: none;
}

.toolbar-cue::before, .toolbar-cue::after {
  content: "";
  position: absolute;
  left: 50%;
}

.toolbar-cue::before {
  top: 5px;
  width: 4px;
  height: 39px;
  translate: -50%;
  border-radius: 2px;
  background: currentColor;
}

.toolbar-cue::after {
  top: 3px;
  width: 15px;
  height: 15px;
  border: solid currentColor;
  border-width: 4px 0 0 4px;
  border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
}

h1, h2, p, figure { margin: 0; }

h1 {
  font-family: var(--headline-font, inherit);
  font-size: clamp(31px, 5.15vw, 60px);
  font-weight: 730;
  letter-spacing: -0.047em;
  line-height: 1.06;
  text-wrap: balance;
}

h1:focus { outline: none; }

h2 {
  margin-bottom: 6px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.guide-intro {
  max-width: 790px;
  margin-inline: auto;
  text-align: center;
}

.guide-intro > p, .intro {
  margin-top: 13px;
  color: var(--muted);
}

.guide-intro > p { font-size: clamp(1rem, 2.15vw, 1.16rem); text-wrap: balance; }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.mode-switch {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  margin-top: 19px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--tint);
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  text-align: start;
}

.mode-switch:hover { border-color: currentColor; text-decoration: underline; }
.example-link {
  display: inline-block;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--tint);
  font-weight: 650;
}

.pin-steps {
  max-width: 570px;
  margin: clamp(27px, 4vw, 48px) auto 0;
  padding: 0;
  display: grid;
  gap: clamp(24px, 4.4vw, 48px);
  list-style: none;
  counter-reset: pin-step;
}

.pin-steps > li { min-width: 0; counter-increment: pin-step; }

.pin-step-copy { margin-bottom: 13px; padding-inline-start: 36px; position: relative; }
.pin-step-copy p { color: var(--muted); }

.pin-step-copy::before {
  content: counter(pin-step);
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 700;
  outline: 1px solid var(--line);
}

.pin-photo {
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 13px 34px #11282028;
}

.pin-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.pin-marker {
  position: absolute;
  left: var(--marker-x);
  top: var(--marker-y);
  width: clamp(18px, 6.5%, 41px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 3px solid var(--marker);
  border-radius: 9px;
  box-shadow: 0 0 0 2px #fff8;
  pointer-events: none;
}

.pin-marker--extensions { --marker-x: 90.99%; --marker-y: 8.66%; }
.pin-marker--pin { --marker-x: 70.93%; --marker-y: 70.08%; }
.pin-marker--icon { --marker-x: 64.52%; --marker-y: 43.14%; width: clamp(18px, 5.4%, 34px); }

.pin-caption { max-width: 570px; margin: 10px auto 0; color: var(--muted); font-size: 0.84rem; }

.usage-mode { max-width: 930px; margin-inline: auto; }
.usage-mode .intro + p { margin-top: 6px; }

.screenshot { min-width: 0; }
.screenshot img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f8fb;
}

figcaption { margin-top: 8px; color: var(--muted); font-size: 0.875rem; line-height: 1.4; }

.steps {
  margin: clamp(22px, 4vw, 40px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(12px, 3.4vw, 36px);
  align-items: start;
  padding: clamp(18px, 3vw, 32px) 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.step-copy { position: relative; padding-inline-start: 38px; color: var(--muted); }

.step-copy::before {
  content: counter(step);
  display: grid;
  place-items: center;
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  outline: 1px solid var(--line);
}

.step-copy p + p { margin-top: 8px; }
strong { color: var(--ink); }

.tip { padding: 14px 16px; border-radius: 10px; background: var(--tint); color: var(--muted); }
.tip .screenshot { max-width: 620px; margin-top: 12px; }

.welcome-confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 680px) {
  .steps > li { grid-template-columns: minmax(0, 1fr); }
  .step-copy { padding-inline-start: 35px; }
  .pin-marker { border-width: 2px; }
}
