/* Pencilight site: Atelier light. Cream paper, ink, one ultramarine accent. */

:root {
  --bg: #F3EEE5;
  --surface: #FBF8F2;
  --sheet: #FFFDF8;
  --raised: #E7E0D3;
  --line: #DED5C6;
  --text: #1D1A16;
  --text2: #3B3631;
  --dim: #6A6359;
  --accent: #2443B5;
  --accent-deep: #1A3289;
  --pencil: #8A847A;
  --guide: #3C6DE0;
  --paper-shadow: 0 1px 2px rgba(29, 26, 22, 0.06), 0 10px 28px rgba(29, 26, 22, 0.08);
  --gutter: 20px;
  color-scheme: light;
}

@media (max-width: 375px) {
  :root { --gutter: 16px; }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.column {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Top bar: wordmark left, three links right; wraps under the wordmark on narrow screens. */
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 26px;
  line-height: 1;
}

.wordmark svg { flex: none; }

.bar nav { display: flex; flex-wrap: wrap; gap: 0 18px; }

.bar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.bar nav a:hover,
.bar nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

main { padding-top: 40px; padding-bottom: 56px; }

h1,
h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  color: var(--text);
  text-align: left;
}

h1 { font-size: clamp(38px, 9vw, 52px); line-height: 1.02; margin: 0 0 16px; }
h2 { font-size: 30px; line-height: 1.1; margin: 44px 0 12px; }
h3 { font-size: 17px; font-weight: 600; line-height: 1.35; margin: 24px 0 6px; }
h1 em,
h2 em { font-style: italic; }

p,
ul,
ol { margin: 0 0 14px; }
ul,
ol { padding-left: 22px; }
li { margin-bottom: 6px; }

.lede { font-size: 19px; color: var(--text2); }
.meta { color: var(--dim); font-size: 15px; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

strong { font-weight: 600; }

/* A card: surface, hairline, no shadow. */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 14px;
}

.card > :last-child { margin-bottom: 0; }

/* Questions on the support page: native disclosure, a 44 pt row. */
details.card { padding: 0; }

details.card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

details.card summary::-webkit-details-marker { display: none; }

details.card summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--dim);
  border-bottom: 1.5px solid var(--dim);
  transform: rotate(45deg);
  margin-top: -4px;
}

details.card[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }

details.card .answer { padding: 0 18px 16px; color: var(--text2); }
details.card .answer > :last-child { margin-bottom: 0; }

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

/* The one shadow: only under paper. */
.sheet {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 8px 0 32px;
  background: var(--sheet);
  border-radius: 5px;
  box-shadow: var(--paper-shadow);
}

.steps { list-style: none; padding: 0; counter-reset: step; }

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  margin-bottom: 14px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background: var(--raised);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 26px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}

.cta:hover { color: var(--bg); opacity: 0.88; }

.mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

footer {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  padding-bottom: 32px;
  color: var(--dim);
  font-size: 14px;
}

footer nav { display: flex; flex-wrap: wrap; gap: 0 18px; margin-bottom: 4px; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text2); }
footer p { margin: 0; }
