:root {
  color-scheme: light;
  --paper: #f6f2e9;
  --ink: #1f211e;
  --ink-soft: #4a4d46;
  --quiet: #77796f;
  --green: #1d4b36;
  --green-deep: #0f2f22;
  --rule: rgba(31, 33, 30, 0.14);
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 4.5vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper) url("/paper.jpg") repeat;
  background-size: 600px 600px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 4px; }
img, video { display: block; max-width: 100%; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip-link { position: absolute; left: 1rem; top: 1rem; padding: .6rem .9rem; background: var(--ink); color: var(--paper); border-radius: 6px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* header and footer */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 1px 2px rgba(15, 47, 34, .25); }
.site-nav { display: flex; gap: 1.4rem; font-size: .95rem; }
.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 2rem var(--gutter); border-top: 1px solid var(--rule); color: var(--quiet); font-size: .85rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.site-footer a { text-decoration: none; color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-brand { font-family: var(--serif); font-size: 1.05rem; color: var(--ink) !important; }

/* home */
.home { flex: 1; width: min(100%, 72rem); margin: 0 auto; padding: clamp(1rem, 4vw, 3rem) var(--gutter) clamp(3rem, 7vw, 6rem); text-align: center; }
.home h1 { margin: 0 auto; max-width: 14ch; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -.035em; }
.lede { margin: 1.1rem auto 0; max-width: 44rem; color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.2rem); line-height: 1.55; }
.private { color: var(--green); font-weight: 500; text-decoration: none; white-space: nowrap; }
.private svg { width: .85em; height: .85em; margin-right: .3em; vertical-align: -.05em; }
.private:hover { text-decoration: underline; text-underline-offset: 3px; }
.store { display: inline-block; margin-top: 1.4rem; border-radius: 10px; }
.store img { width: 160px; height: auto; }
.store-note { margin: .7rem 0 0; color: var(--quiet); font-size: .85rem; }
.store-end { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* Four points, each with a square pencil drawing in the film's style (multiply: its white paper becomes the page's). */
.points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); max-width: 72rem; margin: clamp(3.5rem, 7vw, 6rem) auto 0; }
.point img { display: block; width: min(100%, 15rem); height: auto; aspect-ratio: 1; margin: 0 auto; mix-blend-mode: multiply; }
.point h2 { margin: 1.4rem 0 .4rem; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.25; letter-spacing: -.01em; }
.point p { margin: 0 auto; max-width: 17rem; color: var(--ink-soft); font-size: .98rem; line-height: 1.5; }

.film { position: relative; margin: clamp(2rem, 4.5vw, 3rem) auto 0; width: 100%; max-width: min(64rem, max(34rem, calc((100svh - 28rem) * 16 / 9))); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #ece6d8; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 18px 40px -18px rgba(31, 33, 30, .35), 0 2px 6px rgba(31, 33, 30, .08); }
.film.is-portrait { aspect-ratio: 9 / 16; max-width: 26rem; }
.film .video-js { width: 100%; height: 100%; background: #ece6d8; color: #fff; font-family: var(--sans); }
.film .video-js .vjs-poster img, .film .video-js .vjs-tech { object-fit: cover; }
.film .video-js .vjs-big-play-button { width: 2em; height: 2em; margin: -1em 0 0 -1em; border: 0; border-radius: 50%; background: rgba(15, 47, 34, .86); box-shadow: 0 10px 30px -8px rgba(15, 47, 34, .7); font-size: 2.6rem; line-height: 2em; }
.film .video-js:hover .vjs-big-play-button, .film .video-js .vjs-big-play-button:focus { background: var(--green-deep); }
.film .video-js .vjs-control-bar { background: linear-gradient(to top, rgba(15, 47, 34, .72), rgba(15, 47, 34, 0)); }


/* information pages */
.document { flex: 1; width: min(100%, 46rem); margin: 0 auto; padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter) clamp(3.5rem, 8vw, 6rem); }
.eyebrow { margin: 0 0 1rem; color: var(--green); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.document h1 { margin: 0 0 1.6rem; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 6.5vw, 3.8rem); line-height: 1.05; letter-spacing: -.03em; }
.document-content { color: var(--ink-soft); font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.document-content p { margin: 0 0 1.2rem; }
.document-content h2 { margin: 2.6rem 0 .9rem; color: var(--ink); font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.3; letter-spacing: -.01em; }
.document-content h3 { margin: 1.6rem 0 .5rem; color: var(--ink); font-size: 1rem; font-weight: 600; }
.document-content ul { margin: .8rem 0 1.4rem; padding-left: 1.2rem; }
.document-content li { margin-bottom: .55rem; padding-left: .2rem; }
.document-content strong { color: var(--ink); font-weight: 600; }
.document-content a { color: var(--green); text-underline-offset: 3px; }
.updated { color: var(--quiet); font-size: .85rem; margin-bottom: 2rem !important; }
.support-email { display: inline-block; margin: .2rem 0 .6rem; font-family: var(--serif); font-size: clamp(1.6rem, 5.5vw, 2.4rem); letter-spacing: -.02em; color: var(--green) !important; text-decoration: none; }
.support-email:hover { text-decoration: underline; }
.summary { margin: 0 0 2.6rem; padding: 1.15rem 1.35rem .3rem; border: 1px solid var(--rule); border-radius: 16px; background: rgba(255, 255, 255, .42); }
.document-content .summary h2 { margin: 0 0 .3rem; font-size: 1.2rem; }
.document-content .summary ul { margin-bottom: .9rem; }

.not-found { flex: 1; display: grid; place-content: center; gap: 1rem; padding: 4rem var(--gutter); text-align: center; }
.not-found h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 7vw, 4rem); letter-spacing: -.03em; }
.not-found p { margin: 0; color: var(--ink-soft); }

@media (min-width: 900px) {
  .home h1 { max-width: none; }
}
@media (max-width: 1000px) {
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; max-width: 40rem; }
}
@media (max-width: 560px) {
  .points { grid-template-columns: 1fr; max-width: 22rem; }
  .point img { width: 13rem; }
}
@media (max-width: 760px) {
  .site-footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .site-nav { gap: 1rem; }
  .brand { font-size: 1.2rem; }
}
