@font-face {
  font-family: Unica77;
  src: url("./assets/unica77-latin.woff2") format("woff2");
  font-display: swap;
}
:root {
  --ink: #181818;
  --muted: #6b6b6b;
  --line: #e2e2e2;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font:
    15px/1.45 Unica77,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
main {
  max-width: 600px;
  margin: 0 auto;
  padding: clamp(32px, 9vh, 96px) 20px clamp(64px, 12vh, 128px);
}
h1,
h2,
p,
dl,
dd {
  margin: 0;
  font-weight: 400;
}
a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Header */
.wordmark {
  display: block;
  height: 17px;
  width: auto;
}
h1 {
  margin: clamp(56px, 12vh, 112px) 0 20px;
  font-size: clamp(36px, 7vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
header p {
  max-width: 44ch;
  color: var(--muted);
}

/* Topics */
section {
  margin-top: 72px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}
h2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h2 + p {
  margin-top: 8px;
  color: var(--muted);
}

/* Account options */
.options {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.options > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
dt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
dd {
  margin-top: 4px;
  color: var(--muted);
}
.tag {
  padding: 1px 7px;
  border: 1px solid var(--ink);
  font-size: 12px;
  line-height: 18px;
}
.preview-link {
  display: flex;
  align-items: center;
  min-height: 52px;
  margin-top: 32px;
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
}
.preview-link:hover {
  background: #383838;
}
.note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* Store examples */
.examples {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.examples li {
  border-bottom: 1px solid var(--line);
}
.examples a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  text-decoration: none;
}
.examples a:hover {
  text-decoration: underline;
}

/* Shopify docs */
.guide {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.guide:hover {
  color: var(--ink);
}
h2 + p + .guide {
  margin-top: 16px;
}
.nowrap {
  white-space: nowrap;
}
