:root {
  --paper: #f8f9f5;
  --surface: #fff;
  --ink: #25372f;
  --muted: #667269;
  --accent: #315b46;
  --soft: #eaf0e7;
  --line: #dce2d9;
  --radius: 16px;
  --space: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  line-height: 1.6
}

* {
  box-sizing: border-box
}

body {
  margin: 0
}

a {
  color: var(--accent);
  text-underline-offset: 4px
}

button,
input,
select,
textarea {
  font: inherit
}

button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation
}

button {
  cursor: pointer
}

a,
button,
input,
textarea,
select,
summary {
  outline-offset: 5px
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent)
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  letter-spacing: -.035em;
  font-weight: 550
}

h1 {
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  margin: 14px 0 20px;
  max-width: 750px
}

h2 {
  font-size: 1.65rem;
  margin: 0 0 16px
}

h3 {
  font-size: 1.18rem;
  margin: 12px 0
}

p {
  margin: 0 0 18px
}

small,
.small {
  font-size: .82rem
}

.muted {
  color: var(--muted)
}

.eyebrow {
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent)
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 10;
  background: var(--ink);
  color: white;
  padding: 10px
}

.skip-link:focus {
  top: 12px
}

.shell {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 100vh
}

.sidebar {
  padding: 34px 26px;
  background: #f0f3ec;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: sticky;
  top: 0;
  height: 100vh
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.25;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -.04em
}

.brand-mark {
  background: var(--accent);
  color: #fff;
  width: 38px;
  height: 40px;
  border-radius: 12px 12px 12px 3px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 400
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 4px
}

.nav-label {
  padding: 0 12px;
  margin-bottom: 12px;
  font-size: .65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .16em
}

.nav {
  display: grid;
  gap: 6px
}

.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: .87rem;
  padding: 11px 12px;
  border-radius: 8px
}

.nav a:hover {
  background: #e6ece1
}

.nav a[aria-current=page] {
  background: #dfe8d8;
  color: var(--ink);
  font-weight: 600
}

.nav-icon {
  width: 20px;
  font-size: 1.1rem
}

.sidebar-note {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: .77rem;
  color: var(--muted)
}

.sidebar-note strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 7px
}

.main {
  min-width: 0;
  padding: 0 6%;
  max-width: 1500px;
  width: 100%;
  margin: auto
}

.topbar {
  height: 91px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: .76rem;
  color: var(--muted)
}

.topbar a {
  text-decoration: none
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #64825a;
  border-radius: 50%;
  margin-right: 8px
}

.hero {
  padding: 54px 0 38px
}

.hero p {
  color: var(--muted);
  max-width: 540px;
  font-size: 1rem
}

.hero-art {
  float: right;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border: 1px solid #d6dfcf;
  border-radius: 50%;
  color: #8c9e7b;
  font-family: serif;
  font-size: 4.3rem;
  position: relative;
  margin: 28px 30px 0
}

.hero-art:after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid #d6dfcf;
  border-radius: 50%;
  transform: translate(12px, -6px)
}

.featured {
  background: var(--soft);
  border: 1px solid #dce5d5;
  border-radius: var(--radius);
  padding: 26px 30px;
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 42px
}

.feature-icon {
  height: 58px;
  width: 58px;
  flex-shrink: 0;
  border: 1px solid #cad7bf;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.7rem
}

.featured h2 {
  font-size: 1.35rem;
  margin: 6px 0 7px
}

.featured p {
  font-size: .85rem;
  color: var(--muted);
  margin: 0
}

.featured .button {
  margin-left: auto;
  white-space: nowrap
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 20px
}

.section-heading h2 {
  margin: 0
}

.search {
  position: relative;
  max-width: 270px;
  width: 100%
}

.search input {
  padding: 10px 38px 10px 14px;
  width: 100%;
  font-size: .83rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px
}

.search span {
  position: absolute;
  right: 14px;
  top: 9px;
  color: var(--muted);
  pointer-events: none
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 25px
}

.chip {
  background: transparent;
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 30px;
  font-size: .77rem;
  color: var(--muted)
}

.chip:hover {
  border-color: var(--accent)
}

.chip[aria-pressed=true] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
  display: flex;
  flex-direction: column;
  min-width: 0
}

.card:hover {
  border-color: #a6b6a0
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.resource-icon {
  height: 43px;
  width: 43px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef1e9;
  color: #496344;
  font-size: 1.25rem
}

.resource-icon.clay {
  background: #f5ece5;
  color: #a36f4f
}

.resource-icon.blue {
  background: #eaf0f3;
  color: #577988
}

.resource-icon.lilac {
  background: #efeaf3;
  color: #84708e
}

.badge {
  display: inline-block;
  font-size: .65rem;
  padding: 4px 9px;
  border-radius: 5px;
  line-height: 1.5;
  background: #f1f4ee;
  color: #52654b;
  font-weight: 550;
  margin-left: 4px;
}

.badge.clay {
  background: #f7ede4;
  color: #835a39
}

.badge.blue {
  background: #eaf0f3;
  color: #456579
}

.card h3 {
  margin-top: 20px
}

.card p {
  color: var(--muted);
  font-size: .86rem;
  margin-bottom: 20px
}

.card-actions {
  margin-top: auto;
  border-top: 1px solid #edf0e9;
  padding-top: 17px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .79rem
}

.card-actions a {
  text-decoration: none
}

.card-actions a:hover {
  text-decoration: underline
}

.card-actions a:last-child {
  color: var(--muted)
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 19px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  font-size: .82rem;
  text-decoration: none;
  font-weight: 500
}

.button:hover {
  background: #234433
}

.button.secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line)
}

.button.secondary:hover {
  background: var(--soft)
}

.button.ghost {
  background: transparent;
  color: var(--accent);
  border-color: transparent
}

.button:disabled {
  opacity: .45;
  cursor: not-allowed
}

.empty-state {
  text-align: center;
  padding: 45px;
  border: 1px dashed var(--line);
  border-radius: var(--radius)
}

[hidden] {
  display: none !important
}

.guide-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 27px 0;
  margin: 35px 0 0;
  border-top: 1px solid var(--line)
}

.guide-strip h3 {
  margin: 0 0 7px
}

.guide-strip p {
  font-size: .83rem;
  color: var(--muted);
  margin: 0
}

.guide-strip a {
  margin-left: auto;
  white-space: nowrap;
  font-size: .82rem
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 23px 0 30px;
  margin-top: 35px;
  font-size: .7rem;
  color: var(--muted)
}

footer a {
  color: inherit
}

.prose {
  max-width: 760px
}

.keyboard-reference {
  margin: 24px 0
}

.keyboard-reference img {
  display: block;
  width: 100%;
  height: auto
}

.keyboard-reference figcaption {
  margin-top: 10px
}

.prose h2 {
  margin-top: 38px
}

.prose h3 {
  margin-top: 26px
}

.prose li {
  margin: 9px 0
}

.prose p {
  color: var(--muted)
}

.callout {
  border-left: 3px solid #8ca27b;
  background: var(--soft);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: .88rem
}

.callout.warning {
  background: #faf0e1;
  border-color: #b18b50
}

.callout strong {
  display: block;
  margin-bottom: 5px
}

.callout p {
  margin: 0
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 20px 48px
}

.steps li:before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent);
  font-size: .8rem;
  background: var(--soft);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%
}

.steps h3 {
  margin: 0 0 9px
}

.steps p {
  margin: 0
}

details {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 12px 0;
  padding: 16px 20px;
  background: var(--surface)
}

summary {
  cursor: pointer;
  font-weight: 500
}

.platform-guide > summary {
  font-size: 1.18rem;
  color: var(--accent)
}

.platform-guide[open] > summary {
  margin-bottom: 24px
}

details p {
  margin: 14px 0 0
}

code,
kbd,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .82em
}

code,
kbd {
  background: #edf0e8;
  padding: 3px 6px;
  border-radius: 4px
}

pre {
  background: #25372f;
  color: #e4eddd;
  padding: 22px;
  border-radius: 12px;
  overflow: auto
}

pre code {
  background: none;
  padding: 0
}

.table-wrap {
  overflow: auto
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: .87rem
}

th,
td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid var(--line)
}

th {
  background: var(--soft);
  font-weight: 550
}

blockquote {
  margin: 24px 0;
  padding: 10px 25px;
  border-left: 2px solid #9bb08b;
  font-family: Georgia, serif;
  font-size: 1.3rem
}

blockquote cite {
  display: block;
  font-family: system-ui;
  font-size: .8rem;
  color: var(--muted);
  margin-top: 9px
}

.demo-section {
  padding: 32px 0;
  border-top: 1px solid var(--line)
}

.demo-section>h2 {
  margin-bottom: 24px
}

.demo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px
}

.class-label {
  font-size: .73rem;
  color: var(--muted);
  display: block;
  margin: 10px 0 18px
}

.swatch {
  width: 76px;
  height: 60px;
  border-radius: 9px;
  border: 1px solid var(--line)
}

label {
  display: block;
  font-size: .83rem;
  margin: 0 0 6px
}

input:not([type=checkbox]):not([type=radio]),
textarea,
select {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  max-width: 100%
}

.field {
  margin-bottom: 20px
}

.field>input,
.field>select,
.field>textarea {
  width: 100%
}

.field small {
  display: block;
  color: var(--muted);
  margin-top: 6px
}

input[aria-invalid=true] {
  border-color: #a65343
}

.error {
  color: #994331 !important
}

.check {
  display: flex;
  gap: 10px;
  align-items: center
}

input[type=checkbox],
input[type=radio] {
  accent-color: var(--accent)
}

progress {
  width: 100%;
  accent-color: var(--accent)
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 30px;
  font-size: .8rem
}

.guide-index {
  display: grid;
  gap: 18px
}

.guide-index .card {
  max-width: 850px
}

@media(min-width:1500px) {
  .main {
    padding: 0 80px
  }
}

@media(max-width:1050px) {
  .shell {
    grid-template-columns: 205px 1fr
  }

  .sidebar {
    padding: 30px 18px
  }

  .hero-art {
    display: none
  }

  .featured {
    padding: 22px;
    gap: 16px;
    flex-wrap: wrap
  }

  .featured .button {
    margin-left: 74px
  }

  .resource-grid {
    gap: 14px
  }

  .card {
    padding: 20px
  }
}

@media(max-width:720px) {
  .shell {
    display: block
  }

  .sidebar {
    height: auto;
    position: static;
    padding: 19px 6%;
    gap: 21px;
    border-right: 0;
    border-bottom: 1px solid var(--line)
  }

  .brand small {
    display: none
  }

  .brand-mark {
    width: 32px;
    height: 34px
  }

  .nav-label,
  .sidebar-note {
    display: none
  }

  .nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap
  }

  .nav a {
    padding: 8px 10px;
    font-size: .75rem
  }

  .nav-icon {
    display: none
  }

  .main {
    padding: 0 6%
  }

  .topbar {
    height: 59px;
    font-size: .68rem
  }

  .hero {
    padding: 35px 0 24px
  }

  h1 {
    font-size: 2.8rem
  }

  .featured {
    margin-bottom: 30px
  }

  .feature-icon {
    display: none
  }

  .featured .button {
    margin-left: 0
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px
  }

  .search {
    max-width: none
  }

  .resource-grid,
  .demo-grid {
    grid-template-columns: 1fr
  }

  .guide-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px
  }

  .guide-strip a {
    margin-left: 0
  }

  footer {
    flex-wrap: wrap
  }

  .card {
    padding: 23px
  }

  .hero p {
    font-size: .93rem
  }
}

@media(prefers-reduced-motion:no-preference) {

  a,
  button,
  .card {
    transition: background .15s, border-color .15s
  }

  html {
    scroll-behavior: smooth
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

.spacer {
  display: inline-block;
  height: inherit;
  width: .5rem;
}
