/* Evergreen clothbound, layered over journal.css and book.css. The approved palette from the
   18 October story: bone paper, a green-black desk, the logo green as the cloth, chapter greens
   that deepen through the book, and one violet for contrast. Up, down and gold keep their
   meanings and appear only on numbers. */
/* Self-hosted, so no visitor request leaves selfticker.com. Both families are under the
   SIL Open Font License 1.1; the notices and licence are in /fonts/OFL.txt. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/fonts/cormorant-garamond-latin.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-garamond-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Gochi Hand"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/gochi-hand-latin.woff2") format("woff2"); }
:root {
  --page: #f6f0e3;
  --paper: #f6f0e3;
  --ink: #1c1f1a;
  --body: #3a3d35;
  --quiet: #5c5f55;
  --rule: rgba(28, 31, 26, .16);
  --card: #fffdf8;
  --card-edge: #d9cfbb;
  --up: #117642;
  --down: #a82b48;
  --gold: #7d5a12;
  --violet: #4b3d8f;
  --lilac: #b8acec;
  --tab-edge: #8c7f6c;
  --cloth: #10462b;
  --chapter-deep: #436b53;
  --ground: #121c17;
  --vignette: rgba(0, 0, 0, .5);
  --shade: 18, 32, 24;
  --display: "Cormorant Garamond", Garamond, Georgia, serif;
  --hand: "Gochi Hand", "Segoe Print", "Bradley Hand", cursive;
  --foil: #e4ddcd;
  --night-ink: #f6f0e3;
  --night-quiet: #c5dbcc;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .26 0 0 0 0 .16 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* The desk: green-black, a little lighter where the book lies. */
body {
  background-color: var(--ground);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 42%, #1a2a22, transparent 72%),
    radial-gradient(ellipse 140% 100% at 50% 40%, transparent 58%, var(--vignette));
}
.masthead, .page-nav { --ink: var(--night-ink); }
.colophon, .sketch { --ink: var(--night-ink); --quiet: var(--night-quiet); --rule: rgba(246, 240, 227, .2); --green: #c5dbcc; }
.book-toolbar { color: var(--night-quiet); }
.book-toolbar .replay, .fallback-note, .page-nav button { color: var(--night-ink); }
.book-toolbar :focus-visible, .masthead :focus-visible, .colophon :focus-visible, .page-nav :focus-visible { outline-color: var(--lilac); }
.desk-shadow { background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, .2) 60%, transparent); }
.masthead .beta-link { background: var(--lilac); color: var(--ground); text-decoration: none; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.masthead .beta-link:hover { background: #cbc2f2; }

/* Headings in a bookish serif. Cormorant runs small, so headings sit a size up. */
.journal h1 { font-family: var(--display); font-weight: 600; font-size: clamp(48px, 4.4vw, 68px); letter-spacing: -.025em; line-height: .92; text-wrap: balance; margin-bottom: 22px; }
.journal .page h2 { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 3.6vw, 54px); letter-spacing: -.02em; line-height: .95; text-wrap: balance; }
.journal .page h3 { font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 1; letter-spacing: -.01em; }
.journal .page em.accent, .journal .accent { font-style: normal; color: var(--violet); }
.journal .page p { color: var(--body); }
.journal .page .lede { font-size: 17px; line-height: 1.55; max-width: 27em; }
.journal .page .kicker { margin: 0 0 14px; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--chapter-deep); max-width: 26em; }

/* Chapter colours: the running head, open tab and links take the chapter's colour. */
.journal .page::before { color: var(--chapter-ink, var(--quiet)); font-weight: 600; }
.journal .inline-link { color: var(--chapter-ink, var(--ink)); }
.journal-tabs button[aria-selected="true"] { color: var(--tab-text, var(--tab)); }
.ribbon-page, .ribbon-tail i { background: linear-gradient(90deg, #5d8a70, #739680 50%, #5d8a70); }
@media (min-width: 901px) {
  .journal-tabs { width: calc(var(--tab-width) + var(--right-edge, 0px)); }
  .journal-tabs button { padding-left: calc(var(--tab-padding) + var(--right-edge, 0px)); }
}
.headband { background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 35%, rgba(0,0,0,.28) 70%), repeating-linear-gradient(90deg, var(--lilac) 0 1.5px, var(--cloth) 1.5px 3px); }

/* Board, cover and foil. */
.board { box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 24px 38px -18px rgba(0, 0, 0, .85); }
.cover-label { background: none; box-shadow: none; padding: 26px 18px 22px; }
.cover-label::before { border-color: rgba(228, 221, 205, .55); }
.cover-label img { display: none; }
.cover-title { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--foil); font-size: 30px; }
.cover-sub { font-family: var(--display); font-style: italic; color: rgba(228, 221, 205, .86); font-size: 17px; }
.cover-band { background: linear-gradient(90deg, #8a80b8, var(--lilac) 45%, #9a90c6); }

/* Pages and the page block in bone. Turning copies of a page (the laptop underlay, the phone's
   departing page) carry the page classes too, so these rules set the image only. The background
   shorthand would also clear the copies' paper colour mid-turn. */
.journal .page-left { background-image: linear-gradient(90deg, transparent 92%, rgba(90, 80, 52, .12)); }
.journal .page-right { background-image: linear-gradient(90deg, rgba(90, 80, 52, .12), transparent 7%); }
.journal .underlay.page-left { background-color: var(--page); background-image: linear-gradient(90deg, transparent 92%, rgba(90, 80, 52, .12)), var(--grain); }
.journal .underlay.page-right { background-color: var(--page); background-image: linear-gradient(90deg, rgba(90, 80, 52, .12), transparent 7%), var(--grain); }
.edge { background: repeating-linear-gradient(90deg, #cfc4ad 0 1px, #f6f0e3 1px 3px); }
.block-left i { background: linear-gradient(270deg, rgba(18, 32, 24, .22), rgba(18, 32, 24, 0) 22%), repeating-linear-gradient(180deg, #f6f0e3 0 1.3px, #cfc4ad 1.3px 1.9px); }
.block-right i { background: linear-gradient(90deg, rgba(18, 32, 24, .22), rgba(18, 32, 24, 0) 22%), repeating-linear-gradient(180deg, #f6f0e3 0 1.3px, #cfc4ad 1.3px 1.9px); }

/* Roger's handwriting, written in when its page lands. */
.journal .page p.ink-note { font-family: var(--hand); font-size: 24px; line-height: 1.2; color: var(--violet); transform: rotate(-1.5deg); transform-origin: left center; margin: 22px 0 0; max-width: 22em; }
.journal .roger-note { display: flex; gap: 12px; align-items: flex-end; margin-top: 26px; }
.journal .roger-note img { flex: none; width: 52px; height: 64px; object-fit: contain; }
.journal .roger-note p.ink-note { margin: 0; }

/* Shared paper furniture. */
.journal .button { display: inline-flex; align-items: center; min-height: 48px; padding: 13px 22px; border-radius: 11px; background: var(--cloth); color: var(--page); font-weight: 600; font-size: 15px; text-decoration: none; }
.journal .button:hover { background: #0b3520; }
.journal .page p.fine { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--quiet); }
.journal .card { background: var(--card); border: 1px solid var(--card-edge); border-radius: 14px; }
.journal .num { font-family: Menlo, ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; }
.journal .up { color: var(--up); }
.journal .down { color: var(--down); }
.journal .gold { color: var(--gold); }

/* A real app screen in a plain device frame. */
.journal .device { position: relative; width: min(280px, 100%); margin: 0; padding: 8px; border-radius: 40px; background: #1c1f1a; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .5); }
.journal .device img { display: block; width: 100%; height: auto; border-radius: 32px; }
.journal .with-note { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 22px; align-items: center; }
.journal .with-note .ink-note { margin: 0; }
.journal .with-note .ink-note + .ink-note { margin-top: 40px; transform: rotate(1deg); }

/* How it works: a day written in plain words, and what each part scored. */
.journal .words { margin: 22px 0 0; padding: 12px 16px; font: 21px/1.3 var(--hand); color: var(--ink); }
.journal .scored { list-style: none; margin: 6px 0 0; padding: 0; }
.journal .scored li { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 40px; border-bottom: 1px solid #ece3d0; font-size: 15px; }
.journal .scored li span { display: flex; align-items: center; gap: 8px; }
.journal .scored .cat { font-size: 11px; background: #deeee4; color: #10291d; padding: 2px 8px; border-radius: 99px; }
.journal .day-note { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: #e6e1f2; }
.journal .day-note span { display: block; font-size: 12px; font-weight: 600; color: var(--violet); }
.journal .page .day-note p { margin: 4px 0 0; font: 19px/1.25 var(--hand); color: #2e2560; }
.journal .moved { display: flex; flex-direction: column; gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.journal .moved li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 54px; gap: 10px; align-items: center; font-size: 15px; }
.journal .moved-track { position: relative; height: 16px; background: linear-gradient(90deg, transparent calc(50% - .5px), #c9c0ad calc(50% - .5px), #c9c0ad calc(50% + .5px), transparent calc(50% + .5px)); }
.journal .moved-track i { position: absolute; top: 2px; height: 12px; border-radius: 2px; background: var(--up); }
.journal .moved-track i.negative { background: var(--down); }
.journal .moved b { font-family: Menlo, ui-monospace, Consolas, monospace; font-size: 13px; font-weight: 600; text-align: right; }

/* It adds up: two months of a sample record as a share price. */
.journal .long-head { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 8px; }
.journal .long-head span { display: block; font-size: 12px; color: var(--quiet); }
.journal .long-head strong { display: block; font: 600 34px/1.1 Menlo, ui-monospace, Consolas, monospace; letter-spacing: -1px; color: var(--ink); }
.journal .long-head .gold { font-size: 13px; font-weight: 600; padding-bottom: 6px; }
.journal .long-chart { display: block; width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.journal .long-events { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.4; }
.journal .long-events li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.journal .long-events .mark { width: 11px; height: 11px; border-radius: 50%; background: var(--violet); }
.journal .long-events .mark.dip { background: none; border: 2px solid var(--down); }
.journal .long-events .mark.gap { width: 14px; height: 0; border-radius: 0; border-top: 2px dashed var(--cloth); margin-bottom: 4px; }

/* The options studio: a thesis, then the review. */
.journal .thesis-card { margin-top: 22px; padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 6px 14px; }
.journal .thesis-card .eyebrow { grid-column: 1 / -1; margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: var(--up); }
.journal .thesis-card h3 { margin: 0; font-family: Segoe UI, -apple-system, BlinkMacSystemFont, sans-serif; font-size: 25px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); }
.journal .thesis-card img { grid-row: 2 / 4; grid-column: 2; width: 76px; height: 92px; object-fit: contain; align-self: center; }
.journal .page .thesis-card p.why { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--quiet); }
.journal .thesis-card dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0 0; }
.journal .thesis-card dl div { padding: 10px 12px; border-radius: 10px; background: #e9efe9; border: 1px solid #d3dcd4; }
.journal .thesis-card dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--quiet); }
.journal .thesis-card dd { margin: 2px 0 0; font: 700 22px/1.2 Segoe UI, -apple-system, BlinkMacSystemFont, sans-serif; }
.journal .studio-steps { list-style: none; margin: 18px 0 0; padding: 0; }
.journal .studio-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid #ece3d0; font-size: 15px; line-height: 1.4; }
.journal .studio-steps li:last-child { border-bottom: 0; }
.journal .studio-steps .num { font-size: 14px; color: var(--violet); }

/* Patterns, and small wins. */
.journal .finding { margin-top: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.journal .finding .tag { align-self: flex-start; font-size: 12px; font-weight: 600; color: #10291d; background: #8bab96; padding: 3px 10px; border-radius: 99px; }
.journal .finding h3 { margin: 0; font-size: 28px; }
.journal .finding .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.journal .finding .pair div { padding: 12px 14px; border-radius: 10px; background: #ece3d0; }
.journal .finding .pair div:first-child { background: #deeee4; }
.journal .finding .pair span { display: block; font-size: 12px; color: var(--ink); }
.journal .finding .pair b { display: block; margin-top: 4px; font: 600 24px/1.2 Menlo, ui-monospace, Consolas, monospace; }
.journal .page .finding p { margin: 0; font-size: 14px; line-height: 1.45; }
.journal .new-high { margin-top: 22px; padding: 16px; display: flex; align-items: center; gap: 14px; border-color: #e0d3b6; }
.journal .new-high .coin { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #9c6f1a; box-shadow: inset 0 0 0 3px #d9b26a; }
.journal .new-high span { display: block; font-size: 12px; color: var(--quiet); }
.journal .new-high .gold { font-size: 13px; font-weight: 600; }
.journal .new-high strong { display: block; font: 600 22px/1.2 Menlo, ui-monospace, Consolas, monospace; }
.journal .medals { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: center; }
.journal .medals li { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; line-height: 1.25; }
.journal .medals img { width: 92px; height: 92px; object-fit: contain; }

/* Privacy: four plain facts. */
.journal .facts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.journal .facts li { display: flex; flex-direction: column; gap: 2px; padding-top: 9px; border-top: 2px solid var(--chapter-deep); }
.journal .facts b { font-size: 16px; }
.journal .facts span { font-size: 14px; color: var(--body); }

/* Begin: good questions. */
.journal .questions h3 { margin: 0 0 8px; font-size: 40px; }
.journal .questions details { border-top: 1px solid var(--card-edge); }
.journal .questions summary { font-weight: 600; font-size: 16px; padding: 14px 28px 14px 0; min-height: 48px; }
.journal .questions details > p { margin: 0 0 14px; font-size: 15px; line-height: 1.5; }
.journal .questions nav { display: flex; gap: 22px; padding-top: 14px; border-top: 1px solid var(--card-edge); font-size: 15px; }
.journal .questions nav a { color: var(--cloth); min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 900px) {
  .board::before { background: linear-gradient(90deg, rgba(5, 30, 18, .65), rgba(40, 96, 66, .28) 42%, rgba(4, 26, 15, .5)); }
  .book-wrap::before { border-inline-color: rgba(246, 240, 227, .3); background: repeating-linear-gradient(180deg, rgba(246, 240, 227, .45) 0 2px, transparent 2px 9px); }
  .book.open-book { box-shadow: 2px 4px 0 #d9cfb9, 4px 7px 0 #f6f0e3, 5px 8px 0 #b3a68f; }
  .book.open-book::before { background: linear-gradient(90deg, rgba(18, 32, 24, .16), transparent); }
  .journal .page-left, .journal .page-right { background-image: linear-gradient(90deg, rgba(90, 80, 52, .14), transparent 12%); }
  .journal .page.stack-snap { background-color: var(--page); background-image: linear-gradient(90deg, rgba(90, 80, 52, .14), transparent 12%), var(--grain); }
  .journal h1 { font-size: clamp(40px, 11vw, 52px); }
  .journal .page h2 { font-size: clamp(36px, 10vw, 44px); }
  .cover-title { font-size: 24px; }
  .cover-sub { font-size: 15px; }
  .journal .page p.ink-note { font-size: 22px; }
  .journal .with-note { grid-template-columns: 1fr; justify-items: center; }
  .journal .with-note .ink-note { max-width: 18em; }
  .journal .with-note .ink-note + .ink-note { margin-top: 0; }
  .journal .device { width: min(250px, 80%); }
  .journal .moved li { grid-template-columns: 84px minmax(0, 1fr) 48px; font-size: 14px; }
  .journal .facts { gap: 14px 18px; }
  .journal .medals img { width: 80px; height: 80px; }
  .masthead .beta-link { padding: 9px 14px; font-size: 14px; }
}

/* Support, privacy and terms: the same desk, with the page bound in the green cloth. */
.document-page .document-layout { box-shadow: 0 0 0 8px var(--cloth), 0 18px 30px -16px #000; }
.document-page .masthead { --ink: var(--night-ink); }
.document-page .footer { --ink: var(--night-ink); --quiet: var(--night-quiet); --rule: rgba(246, 240, 227, .2); }
.document-page .masthead :focus-visible, .document-page .footer :focus-visible { outline-color: var(--lilac); }
.doc h1 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; }
.doc-body h2 { font-family: var(--display); font-weight: 600; font-size: 33px; letter-spacing: -.01em; }
.doc-body .callout { background: #fbf6ea; border-left-color: var(--cloth); }
@media (max-width: 760px) { .doc-body h2 { font-size: 29px; } }
.journal .page h3.then { margin: 26px 0 0; font-size: 30px; }
@media (max-width: 900px) {
  .journal .thesis-card { grid-template-columns: minmax(0, 1fr) 56px; padding: 16px; }
  .journal .thesis-card h3 { font-size: 21px; }
  .journal .thesis-card img { grid-row: 2; width: 56px; height: 68px; }
  .journal .page .thesis-card p.why { grid-column: 1 / -1; }
  .journal .page h3.then { font-size: 27px; }
}
