/* Real Easy help: the one stylesheet, from the "Step by step" prototype (realeasycode/kb#9).
   Inter and Poppins are self-hosted under the SIL Open Font License (fonts/*-LICENSE.txt). */

@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/inter-latin-wght.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-latin-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-latin-600.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-latin-700.woff2) format("woff2"); }

:root {
  --paper: #f3f3f3;
  --ink: #111;
  --pink: #ff2d78;
  --pink-light: #fff0f5;
  --line: #e6e6e6;
  --quiet: #525252;
  --white: #fff;
  --width: 820px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--white); }
body { font-family: Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.7; color: var(--ink); }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }
h1, h2, h3 { font-family: Poppins, system-ui, sans-serif; line-height: 1.25; letter-spacing: -0.025em; }
h1 { font-size: 34px; font-weight: 600; margin: 10px 0 20px; }
h2 { font-size: 22px; font-weight: 600; margin: 32px 0 12px; }
h3 { font-size: 17px; font-weight: 600; margin: 22px 0 6px; }
p { margin: 0 0 18px; }
ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 6px; }

/* Header and footer. */
.site-header, .canvas, .site-footer { max-width: var(--width); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0 22px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { width: 112px; height: 33px; object-fit: contain; }
.brand span { font-size: 13px; border-left: 1px solid var(--line); padding-left: 16px; }
.portal-link { font-size: 13px; color: var(--quiet); }
.site-footer { margin-top: 48px; padding: 22px 0 40px; border-top: 1px solid var(--line); font-size: 12px; color: var(--quiet); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer p { margin: 0; }
.site-footer ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }

/* Breadcrumbs. */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 26px 0; padding: 0; font-size: 12px; color: var(--quiet); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Shared pieces. */
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.13em; font-weight: 600; color: var(--quiet); margin: 0 0 12px; }
.intro, .intro p { font-family: Poppins, system-ui, sans-serif; font-size: 17px; line-height: 1.65; max-width: 63ch; }
.intro p:last-child, p.intro { margin-bottom: 0; }
.head, .article-title { background: var(--pink-light); padding: 30px; border-radius: 12px; margin-bottom: 30px; }
.arrow { color: var(--pink); }

/* Cards: the chooser and the landing pages. */
.cards, .choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.card { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; background: var(--white); }
.card h2, .card h3 { margin: 0 0 6px; display: flex; justify-content: space-between; gap: 20px; }
.card p { margin: 0; color: var(--quiet); font-size: 14px; }
.card .eyebrow { margin-bottom: 12px; }
.card:hover h2, .card:hover h3 { text-decoration: underline; text-decoration-color: var(--pink); }
.topic h2 { margin-top: 36px; }

/* Articles. */
.article p, .article li { max-width: 70ch; }
.steps ol { list-style: none; counter-reset: step; padding: 0; margin: 0 0 12px; }
.steps ol > li { counter-increment: step; position: relative; padding: 4px 0 18px 54px; margin: 0; }
.steps ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-light); font-weight: 600; }
.steps ol > li > p:first-child { margin-top: 0; }
.shot { margin: 16px 0 6px; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.shot figcaption { font-size: 13px; color: var(--quiet); padding-top: 9px; }
.good-to-know h3 { font-size: 16px; }
.next, .related { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.next .eyebrow, .related .eyebrow { margin-bottom: 8px; }
.next a { font-weight: 600; font-size: 15px; }
.next p { font-size: 13px; color: var(--quiet); margin: 5px 0 0; }
.related ul { list-style: none; padding: 0; margin: 0; font-size: 14px; }

@media (max-width: 860px) {
  .site-header, .canvas, .site-footer { max-width: calc(100% - 32px); }
  .site-header { padding-top: 20px; }
  h1 { font-size: 28px; }
  .brand { gap: 12px; }
  .brand span { padding-left: 12px; }
  .portal-link { font-size: 12px; }
}

@media (max-width: 440px) {
  body { font-size: 14px; }
  .brand img { width: 94px; height: 28px; }
  .brand span, .portal-link { font-size: 11px; }
  .crumbs ol { font-size: 11px; gap: 6px; }
  h1 { font-size: 25px; }
  h2 { font-size: 20px; }
  .intro, .intro p { font-size: 15px; }
  .head, .article-title { padding: 22px; }
  .card { padding: 20px; }
  .steps ol > li { padding-left: 44px; }
}
