/*
  orchardbit.com
  One stylesheet for every page. No web fonts, no scripts: system faces only.
  Light theme is "orchard morning", dark theme is "orchard at night"; both follow the
  visitor's system setting through prefers-color-scheme.
*/

:root {
  color-scheme: light dark;

  --paper: #f6f8f3;
  --panel: #edf2ea;
  --ink: #14231a;
  --ink-soft: #46564b;
  --rule: #d5ddd3;
  --leaf: #2b6a3d;
  --leaf-deep: #1d5530;
  --plot: #b3c2b2;
  --plot-key: #76897a;

  --font-display:
    'Iowan Old Style', 'Iowan Old Style BT', ui-serif, 'Palatino Linotype', Palatino, Georgia, serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:
    ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  --measure: 40rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1511;
    --panel: #16201a;
    --ink: #e3eae2;
    --ink-soft: #a2b1a6;
    --rule: #27332b;
    --leaf: #86c796;
    --leaf-deep: #a6ddb2;
    --plot: #3a4b40;
    --plot-key: #5d7565;
  }
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: var(--leaf);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--leaf-deep);
  text-decoration-thickness: 0.12em;
}

:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 2px;
}

strong {
  font-weight: 650;
}

code,
.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

ul,
ol {
  padding-left: 1.4rem;
}

li {
  margin: 0.35rem 0;
}

li::marker {
  color: var(--leaf);
}

ol > li::marker {
  font-family: var(--font-mono);
  font-weight: 600;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header and wordmark: "orchard" in a book serif, grafted onto a monospaced "bit". */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
  font-size: 1.625rem;
  line-height: 1;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--ink);
}

.wm-orchard {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: -0.01em;
}

.wm-bit {
  margin-left: 0.03em;
  color: var(--leaf);
  font-family: var(--font-mono);
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.nav {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav li {
  margin: 0;
}

.nav a {
  display: inline-block;
  padding: 0.5rem 0.125rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--leaf);
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.35em;
}

/* Home: hero and the orchard plan */

.hero {
  padding-block: clamp(2.5rem, 8vw, 6.5rem) 0;
}

.hero h1 {
  max-width: 15ch;
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1.4rem + 5.6vw, 5.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
}

.lede {
  max-width: 34rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
}

.plot {
  margin: clamp(2.25rem, 6vw, 4rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.plot-map {
  display: block;
  width: 100%;
  height: 120px;
  color: var(--plot);
  -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent 98%);
  mask-image: linear-gradient(90deg, #000 50%, transparent 98%);
}

.plot-planted {
  color: var(--leaf);
}

.plot-halo {
  opacity: 0.4;
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .plot-halo {
    animation: grow 5s ease-in-out infinite;
  }
}

@keyframes grow {
  0%,
  100% {
    opacity: 0.22;
    transform: scale(0.82);
  }

  50% {
    opacity: 0.55;
    transform: scale(1.12);
  }
}

.plot-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.75rem;
  margin: 0.875rem 0 0;
  color: var(--ink-soft);
  font: 500 0.8125rem/1.4 var(--font-mono);
}

.key {
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  margin-right: 0.55em;
  border-radius: 50%;
  vertical-align: -0.04em;
}

.key-planted {
  background: var(--leaf);
}

.key-open {
  border: 1.5px solid var(--plot-key);
}

/* Register: a label column and a body column, used for sections on every page. */

.register {
  display: grid;
  gap: 0.875rem;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-top: 1px solid var(--rule);
}

.register > h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.register-body {
  min-width: 0;
  overflow-wrap: break-word;
  max-width: var(--measure);
}

.register-body > :first-child {
  margin-top: 0;
}

.register-body > :last-child {
  margin-bottom: 0;
}

.register-body > h3 {
  margin: 1.75rem 0 0.375rem;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.35;
}

.register-body > h3:first-child {
  margin-top: 0;
}

@media (min-width: 54rem) {
  .register {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 3rem;
  }

  .register > h2 {
    position: sticky;
    top: 1.5rem;
    align-self: start;
  }

  .qa > h2 {
    font-size: 1.375rem;
  }
}

/* Apps list */

.apps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.app {
  margin: 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.app + .app {
  padding-top: 1.25rem;
}

.app-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.app-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.25;
}

.app p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
}

.tag {
  padding: 0.4em 0.8em;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--leaf);
  font: 600 0.75rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.more {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Contact */

.email {
  margin: 0 0 0.75rem;
  font: 500 clamp(1.25rem, 1rem + 1.2vw, 1.75rem)/1.25 var(--font-mono);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--panel);
}

.panel > :first-child {
  margin-top: 0;
}

.panel > :last-child {
  margin-bottom: 0;
}

.panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
}

/* Inner pages: support, legal, 404 */

.doc-head {
  padding-block: clamp(2rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem);
}

.doc-head h1,
.lost h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.25rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.doc-head .lede {
  margin-top: 1rem;
}

.eyebrow {
  margin: 0 0 0.875rem;
  color: var(--leaf);
  font: 600 0.8125rem/1.3 var(--font-mono);
  letter-spacing: 0.02em;
}

.meta {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font: 0.8125rem/1.4 var(--font-mono);
}

.doc-intro {
  max-width: var(--measure);
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
}

.lead-in {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 54rem) {
  .lead-in {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
    gap: 1.5rem;
  }
}

.toc {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.toc h2 {
  margin: 0 0 0.625rem;
  color: var(--ink-soft);
  font: 600 0.75rem/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li {
  margin: 0.25rem 0;
}

.short ul {
  margin: 0;
}

.notice {
  max-width: var(--measure);
  margin: 0 0 1.5rem;
  padding: 0.875rem 1.125rem;
  border: 1px dashed var(--leaf);
  border-radius: 0.875rem;
  font-size: 0.9375rem;
}

/* Data flows in privacy policies */

.flows {
  display: grid;
  gap: 0.875rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.flow {
  margin: 0;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 1rem;
}

.flow h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.125rem 1rem;
  margin: 0 0 0.375rem;
}

.flow-who {
  color: var(--ink-soft);
  font: 500 0.8125rem/1.4 var(--font-mono);
}

.flow p {
  margin: 0.5rem 0 0;
}

.flow ul {
  margin: 0.5rem 0 0;
}

/* Plans table in terms of use */

.table-wrap {
  margin: 1.25rem 0;
  overflow-x: auto;
}

.plans {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.plans caption {
  margin-bottom: 0.25rem;
  text-align: left;
}

.plans th,
.plans td {
  padding: 0.625rem 1rem 0.625rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.plans thead th {
  color: var(--ink-soft);
  font: 600 0.75rem/1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plans tbody th {
  font-weight: 650;
}

.plans .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fine {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* 404 */

.lost {
  padding-block: clamp(2.5rem, 9vw, 6rem) 0;
}

.lost-plot {
  display: block;
  width: 9.5rem;
  height: auto;
  margin-bottom: 2rem;
  color: var(--plot);
}

.lost-plot .lost-empty {
  color: var(--leaf);
}

.lost .lede {
  margin-top: 1rem;
}

.lost-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.lost-links li {
  margin: 0;
}

/* Footer */

.site-footer {
  margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--rule);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.75rem 2.75rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
}

@media (forced-colors: active) {
  .key-planted {
    forced-color-adjust: none;
    background: CanvasText;
  }
}

@media print {
  .skip,
  .nav,
  .plot,
  .toc {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  a {
    color: inherit;
  }

  .register {
    break-inside: avoid;
  }

  .register > h2 {
    position: static;
  }
}
