/* boarddesigner.app: the site's one stylesheet.
   The language is the app's own output, a shop drawing: maple and kraft paper, walnut ink, one
   cherry accent, measurements in mono, and the dimension line (a thin rule with end ticks) as the
   signature: section markers, callouts and dividers. Fonts are on the site itself (site/fonts,
   SIL Open Font License), so no visitor's address is sent anywhere. */

@font-face {
  font-family: 'Zilla Slab';
  src: url('fonts/zilla-slab-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Zilla Slab';
  src: url('fonts/zilla-slab-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --walnut: #3a2a1f;
  --maple: #f4ecdf;
  --paper: #fbf8f2;
  --kraft: #e8dcc8;
  --cherry: #a9482a;
  --cherry-deep: #8a3a21;
  --ink: #2b2119;
  --muted: #6e5f52;
  --rule: #cdbda5;
  --grid: rgba(90, 67, 50, 0.07);
  --card: #fffdf9;
  --yes: #2f6b3a;
  --display: 'Zilla Slab', 'Rockwell', 'Roboto Slab', Georgia, serif;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --measure: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --maple: #241b15;
    --paper: #1c1511;
    --kraft: #2c221b;
    --ink: #efe6da;
    --muted: #b3a493;
    --rule: #4a3b2f;
    --grid: rgba(239, 230, 218, 0.05);
    --card: #261d17;
    --cherry: #e07a52;
    --cherry-deep: #f09a76;
    --yes: #8fcf98;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
/* Pictures carry width and height so the page does not jump while they load; auto keeps their shape. */
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--cherry);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--cherry-deep);
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 {
  font-size: clamp(36px, 5vw, 60px);
  margin: 0 0 16px;
}
h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 48px 0 12px;
}
h3 {
  font-size: 22px;
  margin: 0 0 6px;
}
h4 {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 8px;
}
code,
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}
/* `hidden` wins over a class's display (the Install button is shown only when the browser offers it). */
[hidden] {
  display: none !important;
}

/* ---- The frame ---- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 21px/1 var(--display);
  color: var(--ink);
  text-decoration: none;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--cherry);
}
.site-nav a.nav-cta {
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--walnut);
  color: #f6eee3;
}
@media (prefers-color-scheme: dark) {
  .site-nav a.nav-cta {
    background: var(--cherry);
    color: #1c1511;
  }
}
.site-main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 40px clamp(16px, 4vw, 40px) 64px;
}
.site-foot {
  border-top: 1px solid var(--rule);
  background: var(--kraft);
  color: var(--muted);
  font-size: 14px;
}
.site-foot-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 40px) 40px;
  display: grid;
  gap: 8px 40px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.site-foot p {
  margin: 0;
}

/* ---- Full-width bands inside the page column ---- */
.band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 40px);
}
.band > .inner {
  max-width: var(--measure);
  margin: 0 auto;
}
.band > .inner > h2:first-of-type {
  margin-top: 0;
}
.band.grid-paper {
  background-color: var(--maple);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.band.walnut {
  background: var(--walnut);
  color: #efe6da;
}
.band.walnut h2,
.band.walnut h3 {
  color: #f6eee3;
}
.band.walnut a {
  color: #f0a27f;
}
.band.walnut .dim {
  color: #c9b49b;
}

/* ---- The signature: a dimension line, |── label ──| ---- */
.dim {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.dim::before,
.dim::after {
  content: '';
  flex: 1;
  height: 11px;
  opacity: 0.7;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) left center / 1px 100% no-repeat;
}
.dim::after {
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 1px 100% no-repeat;
}
.dim.left::before {
  flex: 0 0 28px;
}
.dim b {
  color: var(--cherry);
  font-weight: 500;
}
.section-mark {
  margin-bottom: 18px;
}

/* ---- Home: the hero ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding: clamp(8px, 3vw, 32px) 0 clamp(24px, 4vw, 48px);
}
.hero h1 {
  font-size: clamp(44px, 6.6vw, 82px);
  line-height: 1;
}
.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--cherry);
}
.hero .lead {
  font-size: 20px;
}
.hero-figure {
  margin: 0;
}
.hero-figure img {
  display: block;
  width: 100%;
}
.hero-figure .dim {
  margin: -6% 12% 0;
}
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-figure img {
    animation: settle 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-figure .dim {
    animation: draw 700ms 600ms ease-out both;
  }
  .hero-text > * {
    animation: rise 600ms ease-out both;
  }
  .hero-text > :nth-child(2) {
    animation-delay: 90ms;
  }
  .hero-text > :nth-child(3) {
    animation-delay: 180ms;
  }
  .hero-text > :nth-child(4) {
    animation-delay: 270ms;
  }
}
@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(-28px) rotate(-1.5deg);
  }
}
@keyframes draw {
  from {
    clip-path: inset(0 50% 0 50%);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
  font: 400 13px/1.5 var(--mono);
  color: var(--muted);
}
.facts li::before {
  content: '— ';
  color: var(--cherry);
}

/* ---- Buttons ---- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 6px;
  border: 1.5px solid currentColor;
  color: var(--ink);
  background: transparent;
  font: 700 16px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease;
}
.button:hover {
  transform: translateY(-1px);
  color: var(--ink);
}
.band.walnut .button {
  color: #f6eee3;
}
.button.primary {
  background: var(--cherry);
  border-color: var(--cherry);
  color: #fff;
}
.button.primary:hover {
  background: var(--cherry-deep);
  border-color: var(--cherry-deep);
  color: #fff;
}

/* ---- Board to sheet ---- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}
@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
  }
}
.board {
  margin: 0;
}
.board img {
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 14px rgba(58, 42, 31, 0.18));
}
.board figcaption {
  margin-top: 12px;
  font-size: 15px;
}
.board-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.board .board-name {
  font-weight: 700;
}
.board .board-size {
  font: 400 12.5px/1.6 var(--mono);
  color: var(--muted);
  white-space: nowrap;
}

/* ---- The generated worked example: it reads like the printed sheet ---- */
.example {
  padding: 18px 22px 22px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow-x: auto;
  box-shadow: 0 18px 40px -26px rgba(58, 42, 31, 0.4);
}
.example h3 {
  font-size: 22px;
}
.example h3 .muted {
  font: 400 14px/1 var(--mono);
}
.example table {
  border-collapse: collapse;
  font-size: 14px;
  width: 100%;
}
.example th {
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  border-bottom: 1.5px solid var(--ink);
  padding: 6px 10px 6px 0;
}
.example td {
  padding: 6px 10px 6px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 13.5px;
}
.example td:first-child {
  font-family: var(--body);
  font-weight: 700;
  font-size: 14.5px;
}
.example ol {
  margin: 0;
  padding-left: 22px;
  columns: 2 220px;
}

/* ---- Galleries of boards ---- */
.boards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 36px 28px;
  align-items: start;
}
/* Every picture in a gallery sits on the same baseline, whatever the board's shape. */
.boards .board-pic {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 190px;
}
@media (max-width: 560px) {
  .boards .board-pic {
    height: 130px;
  }
  .boards .board img {
    max-height: 130px;
  }
}
.boards.row {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.boards.row .board-pic {
  height: 170px;
}
.boards.row .board img {
  max-height: 170px;
}
.boards .board img {
  max-height: 190px;
  width: auto;
}
.boards a {
  color: inherit;
  text-decoration: none;
}
.boards a:hover .board-name {
  color: var(--cherry);
}
.board-desc {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 4px;
}
.gallery-group {
  margin-top: 56px;
}
.gallery-group h2 {
  margin: 0 0 22px;
}

/* ---- What it accounts for ---- */
.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 32px;
  margin-top: 32px;
}
.note-card h3 {
  font-size: 21px;
}
.note-card .dim {
  margin-bottom: 14px;
}
.note-card p {
  margin: 0;
  color: #d8cbbb;
}

/* ---- Pictures of the app ---- */
.shot {
  margin: 24px 0;
}
.shot img {
  display: block;
  /* A tall crop (a side panel) shows at a readable height; its width follows. */
  max-height: min(680px, 80vh);
  width: auto;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 18px 40px -26px rgba(58, 42, 31, 0.45);
}

/* ---- Free and Pro ---- */
.editions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.edition {
  padding: 24px 26px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.edition h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 28px;
}
.edition h3 small {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.edition ul {
  margin: 12px 0 0;
  padding-left: 20px;
}
.edition li {
  margin: 4px 0;
}
.edition.pro {
  border-top: 4px solid var(--cherry);
}

table.features {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
table.features th,
table.features td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
table.features thead th {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1.5px solid var(--ink);
}
table.features td {
  text-align: center;
  width: 90px;
}
table.features tr.area th {
  background: var(--maple);
  font: 700 15px/1.4 var(--display);
  color: var(--ink);
}
table.features th[scope='row'] {
  font-weight: 400;
}
table.features .note {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.yes {
  color: var(--yes);
  font-weight: 700;
}
.no {
  color: var(--muted);
}
.badge {
  display: inline-block;
  font: 500 11px/1.5 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 7px;
  border-radius: 3px;
  border: 1px solid var(--cherry);
  color: var(--cherry);
  vertical-align: middle;
  margin-left: 6px;
}

/* ---- The feature tour ---- */
.tour-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  margin: 64px 0;
}
.tour-row.flip {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}
.tour-row.flip > :first-child {
  order: 2;
}
.tour-row h2 {
  margin-top: 0;
}
.tour-row .shot {
  margin: 0;
}
@media (max-width: 820px) {
  .tour-row,
  .tour-row.flip {
    grid-template-columns: 1fr;
  }
  .tour-row.flip > :first-child {
    order: 0;
  }
}

/* ---- Docs: the list of pages beside the page on wide screens ---- */
.docs {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 48px;
}
.docs-nav {
  position: sticky;
  top: 84px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
  border-left: 1px solid var(--rule);
}
.docs-nav a {
  padding: 5px 0 5px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--ink);
  text-decoration: none;
}
.docs-nav a:hover {
  color: var(--cherry);
}
.docs-nav a[aria-current='page'] {
  border-left-color: var(--cherry);
  color: var(--cherry);
  font-weight: 700;
}
.docs-body {
  max-width: 760px;
  min-width: 0;
}
.docs-body h1 {
  font-size: clamp(34px, 4vw, 50px);
}
@media (max-width: 820px) {
  .docs {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .docs-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 16px;
    border-left: 0;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 12px;
  }
  .docs-nav a {
    padding: 0;
    border-left: 0;
  }
}

.muted {
  color: var(--muted);
}
.install-help {
  display: none;
}
.cta {
  text-align: center;
}
.cta .lead {
  margin: 0 auto;
}
.band.walnut .lead {
  color: #d8cbbb;
}
.cta .actions {
  justify-content: center;
}
