/* Duo Tips: a notebook kept in pairs */
:root {
  --paper: #fafafc;
  --ink: #14141f;
  --ink-2: #4a4a5e;
  --tile: #ffffff;
  --hairline: #e4e4ee;
  --line-a: #3f3bd8;
  --line-a-deep: #2a279c;
  --line-a-wash: #ebeaff;
  --line-b: #ff6a55;
  --line-b-deep: #b8301c;
  --line-b-wash: #ffe9e4;
  --curve: 22px;
  --curve-small: 13px;
  --float: 0 1px 2px rgba(20, 20, 31, .05), 0 12px 30px rgba(42, 39, 156, .08);
  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fafafc;
  color: var(--ink);
  font: 400 17px/1.6 var(--sys);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--line-a-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgba(63, 59, 216, .35); }
a:hover { text-decoration-color: var(--line-b); }
strong { font-weight: 700; }

/* top: name and pills */
.duo-top { max-width: 48.5rem; margin: 0 auto; padding: 1.5rem 1.25rem .4rem; }
.duo-name { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.duo-mark { position: relative; width: 2.1rem; height: 2.1rem; flex: none; }
.duo-mark::before, .duo-mark::after { content: ""; position: absolute; width: 1.4rem; height: 1.4rem; border-radius: .45rem; }
.duo-mark::before { left: 0; top: 0; background: var(--line-a); }
.duo-mark::after { right: 0; bottom: 0; background: var(--line-b); mix-blend-mode: multiply; }
.duo-word { font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; line-height: 1; }
.duo-sub { font-size: .84rem; color: var(--ink-2); padding-left: .7rem; border-left: 2px solid var(--hairline); line-height: 1.25; }
.pill-row { display: flex; gap: .35rem; margin: 1.1rem -1.25rem 0; padding: .2rem 1.25rem .8rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pill-row::-webkit-scrollbar { display: none; }
.pill-row a {
  flex: none; padding: .4rem .78rem; border-radius: 999px; background: var(--tile); border: 1.5px solid var(--hairline);
  color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; line-height: 1.3;
}
.pill-row a:hover { border-color: var(--line-a); }
.pill-row a[aria-current="page"] { background: var(--line-a); border-color: var(--line-a); color: #fff; box-shadow: 4px 4px 0 var(--line-b-wash), 4px 4px 0 1.5px var(--line-b); }

/* the single column */
.notebook { max-width: 48.5rem; margin: 0 auto; padding: 1.2rem 1.25rem 3.5rem; }
.opener { padding: 1.6rem 0 1.9rem; }
.pair-tag { display: flex; align-items: center; gap: .5rem; font-size: .86rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .9rem; }
.chip { display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: 0; flex: none; }
.chip-a { background: var(--line-a); }
.chip-b { background: var(--line-b); margin-left: -.85rem; box-shadow: 0 0 0 2.5px var(--paper); }
h1 { font-size: clamp(2.1rem, 6.4vw, 3.3rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; max-width: 17ch; }
.opener .lede { margin-top: 1.1rem; font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); max-width: 40rem; }
h2 { font-size: 1.55rem; line-height: 1.15; letter-spacing: -.025em; font-weight: 800; margin: 2.8rem 0 1rem; display: flex; align-items: baseline; gap: .65rem; }
h2::before { content: ""; flex: none; width: .62rem; height: .62rem; border-radius: 50%; background: var(--line-a); box-shadow: .5rem 0 0 var(--line-b); margin-right: .5rem; transform: translateY(-.12rem); }
h3 { font-size: 1.13rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 700; }
.notebook > p { margin: 0 0 1rem; }

/* tip tiles */
.tip { position: relative; background: var(--tile); border-radius: var(--curve); box-shadow: var(--float); padding: 1.35rem 1.5rem 1.4rem 4.6rem; margin: 0 0 1rem; }
.tip-no { position: absolute; left: 1.35rem; top: 1.3rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--line-a); color: #fff; font-weight: 800; font-size: 1rem; box-shadow: .55rem 0 0 -1px var(--line-b-wash), .55rem 0 0 .5px var(--line-b); }
.tip h3 { margin-bottom: .4rem; }
.tip p + p { margin-top: .7rem; }

/* two lanes */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.2rem 0 1.4rem; }
.lane-a, .lane-b { border-radius: var(--curve); padding: 1.25rem 1.3rem 1.35rem; }
.lane-a { background: var(--line-a-wash); border-top: 6px solid var(--line-a); }
.lane-b { background: var(--line-b-wash); border-top: 6px solid var(--line-b); }
.lane-head { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; margin-bottom: .6rem; }
.lane-head .chip-b { margin-left: 0; box-shadow: none; }
.lane-a ul, .lane-b ul { list-style: none; }
.lane-a li, .lane-b li { position: relative; padding-left: 1.15rem; margin-top: .5rem; line-height: 1.45; }
.lane-a li::before, .lane-b li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5rem; height: .5rem; border-radius: 50%; }
.lane-a li::before { background: var(--line-a); }
.lane-b li::before { background: var(--line-b); }

/* numbered steps */
.stepper { list-style: none; counter-reset: hop; margin: 1.2rem 0 1.4rem; background: var(--tile); border-radius: var(--curve); box-shadow: var(--float); padding: .6rem 1.5rem .7rem; }
.stepper li { counter-increment: hop; position: relative; padding: 1rem 0 1rem 3.2rem; }
.stepper li + li { border-top: 1.5px dashed var(--hairline); }
.stepper li::before { content: counter(hop); position: absolute; left: 0; top: 1rem; width: 2.1rem; height: 2.1rem; border-radius: var(--curve-small); display: grid; place-items: center; font-weight: 800; background: var(--line-a-wash); color: var(--line-a-deep); }
.stepper li:nth-child(even)::before { background: var(--line-b-wash); color: var(--line-b-deep); }
.stepper b { display: block; font-size: 1.08rem; letter-spacing: -.01em; margin-bottom: .15rem; }

/* contents tiles on the first page */
.split-set { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 1.2rem 0 1.4rem; }
.split { position: relative; display: block; background: var(--tile); border-radius: var(--curve); box-shadow: var(--float); padding: 1.1rem 1.2rem 1.15rem 1.75rem; color: var(--ink); text-decoration: none; overflow: hidden; }
.split::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: .5rem; background: linear-gradient(var(--line-a) 50%, var(--line-b) 50%); }
.split b { display: block; font-size: 1.1rem; letter-spacing: -.015em; }
.split span { display: block; color: var(--ink-2); font-size: .97rem; line-height: 1.4; margin-top: .2rem; }
.split:hover { box-shadow: 0 1px 2px rgba(20, 20, 31, .06), 0 16px 34px rgba(42, 39, 156, .15); }

/* pictures */
.plate { background: var(--tile); border-radius: var(--curve); box-shadow: var(--float); padding: 1.1rem; margin: 1.4rem 0 1.6rem; }
.plate img { margin: 0 auto; border-radius: var(--curve-small); }
.plate-slim img { max-width: min(100%, 25rem); }
.plate-mid img { max-width: min(100%, 31rem); }
.plate-cap { margin-top: .85rem; font-size: .93rem; line-height: 1.45; color: var(--ink-2); text-align: center; }
.plate-bare { background: none; box-shadow: none; padding: 0; }

/* warnings, lists, log */
.heads-up { border-radius: var(--curve); background: var(--line-b-wash); padding: 1.1rem 1.3rem 1.15rem 1.5rem; border-left: 6px solid var(--line-b); margin: 1.3rem 0; }
.heads-up b { color: var(--line-b-deep); }
.tick-list { list-style: none; background: var(--tile); border-radius: var(--curve); box-shadow: var(--float); padding: .5rem 1.4rem; margin: 0 0 1.2rem; }
.tick-list li { position: relative; padding: .75rem 0 .75rem 2.5rem; line-height: 1.45; }
.tick-list li + li { border-top: 1.5px solid var(--hairline); }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .8rem; width: 1.35rem; height: 1.35rem; border-radius: .42rem; border: 2.5px solid var(--line-a); background: var(--tile); }
.tick-list li::after { content: ""; position: absolute; left: .47rem; top: .92rem; width: .42rem; height: .75rem; border: solid var(--line-b); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.scribbles { list-style: none; margin: 1rem 0 1.4rem; }
.scribbles li { display: grid; grid-template-columns: 9.6rem 1fr; gap: 1rem; padding: .75rem 0; border-top: 1.5px solid var(--hairline); }
.scribbles time { font-size: .9rem; font-weight: 700; color: var(--line-a-deep); padding-top: .15rem; }

/* glossary pairs */
.word-pair { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 1rem; border-radius: var(--curve); overflow: hidden; box-shadow: var(--float); background: var(--tile); }
.word-pair > div { padding: 1.15rem 1.3rem 1.25rem; }
.word-pair > div:first-child { border-right: 2px dashed var(--hairline); }
.word-pair dt { font-weight: 800; font-size: 1.1rem; letter-spacing: -.015em; margin-bottom: .3rem; display: flex; gap: .5rem; align-items: center; }
.word-pair dt .chip-b { margin-left: 0; box-shadow: none; }
.word-pair dd { line-height: 1.5; }

/* 404 */
.dead-line { text-align: center; padding-top: 1rem; }
.dead-line h1 { margin: 1.6rem auto .8rem; }
.dead-line .plate { max-width: 33rem; margin-left: auto; margin-right: auto; }
.go-home { display: inline-block; margin-top: 1.2rem; padding: .7rem 1.5rem; border-radius: 999px; background: var(--line-a); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 5px 5px 0 var(--line-b); }

/* small print */
.small-print { max-width: 48.5rem; margin: 0 auto; padding: 1.6rem 1.25rem 3rem; border-top: 1.5px solid var(--hairline); color: var(--ink-2); font-size: .92rem; line-height: 1.55; }
.small-print strong { color: var(--ink); }
.small-print div + div { margin-top: .6rem; }

@media (max-width: 41rem) {
  .duo, .split-set, .word-pair { grid-template-columns: 1fr; }
  .word-pair > div:first-child { border-right: 0; border-bottom: 2px dashed var(--hairline); }
  .duo-sub { display: none; }
  .tip { padding: 1.2rem 1.2rem 1.25rem; }
  .tip-no { position: static; margin-bottom: .7rem; }
  .opener { padding-top: .9rem; }
  .opener .lede { font-size: 1.1rem; }
  .scribbles li { grid-template-columns: 1fr; gap: .1rem; }
  .plate { padding: .8rem; }
  .stepper { padding: .4rem 1.1rem .5rem; }
  .stepper li { padding-left: 2.8rem; }
}
