@font-face {
  font-family: Onest;
  src: url(fonts/Onest.ttf) format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Lora;
  src: url(fonts/Lora.ttf) format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.7 Onest,
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
::selection {
  background: var(--soft);
}
.wrap {
  width: min(1150px, calc(100% - 80px));
  margin-inline: auto;
}
.skip {
  position: absolute;
  top: -70px;
  left: 20px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 650;
}
.brand img {
  width: 32px;
  height: 32px;
}
.header nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
  color: var(--muted);
}
.header nav a:hover {
  color: var(--accent);
}
.header-action {
  font-size: 11px;
  border: 1px solid var(--line);
  padding: 10px 15px;
  border-radius: 5px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 20px;
}
h1 {
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.12;
  letter-spacing: -2.8px;
  font-weight: 500;
  margin: 0 0 25px;
}
h2 {
  font-size: 33px;
  line-height: 1.3;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 0;
}
h3 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 550;
  letter-spacing: -0.4px;
  margin: 0 0 12px;
}
p {
  margin: 0 0 15px;
}
.lead {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 480px;
}
.button {
  border: 0;
  background: var(--accent);
  color: var(--on);
  border-radius: 5px;
  padding: 13px 20px;
  min-height: 46px;
  font-size: 12px;
  display: inline-flex;
  gap: 26px;
  justify-content: center;
  align-items: center;
}
.button:hover {
  filter: brightness(0.94);
}
.button.secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}
.section-head p {
  font-size: 12px;
  color: var(--muted);
  max-width: 300px;
  margin: 0;
}
.section-head .eyebrow {
  margin-bottom: 12px;
  font-size: 9px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.filters button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 30px;
  padding: 9px 16px;
  font-size: 11px;
}
.filters button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--on);
  background: var(--accent);
}
.filters button:hover {
  border-color: var(--accent);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
}
.card-content {
  padding: 22px;
}
.card-content p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.85;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  letter-spacing: 0.3px;
  color: var(--muted);
  margin-bottom: 12px;
}
.card button.open {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink);
  padding: 5px 0;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 16px;
}
.section {
  padding-block: 75px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
}
.split > div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  margin-top: 22px;
}
.stack {
  display: grid;
  gap: 23px;
}
.stack article {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.stack article:last-child {
  border-bottom: 0;
  padding: 0;
}
.stack article p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}
.stack article h3 {
  font-size: 15px;
  margin-bottom: 7px;
}
.band {
  background: var(--soft);
  border-block: 1px solid var(--line);
}
.faq {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  padding-block: 75px;
}
details {
  border-bottom: 1px solid var(--line);
}
details:first-child {
  border-top: 1px solid var(--line);
}
summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 20px 28px 20px 0;
  font-size: 12px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 22px;
  color: var(--accent);
}
details[open] summary::after {
  content: "−";
}
details p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin: 0 20px 20px 0;
}
.closing {
  border-block: 1px solid var(--line);
  padding-block: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.closing p {
  font-size: 25px;
  letter-spacing: -0.7px;
  margin: 0;
}
.footer {
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer p,
.footer > a:last-child {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.footer .brand {
  font-size: 24px;
}
.feedback {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  min-height: 1.7em;
  margin: 15px 0;
}
.empty {
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  padding: 30px;
  width: min(650px, calc(100% - 32px));
  max-height: 85vh;
}
dialog::backdrop {
  background: #151b22a0;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.dialog-head h2 {
  font-size: 27px;
}
.close-dialog {
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  width: 32px;
  height: 32px;
  font-size: 20px;
  flex-shrink: 0;
}
.dialog-content p,
.dialog-content li {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.dialog-content h3 {
  font-size: 17px;
  margin: 22px 0 9px;
}
.dialog-content ol,
.dialog-content ul {
  padding-left: 22px;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: var(--card);
  color: var(--ink);
  min-width: 0;
}
.label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.notice {
  padding: 15px;
  border: 1px solid var(--accent);
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .split {
    gap: 40px;
  }
  .grid {
    gap: 18px;
  }
  .card-content {
    padding: 18px;
  }
  .header nav {
    gap: 20px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .header {
    height: 78px;
  }
  .header nav {
    display: none;
  }
  .brand {
    font-size: 26px;
  }
  .header-action {
    font-size: 10px;
    padding: 8px 12px;
  }
  .eyebrow {
    font-size: 8px;
  }
  h1 {
    font-size: 43px;
    letter-spacing: -1.9px;
  }
  h2 {
    font-size: 28px;
  }
  .lead {
    font-size: 13px;
  }
  .section {
    padding-block: 45px;
  }
  .section-head {
    display: block;
    margin-bottom: 23px;
  }
  .section-head > p {
    margin-top: 16px;
    max-width: none;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .filters {
    gap: 6px;
  }
  .filters button {
    font-size: 10px;
    padding: 8px 12px;
  }
  .faq {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 45px;
  }
  .closing {
    flex-direction: column;
    align-items: start;
    gap: 22px;
  }
  .closing p {
    font-size: 23px;
  }
  .closing .button {
    width: 100%;
    justify-content: space-between;
  }
  .footer {
    min-height: 115px;
    padding-block: 25px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .footer .brand {
    width: 100%;
  }
  .footer p,
  .footer > a:last-child {
    font-size: 9px;
  }
  .footer > a:last-child {
    margin-left: auto;
  }
  dialog {
    padding: 23px;
  }
  .dialog-head h2 {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

:root {
  --bg: #f4f2ec;
  --ink: #2b302c;
  --muted: #747a70;
  --accent: #3d5a45;
  --on: #fffdf5;
  --soft: #dde5d7;
  --line: #d8dcd0;
  --card: #fffdf8;
}
.hero {
  padding-block: 65px 30px;
}
.hero-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 45px;
}
.hero-title h1 {
  margin: 0;
  font-size: 67px;
  letter-spacing: -3px;
}
.hero-title h1 em {
  font-family: Lora, serif;
  font-weight: 400;
  color: #6d8064;
}
.hero-title .lead {
  font-size: 12px;
  margin-bottom: 5px;
}
.palette-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 7px;
  letter-spacing: 1.3px;
  color: var(--muted);
  margin-bottom: 14px;
}
.palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 330px;
  border-radius: 10px;
  overflow: hidden;
}
.swatch {
  background: var(--swatch);
  padding: 18px;
  display: flex;
  flex-direction: column;
  color: #fff;
  min-width: 0;
}
.swatch-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  opacity: 0.85;
}
.lock {
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  width: 28px;
  height: 28px;
  font-size: 18px;
  padding: 0;
  line-height: 1;
}
.lock[aria-pressed="true"] {
  background: #ffffff35;
}
.swatch-center {
  margin: auto;
  font-family: Lora, serif;
  font-size: 54px;
  opacity: 0.5;
}
.swatch-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.swatch input {
  width: 23px;
  height: 23px;
  display: block;
  padding: 0;
  border: 1px solid currentColor;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
}
.copy-hex {
  border: 0;
  background: none;
  color: inherit;
  font-size: 10px;
  padding: 5px 0;
  letter-spacing: 0.5px;
}
.palette-controls {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.palette-controls .button {
  font-size: 11px;
}
.palette-mode {
  font-size: 10px;
  color: var(--muted);
}
.palette-mode select {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  padding: 5px;
  margin-left: 8px;
}
.palette-export {
  margin-left: auto;
  display: flex;
  gap: 23px;
}
.palette-export button {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.contrast-band {
  background: #e9ece2;
  border-block: 1px solid var(--line);
  margin-top: 25px;
}
.contrast-band h2 {
  font-size: 39px;
}
.contrast-band h2 em {
  font-family: Lora, serif;
  font-weight: 400;
}
.contrast-fields {
  display: flex;
  gap: 20px;
  align-items: end;
  margin-top: 24px;
}
.contrast-fields label {
  font-size: 10px;
  color: var(--muted);
  flex: 1;
}
.contrast-fields select {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #c5ceba;
  border-radius: 5px;
  padding: 9px;
  background: #f5f7ef;
  color: var(--ink);
  font-size: 11px;
}
.contrast-fields button {
  background: none;
  border: 0;
  font-size: 22px;
  color: var(--accent);
  padding: 3px 0;
}
.ratio {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 23px;
}
.ratio strong {
  font-size: 54px;
  font-weight: 400;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
}
.ratio > span {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badges span {
  font-size: 8px;
  border: 1px solid #b6c1ab;
  border-radius: 3px;
  padding: 5px 7px;
}
.badges span[data-pass="false"] {
  color: #8f4939;
  border-color: #bfa59a;
}
.badges span[data-pass="true"] {
  color: #3e5b37;
}
.contrast-preview {
  border-radius: 10px;
  padding: 35px;
  position: relative;
  min-height: 370px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contrast-preview > span:first-child {
  font-size: 7px;
  letter-spacing: 1.5px;
  position: absolute;
  top: 25px;
  left: 35px;
}
.contrast-preview h3 {
  font-family: Lora, serif;
  font-size: 48px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -2px;
  margin: 20px 0;
}
.contrast-preview p {
  font-size: 12px;
  line-height: 1.9;
  max-width: 310px;
}
.preview-sign {
  font-size: 8px;
  letter-spacing: 1px;
  position: absolute;
  bottom: 25px;
  left: 35px;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-top: 35px;
}
.principles h3 {
  margin-top: 22px;
}
.principles p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.color-blocks {
  display: flex;
  gap: 7px;
  height: 95px;
  align-items: end;
}
.color-blocks i {
  background: #56735c;
  flex: 3;
  height: 100%;
  border-radius: 3px;
}
.color-blocks i:nth-child(2) {
  background: #bac3a4;
  flex: 2;
  height: 70%;
}
.color-blocks i:last-child {
  background: #d6b692;
  flex: 1;
  height: 40%;
}
.blocks-2 i:first-child {
  background: #d7cbbc;
  flex: 4;
  height: 75%;
}
.blocks-2 i:nth-child(2) {
  background: #9eab8b;
  height: 75%;
}
.blocks-2 i:last-child {
  background: #b96449;
  height: 75%;
  flex: 1;
}
.blocks-3 i:first-child {
  background: #253c31;
  flex: 2;
}
.blocks-3 i:nth-child(2) {
  background: #8b9c78;
  height: 100%;
}
.blocks-3 i:last-child {
  background: #e6d5b8;
  height: 100%;
  flex: 2;
}
@media (max-width: 1000px) {
  .hero-title h1 {
    font-size: 56px;
  }
  .palette {
    min-height: 280px;
  }
  .swatch {
    padding: 14px;
  }
  .palette-export {
    gap: 15px;
  }
  .palette-controls {
    gap: 17px;
  }
}
@media (max-width: 760px) {
  .hero {
    padding-block: 45px 25px;
  }
  .hero-title {
    display: block;
    margin-bottom: 28px;
  }
  .hero-title h1 {
    font-size: 48px;
    letter-spacing: -2px;
    margin-bottom: 22px;
  }
  .hero-title .lead br {
    display: none;
  }
  .palette-heading > span:last-child {
    display: none;
  }
  .palette {
    min-height: 270px;
    border-radius: 7px;
  }
  .swatch {
    padding: 10px 6px;
  }
  .swatch-top {
    flex-direction: column;
    gap: 12px;
  }
  .swatch-center {
    font-size: 28px;
  }
  .swatch-bottom {
    flex-direction: column;
    gap: 12px;
  }
  .copy-hex {
    font-size: 8px;
    letter-spacing: 0;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-top: 2px;
  }
  .swatch input {
    width: 20px;
    height: 20px;
  }
  .palette-controls {
    gap: 14px;
  }
  .palette-controls .button {
    font-size: 10px;
    padding-inline: 13px;
  }
  .palette-mode {
    font-size: 9px;
  }
  .palette-mode select {
    margin-left: 4px;
    font-size: 9px;
  }
  .palette-export {
    width: 100%;
    margin: 0;
    justify-content: space-between;
    gap: 12px;
  }
  .palette-export button {
    font-size: 10px;
  }
  .contrast-band h2 {
    font-size: 32px;
  }
  .contrast-preview {
    min-height: 330px;
    padding: 30px;
  }
  .contrast-preview h3 {
    font-size: 42px;
  }
  .contrast-preview > span:first-child,
  .preview-sign {
    left: 30px;
  }
  .principles {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .principles article {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0 20px;
  }
  .color-blocks {
    grid-row: 1/3;
    height: 85px;
    align-self: center;
  }
  .principles h3 {
    margin: 0 0 8px;
    font-size: 17px;
  }
  .principles p {
    font-size: 11px;
    margin: 0;
  }
}
