/* The Weftday website. A card file: a deep green box, white index cards, a coloured tab on each. */
@font-face { font-family: Figtree; src: url(fonts/figtree.woff2) format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url(fonts/bricolage.woff2) format('woff2'); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }

:root {
  --box: #0f3d2e; --box2: #0b3125; --on-box: #f1f6ee; --on-box-soft: #b9cdbf;
  --card: #fbfcf8; --ink: #17201b; --soft: #55635a; --rule: #dfe6da;
  --record: #f0624b; --notes: #1f8a67; --calendar: #3b6cf0; --people: #8361ea; --yours: #e3a52a; --open: #17201b;
  --ui: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: 'Bricolage Grotesque', Figtree, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(18px, 4.5vw, 64px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--on-box); font: 18px/1.55 var(--ui); -webkit-font-smoothing: antialiased;
  background-color: var(--box);
  /* the cloth lining of the box: two faint sets of threads crossing */
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 5px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 5px);
}
::selection { background: var(--yours); color: var(--ink); }
:focus-visible { outline: 2px solid var(--yours); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure, pre { margin: 0; }
ul { padding: 0; list-style: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---- the top: the mark, the tabs, the way in */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 14px var(--pad); background: color-mix(in srgb, var(--box) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: -.02em; }
.tabs { display: flex; gap: 4px; margin: 0 auto; }
.tabs a { position: relative; padding: 8px 14px; border-radius: 10px 10px 4px 4px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--on-box-soft); transition: color .2s var(--ease), background-color .2s var(--ease); }
.tabs a::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--h); transform: scaleX(.35); transform-origin: left; opacity: .85; transition: transform .3s var(--ease); }
.tabs a:hover, .tabs a.on { color: var(--on-box); }
.tabs a:hover::before, .tabs a.on::before { transform: scaleX(1); }
.tabs a.on { background: rgba(255, 255, 255, .07); }
[data-tab=record] { --h: var(--record); } [data-tab=notes] { --h: var(--notes); } [data-tab=calendar] { --h: var(--calendar); }
[data-tab=people] { --h: var(--people); } [data-tab=yours] { --h: var(--yours); } [data-tab=open] { --h: var(--on-box); }
.topact { display: flex; align-items: center; gap: 14px; }
.ghub { display: flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--on-box-soft); }
.ghub:hover { color: var(--on-box); }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 999px; font: 650 15.5px/1 var(--ui); text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease); }
.btn.big { height: 54px; padding: 0 26px; font-size: 17.5px; }
.btn.solid { background: var(--on-box); color: var(--box2); box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .5); }
.btn.solid:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .6); }
.btn.line { border-color: rgba(241, 246, 238, .42); color: var(--on-box); }
.btn.line:hover { border-color: var(--on-box); background: rgba(255, 255, 255, .06); }
.btn.ink { background: var(--ink); color: var(--card); }
.btn.ink:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(23, 32, 27, .55); }
.btn.quiet { border-color: var(--rule); color: var(--ink); }
.btn.quiet:hover { border-color: var(--ink); }
.btn:active { transform: translateY(0) scale(.98); }

/* ---- the label on the front of the drawer */
.hero { padding: clamp(40px, 8vw, 104px) var(--pad) clamp(40px, 6vw, 72px); max-width: 1320px; margin: 0 auto; }
.hero h1 { font: 700 clamp(42px, 9vw, 96px)/.96 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.lede { margin-top: clamp(20px, 2.6vw, 30px); max-width: 33em; font-size: clamp(19px, 1.9vw, 23px); line-height: 1.45; color: var(--on-box-soft); text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }
.cta.small { margin-top: 26px; }
.fine { margin-top: 18px; font-size: 15px; color: var(--on-box-soft); }

/* ---- the drawer of cards */
.drawer { max-width: 1320px; margin: 0 auto; padding: 0 clamp(10px, 3vw, 40px); }
.card { position: relative; background: var(--card); color: var(--ink); border-radius: 26px; padding: clamp(26px, 5vw, 68px); margin-top: 58px; box-shadow: 0 -1px 0 rgba(255, 255, 255, .5) inset, 0 30px 60px -30px rgba(0, 0, 0, .55); }
.card + .card { margin-top: 62px; }
/* the tab: part of the card, standing above its top edge */
.card .tab { position: absolute; top: -34px; left: var(--tab-x, 44px); width: 92px; height: 36px; display: grid; place-items: center; border-radius: 14px 14px 0 0; background: var(--h); color: #fff; }
.card .tab::after { content: ""; position: absolute; inset: auto 0 -2px 0; height: 4px; background: var(--h); }

.t-record { --h: var(--record); --tab-x: 44px; } .t-notes { --h: var(--notes); --tab-x: 152px; } .t-calendar { --h: var(--calendar); --tab-x: 260px; }
.t-people { --h: var(--people); --tab-x: 368px; } .t-yours { --h: var(--yours); --tab-x: 476px; } .t-open { --h: var(--open); --tab-x: 584px; }
.t-yours .tab { color: var(--ink); }

.card.first { margin-top: 44px; padding: clamp(10px, 1.4vw, 18px); }
.dividers { position: absolute; left: 0; right: 0; top: -30px; height: 30px; pointer-events: none; }
.dividers i { position: absolute; bottom: 0; width: 92px; height: 30px; border-radius: 14px 14px 0 0; background: var(--h); left: var(--tab-x); transform-origin: bottom; animation: rise .9s var(--ease) both; }
.dividers i:nth-child(2) { animation-delay: .07s; } .dividers i:nth-child(3) { animation-delay: .14s; } .dividers i:nth-child(4) { animation-delay: .21s; } .dividers i:nth-child(5) { animation-delay: .28s; }
@keyframes rise { from { transform: translateY(100%); } }
.screen { position: relative; border-radius: 16px; overflow: hidden; background: #edf1ea; }
.screen video { width: 100%; height: auto; aspect-ratio: 1280 / 800; object-fit: cover; }
.screen figcaption { position: absolute; left: 14px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(15, 61, 46, .86); color: var(--on-box); font-size: 13.5px; font-weight: 550; }
.vbtn { position: absolute; right: 14px; bottom: 12px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer; background: rgba(15, 61, 46, .86); color: var(--on-box); transition: transform .18s var(--ease), background-color .18s var(--ease); }
.vbtn:hover { transform: scale(1.08); background: var(--box); }
.vbtn .play, .vbtn[aria-pressed=false] .pause { display: none; }
.vbtn[aria-pressed=false] .play { display: block; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4.5vw, 68px); align-items: center; }
.split.flip .say { order: 2; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.say h2 { font: 700 clamp(32px, 4.3vw, 54px)/1.02 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.say p { margin-top: 20px; font-size: clamp(17px, 1.45vw, 19.5px); color: var(--soft); max-width: 34em; text-wrap: pretty; }
.lines { margin-top: 24px; border-top: 1px solid var(--rule); }
.lines li { padding: 13px 0 13px 26px; border-bottom: 1px solid var(--rule); font-size: 16.5px; line-height: 1.45; position: relative; }
.lines li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 2.5px; border-radius: 2px; background: var(--h, var(--ink)); }
.lines.tight li { padding: 10px 0 10px 26px; font-size: 15.5px; }
.lines.tight li::before { top: 19px; }
.shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--rule); box-shadow: 0 24px 50px -28px rgba(23, 40, 30, .45); background: #edf1ea; }
.shot img { width: 100%; height: auto; }
.split:not(.flip) .shot { margin-right: calc(-1 * clamp(26px, 5vw, 68px) - 40px); border-radius: 18px 0 0 18px; border-right: 0; }
.split.flip .shot { margin-left: calc(-1 * clamp(26px, 5vw, 68px) - 40px); border-radius: 0 18px 18px 0; border-left: 0; }
.split:not(.flip) .shot img { width: 118%; max-width: none; }
.split.flip .shot img { width: 118%; max-width: none; margin-left: -18%; }
.t-notes .shot img { margin-left: -42%; width: 142%; }

.card.dark { background: #14251d; color: var(--on-box); }
.card.dark .say p { color: var(--on-box-soft); }
.card.dark .lines, .card.dark .lines li { border-color: rgba(255, 255, 255, .13); }
.map svg { width: 100%; height: auto; }
.map .wire { fill: none; stroke: var(--yours); stroke-width: 2; stroke-dasharray: 5 7; stroke-linecap: round; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.map .node rect { fill: #1d3329; stroke: rgba(255, 255, 255, .2); }
.map .node.you rect { fill: var(--yours); stroke: none; }
.map text { font: 650 15px var(--ui); fill: var(--on-box); text-anchor: middle; }
.map .sub { font: 500 12px var(--ui); fill: var(--on-box-soft); }
.map .you text { fill: var(--ink); } .map .you .sub { fill: #5c4710; }
.map figcaption { margin-top: 14px; text-align: center; font-size: 15px; color: var(--on-box-soft); }

.code pre { padding: 20px 22px; border-radius: 16px; background: var(--ink); color: #e9f0e6; font: 500 15px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; }
.code p { margin-top: 12px; font-size: 15.5px; color: var(--soft); }
.code h3 { margin-top: 30px; font: 700 20px/1.2 var(--display); letter-spacing: -.02em; }
.code .lines { margin-top: 12px; }

/* ---- questions, and the way out */
.faq { max-width: 880px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--pad) 0; }
.faq h2, .close h2 { font: 700 clamp(34px, 4.6vw, 56px)/1.02 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.qs { margin-top: 30px; border-top: 1px solid rgba(255, 255, 255, .16); }
.qs details { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.qs summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; cursor: pointer; list-style: none; font-weight: 650; font-size: 19px; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 2px solid var(--on-box-soft); border-bottom: 2px solid var(--on-box-soft); transform: rotate(45deg); transition: transform .25s var(--ease); margin-right: 6px; }
.qs details[open] summary::after { transform: rotate(225deg); }
.qs summary:hover { color: #fff; }
.qs p { padding: 0 2px 22px; max-width: 40em; color: var(--on-box-soft); font-size: 17px; }
.close { max-width: 1320px; margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--pad) clamp(56px, 8vw, 110px); }
.close p { margin-top: 14px; font-size: 20px; color: var(--on-box-soft); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px var(--pad) 34px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 15px; color: var(--on-box-soft); }
.fmark { display: flex; align-items: center; gap: 10px; }
.fmark b { font: 700 19px var(--display); color: var(--on-box); letter-spacing: -.02em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { text-decoration: none; }
.foot a:hover { color: var(--on-box); }

/* ---- smaller screens */
@media (max-width: 1040px) { .tabs { display: none; } .topact { margin-left: auto; } }
@media (max-width: 860px) {
  body { font-size: 17px; }
  .split, .split.flip { grid-template-columns: minmax(0, 1fr); }
  .split.flip .say { order: 0; }
  .split:not(.flip) .shot, .split.flip .shot { margin: 6px 0 0; border-radius: 14px; border: 1px solid var(--rule); }
  .split:not(.flip) .shot img, .split.flip .shot img { width: 100%; margin: 0; }
  .split.flip.split .t-notes-img, .t-notes .split.flip .shot img { width: 190%; max-width: none; margin-left: -90%; }
  .split .shot.box img, .split.flip .shot.box img { width: min(100%, var(--w, 470px)); }
  .card { border-radius: 20px; }
  .card .tab, .dividers i { width: 56px; }
  .t-record { --tab-x: 22px; } .t-notes { --tab-x: 84px; } .t-calendar { --tab-x: 146px; } .t-people { --tab-x: 208px; } .t-yours { --tab-x: 270px; } .t-open { --tab-x: 22px; }
  .ghub span { display: none; }
  .screen figcaption { display: none; }
}
@media (max-width: 420px) { .top .btn { height: 38px; padding: 0 14px; font-size: 14.5px; } .btn.big { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dividers i, .map .wire { animation: none; }
  .btn, .vbtn { transition: none; }
}

/* a picture of one box from the app, set on the app's own green */
.shot.box { display: grid; place-items: center; padding: clamp(18px, 3vw, 44px); background: #dfe8da; }
.split .shot.box img, .split.flip .shot.box img { width: min(100%, var(--w, 470px)); margin: 0; border-radius: 16px; box-shadow: 0 24px 50px -22px rgba(23, 40, 30, .5); }
.t-people .shot.box { --w: 420px; padding-bottom: 0; align-items: start; max-height: 560px; }
.t-open .split { align-items: start; }
