/* Static pages: guides, blocks, quilt sizes. Same look as the app, no JS. */
:root {
  --paper: #f7f6f2;
  --surface: #ffffff;
  --ink: #1b211e;
  --ink-2: #444d48;
  --ink-3: #5e6863;
  --rule: #e2e1db;
  --rule-2: #cfcec6;
  --accent: #25624c;
  --accent-ink: #ffffff;
  --accent-soft: #e4efe9;
  --chalk: #f4d35e;
  --focus: #1f5fd1;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121715;
    --surface: #1a201d;
    --ink: #edf0ec;
    --ink-2: #c3cac5;
    --ink-3: #a3ada7;
    --rule: #2a322e;
    --rule-2: #3a443f;
    --accent: #7fc8a6;
    --accent-ink: #0e1512;
    --accent-soft: #1d3029;
    --focus: #8ab4ff;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 var(--body);
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
svg {
  max-width: 100%;
  height: auto;
}

/* header */
.g-head {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
}
.g-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  text-decoration: none;
  font-variation-settings: 'SOFT' 100;
}
.g-nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}
.g-nav a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  padding: 10px 2px;
}
.g-nav a:hover {
  text-decoration: underline;
}
.g-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.g-btn:hover {
  filter: brightness(1.08);
}
.g-btn-quiet {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--rule-2);
  white-space: normal;
  text-align: center;
}
@media (max-width: 700px) {
  .g-head {
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  .g-head .g-btn {
    display: none;
  }
  .g-nav {
    gap: 14px;
  }
}
@media (max-width: 400px) {
  .g-nav {
    width: 100%;
    margin-left: 0;
  }
}

.g-crumbs {
  max-width: 760px;
  margin: 8px auto 0;
  padding: 0 20px;
  color: var(--ink-3);
  font-size: 15px;
}
.g-crumbs a {
  color: var(--ink-3);
}

/* article */
main {
  padding: 0 20px 48px;
}
article {
  max-width: 760px;
  margin: 0 auto;
}
article.g-wide {
  max-width: 1080px;
}
.g-kicker {
  margin: 28px 0 6px;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 700;
}
h2 {
  margin: 44px 0 12px;
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 650;
}
h3 {
  font-size: 22px;
  margin: 28px 0 8px;
}
.g-lede {
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 24px;
  padding-left: 16px;
  border-left: 4px solid var(--chalk);
}
.g-body p,
.g-body li {
  color: var(--ink-2);
}
.g-body b,
.g-body strong {
  color: var(--ink);
}
.g-muted {
  color: var(--ink-3);
  font-size: 0.9em;
}
.g-small {
  font-size: 15px;
}
.g-steps {
  padding-left: 0;
  list-style: none;
  counter-reset: s;
}
.g-steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 14px 52px;
}
.g-steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--display);
  font-weight: 700;
}
.g-note {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 20px 0;
  color: var(--ink-2);
  font-size: 17px;
}

/* tables */
.g-table {
  overflow-x: auto;
  margin: 16px 0 8px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
}
.g-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.g-table caption {
  text-align: left;
  padding: 10px 14px 0;
  color: var(--ink-3);
}
.g-table th,
.g-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.g-table thead th {
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 700;
  white-space: nowrap;
}
.g-table tbody th {
  font-weight: 650;
  color: var(--ink);
}
.g-table tr:last-child th,
.g-table tr:last-child td {
  border-bottom: 0;
}

/* figures */
.g-fig {
  margin: 24px 0;
}
.g-fig-quilt {
  text-align: center;
}
.g-quilt {
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 10px 30px -14px rgba(20, 30, 25, 0.5);
}
.g-fig figcaption {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 16px;
}
.g-trio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
  align-items: end;
}
.g-trio .g-fig {
  margin: 8px 0;
  text-align: center;
}
.g-diagram {
  display: grid;
  grid-template-columns: minmax(0, 300px) 1fr;
  gap: 24px;
  align-items: start;
  margin: 16px 0;
}
.g-block {
  display: inline-block;
  line-height: 0;
}
.g-block svg {
  border-radius: 4px;
}
@media (max-width: 600px) {
  .g-diagram {
    grid-template-columns: 1fr;
  }
}
.g-key {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.g-key li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}
.g-swatch {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
  flex: none;
}
.g-palettes {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px 16px;
}
.g-palettes li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.g-dots {
  display: inline-flex;
}
.g-dots i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-right: -6px;
  box-shadow: 0 0 0 2px var(--paper);
}

/* call to action */
.g-cta {
  margin: 40px 0;
  padding: 24px;
  border-radius: 16px;
  background: #24503f;
  color: #f2f5f1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}
.g-cta p {
  color: #dfe7e1;
  margin: 0 0 16px;
}
.g-cta .g-cta-title {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 650;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.15;
}
.g-cta .g-btn {
  background: var(--chalk);
  color: #1b211e;
  white-space: normal;
  text-align: center;
}

/* questions */
.g-faq details {
  border-top: 1px solid var(--rule);
  padding: 4px 0;
}
.g-faq details:last-child {
  border-bottom: 1px solid var(--rule);
}
.g-faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
  min-height: 48px;
}
.g-faq details p {
  margin: 0 0 14px;
  color: var(--ink-2);
}
.g-updated {
  color: var(--ink-3);
  font-size: 15px;
  margin-top: 28px;
}

/* related and hubs */
.g-related {
  max-width: 760px;
  margin: 24px auto 0;
}
.g-cards,
.g-hub {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.g-hub {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.g-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.g-card b {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.2;
}
.g-card span {
  color: var(--ink-3);
  font-size: 15px;
}
.g-card:hover {
  border-color: var(--accent);
}
.g-blocks,
.g-beds {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.g-blocks a,
.g-beds a {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 16px 10px;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
}
.g-blocks a:hover,
.g-beds a:hover {
  border-color: var(--accent);
}
.g-blocks span:not(.g-block),
.g-beds span {
  color: var(--ink-3);
  font-size: 15px;
}
.g-beds b {
  font-family: var(--display);
  font-size: 24px;
}

/* footer */
.g-foot {
  border-top: 1px solid var(--rule);
  padding: 24px 20px 40px;
  max-width: 1120px;
  margin: 0 auto;
  color: var(--ink-3);
  font-size: 15px;
}
.g-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.g-foot a {
  color: var(--ink-2);
  padding: 8px 0;
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .g-head,
  .g-nav,
  .g-crumbs,
  .g-cta,
  .g-related,
  .g-foot,
  .g-faq {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }
  .g-table {
    border: 0;
  }
  .g-quilt {
    box-shadow: none;
    max-width: 60%;
  }
}
