@font-face {
  font-family: "Leadly Montserrat";
  src: url("assets/montserrat-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
}

:root { font-size: 16px; }

html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); }
main.component-board { width: 100%; max-width: none; margin: 0; padding: clamp(18px,3vw,42px); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; overflow: visible; border-radius: 0; background: var(--paper); }
.sample-card { min-width: 0; padding: clamp(20px,2.5vw,32px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.sample-card.span-2 { grid-column: 1 / -1; }
.sample-label { display: block; margin-bottom: 28px; color: var(--muted); font-size: .625rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.sample-header { min-height: 72px; padding: 0 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.sample-header .brand img { display: block; width: 28px; height: 28px; border: 0; }
.sample-header nav { justify-self: center; display: flex; gap: 24px; color: var(--muted); font-size: .75rem; font-weight: 600; }

.sample-type-card .lp-label,.sample-type-card .site-label { margin: 0 0 22px; color: var(--muted); }
.sample-heading { margin-top: 30px; }
.sample-subheading { max-width: 42ch; margin: 18px 0 0; color: var(--ink); }
.sample-body { max-width: 64ch; margin: 24px 0 0; color: var(--muted); }
.sample-small { margin: 18px 0 0; color: var(--muted); }

.button-stack { display: grid; gap: 11px; }
.button-stack .button { width: 100%; border: 0; font-size: .875rem; cursor: pointer; }
.sample-button-accent { background: var(--accent); color: white; }
.sample-button-outline { border: 1px solid var(--line) !important; background: transparent; color: var(--ink); }
.button-light { background: white; color: var(--ink); }

.field-stack { display: grid; gap: 16px; }
.field-stack label { display: grid; gap: 8px; color: var(--muted); font-size: .6875rem; font-weight: 700; }
.field-stack input:not([type="checkbox"]),.field-stack textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: white; color: var(--ink); font: 500 .875rem/1.45 "Leadly Montserrat",sans-serif; }
.field-stack input:focus,.field-stack textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-stack .check { display: flex; align-items: center; flex-direction: row; }
.field-stack .check input { accent-color: var(--accent); }

.swatch-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.swatch-grid div { padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.swatch-grid i { display: block; aspect-ratio: 1.25; border: 1px solid var(--line); border-radius: 8px; background: var(--swatch); }
.swatch-grid span { display: block; margin-top: 8px; color: var(--muted); font-size: .5625rem; font-weight: 700; text-transform: uppercase; }

.sample-content-card { min-height: 350px; display: flex; flex-direction: column; }
.sample-content-card.dark { background: var(--ink); color: white; }
.sample-badge { width: max-content; padding: 8px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: .5625rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sample-card-heading { margin: auto 0 13px; font: 600 2.375rem/1 'Iowan Old Style',Baskerville,serif; letter-spacing: -.04em; }
.sample-content-card p { margin: 0 0 23px; color: var(--muted); font-size: .875rem; line-height: 1.55; }
.sample-content-card.dark p { color: #aaa79f; }
.sample-content-card > a { font-size: .8125rem; font-weight: 700; }

.sample-footer { padding-top: 22px; display: grid; grid-template-columns: 1fr auto auto auto; gap: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .625rem; font-weight: 600; }
.sample-footer nav { display: flex; gap: 18px; }
.sample-footer a:hover { color: var(--ink); }

@media (max-width: 760px) {
  main.component-board { grid-template-columns: 1fr; padding: 14px; }
  .sample-card.span-2 { grid-column: auto; }
  .sample-header { padding: 14px; grid-template-columns: 1fr auto; }
  .sample-header nav { display: none; }
  .sample-header .button { min-height: 44px; padding-inline: 14px; }
  .swatch-grid { grid-template-columns: repeat(2,1fr); }
  .sample-footer { grid-template-columns: 1fr 1fr; }
  .sample-footer nav { grid-column: 1 / -1; grid-row: 1; }
}
