/* ============================================================
   Halfwild Brewing Co. — AI Site template
   Token layer + components. Reference-derived design system.
   ============================================================ */

:root {
    --paper: #faf7f2;
    --paper-2: #f2eee4;
    --ink: #111111;
    --ink-soft: #2b2b2b;
    --muted: #5c594f;
    --yellow: #ffcc00;
    --white: #ffffff;
    --maxw: 1100px;
    --gutter: 24px;
    --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --shadow: 3px 3px 0 var(--ink);
    --shadow-lg: 6px 6px 0 rgba(17, 17, 17, .16);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* The [hidden] attribute must win over component display rules,
   otherwise filtered cards stay in the document flow. */
[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.kb-body {
    margin: 0;
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -.01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.kb-body img {
    max-width: 100%;
    display: block;
}

.kb-body a {
    color: inherit;
}

.kb-body p {
    margin: 0;
}

.kb-body :focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.kb-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 10px 16px;
    z-index: 999;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.kb-skip:focus {
    left: 12px;
    top: 12px;
}

/* ------------------------------------------------ layout shell */

.kb-container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.kb-container--wide {
    max-width: 1360px;
}

.kb-section {
    padding: 96px 0;
}

.kb-section + .kb-section {
    border-top: 1px solid var(--ink);
}

.kb-section--tight {
    padding: 64px 0;
}

.kb-section--dark {
    background-color: var(--ink);
    color: var(--paper);
}

.kb-section--yellow {
    background-color: var(--yellow);
    color: var(--ink);
}

.kb-section--flush {
    padding-bottom: 0;
}

.kb-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ------------------------------------------------ typography */

.kb-label {
    margin: 0 0 20px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.kb-label--inline {
    margin: 0;
}

.kb-h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(38px, 5.6vw, 72px);
    line-height: 1.02;
    letter-spacing: -.025em;
    max-width: 20ch;
}

.kb-h1--wide {
    max-width: 24ch;
}

.kb-h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(27px, 3.6vw, 44px);
    line-height: 1.05;
    letter-spacing: -.022em;
    max-width: 22ch;
}

.kb-h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -.012em;
}

.kb-h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.kb-lede {
    max-width: 52ch;
    font-size: 15px;
    line-height: 1.6;
}

.kb-lede--narrow {
    max-width: 34ch;
}

.kb-body-text {
    max-width: 58ch;
    font-size: 14px;
    line-height: 1.62;
    color: var(--ink-soft);
}

.kb-small {
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted);
}

.kb-mono {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .04em;
}

.kb-mark {
    background-color: var(--yellow);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0 .1em;
}

.kb-hl {
    background-color: var(--yellow);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: .1em .44em;
    display: inline-block;
}

kbd,
.kb-kbd {
    font-family: var(--font-body);
    font-size: 11px;
    border: 1px solid currentColor;
    padding: 1px 5px;
}

/* ------------------------------------------------ header */

.kb-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background-color: var(--paper);
    border-bottom: 1px solid var(--ink);
}

.kb-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 72px;
}

.kb-logo {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -.02em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
}

.kb-logo:hover {
    background-color: var(--yellow);
}

.kb-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.kb-nav a {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.012em;
    text-decoration: none;
    color: var(--ink);
    padding: 2px 0;
}

.kb-nav a:hover,
.kb-nav a[aria-current="page"] {
    box-shadow: inset 0 -.5em 0 var(--yellow);
}

.kb-menu-btn {
    display: none;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 9px 14px;
    background-color: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
    cursor: pointer;
}

.kb-mobile-nav {
    display: none;
    border-bottom: 1px solid var(--ink);
    background-color: var(--paper);
}

.kb-mobile-nav[data-open="true"] {
    display: block;
}

.kb-mobile-nav__inner {
    display: flex;
    flex-direction: column;
    padding: 8px 0 18px;
}

.kb-mobile-nav__inner a {
    padding: 13px 0;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.015em;
    text-decoration: none;
    border-bottom: 1px solid rgba(17, 17, 17, .18);
}

.kb-mobile-nav__inner a:last-child {
    border-bottom: 0;
}

/* ------------------------------------------------ buttons */

.kb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid var(--ink);
    background-color: var(--white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}

.kb-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--ink);
}

.kb-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--ink);
}

.kb-btn--solid {
    background-color: var(--ink);
    color: var(--paper);
}

.kb-btn--yellow {
    background-color: var(--yellow);
    color: var(--ink);
}

.kb-btn--on-dark {
    background-color: transparent;
    color: var(--paper);
    border-color: var(--paper);
    box-shadow: 3px 3px 0 var(--yellow);
}

.kb-btn--on-dark:hover {
    box-shadow: 5px 5px 0 var(--yellow);
}

.kb-btn--ghost {
    box-shadow: none;
}

.kb-btn--ghost:hover {
    transform: none;
    box-shadow: none;
    background-color: var(--yellow);
}

.kb-btn--sm {
    padding: 9px 13px;
    font-size: 10px;
    letter-spacing: .12em;
}

.kb-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kb-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
}

.kb-link-arrow:hover {
    background-color: var(--yellow);
    color: var(--ink);
}

.kb-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    margin-bottom: 34px;
}

.kb-back:hover {
    background-color: var(--yellow);
}

/* ------------------------------------------------ section head */

.kb-sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.kb-sec-head__text {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.kb-sec-head .kb-label {
    margin: 0;
}

/* ------------------------------------------------ hero */

.kb-hero {
    padding: 76px 0 54px;
}

.kb-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: start;
}

.kb-hero__text {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.kb-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

/* ------------------------------------------------ badge (rotating seal) */

.kb-badge {
    position: relative;
    width: 186px;
    height: 186px;
    flex: 0 0 auto;
}

.kb-badge__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-6deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 9px;
    background-color: var(--yellow);
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    font-family: var(--font-body);
    font-size: 8px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.kb-badge svg {
    width: 100%;
    height: 100%;
    animation: kb-spin 26s linear infinite;
}

.kb-badge__ring {
    fill: var(--yellow);
    stroke: var(--ink);
    stroke-width: 1.2;
}

.kb-badge__text {
    fill: var(--ink);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

@keyframes kb-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ------------------------------------------------ full-bleed image */

.kb-wide {
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    overflow: hidden;
    background-color: var(--paper-2);
}

.kb-wide img {
    width: 100%;
    aspect-ratio: 16 / 5.6;
    object-fit: cover;
}

.kb-wide--short img {
    aspect-ratio: 16 / 4.2;
}

.kb-wide--tall img {
    aspect-ratio: 16 / 8;
}

/* ------------------------------------------------ marquee ticker */

.kb-marquee {
    overflow: hidden;
    background-color: var(--yellow);
    border-bottom: 1px solid var(--ink);
    padding: 11px 0;
}

.kb-marquee__track {
    display: flex;
    width: max-content;
    animation: kb-marquee 42s linear infinite;
}

.kb-marquee__group {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-right: 24px;
    white-space: nowrap;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink);
}

.kb-marquee__star {
    font-size: 11px;
    line-height: 1;
}

@keyframes kb-marquee {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

/* ------------------------------------------------ chips / meta */

.kb-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 4px 8px;
    border: 1px solid currentColor;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    line-height: 1.4;
    white-space: nowrap;
}

.kb-chip--yellow {
    background-color: var(--yellow);
    color: var(--ink);
    border-color: var(--ink);
}

.kb-chip--dark {
    background-color: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.kb-chip__sq {
    width: 9px;
    height: 9px;
    border: 1px solid var(--ink);
    flex: 0 0 auto;
}

.kb-sq--pouring {
    background-color: #111111;
}

.kb-sq--core {
    background-color: #ffcc00;
}

.kb-sq--seasonal {
    background-color: #8ca7f8;
}

.kb-sq--limited {
    background-color: #f79ac6;
}

.kb-sq--collab {
    background-color: #f8c59f;
}

.kb-meta-line {
    font-size: 12.5px;
    letter-spacing: .02em;
    color: inherit;
    opacity: .9;
}

.kb-updated {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    opacity: .62;
}

/* ------------------------------------------------ cards */

.kb-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border: 1px solid var(--ink);
    color: var(--ink);
    text-decoration: none;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

a.kb-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-lg);
}

.kb-card__media {
    overflow: hidden;
    border-bottom: 1px solid var(--ink);
    background-color: var(--paper-2);
}

.kb-card__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.kb-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px 20px;
    flex: 1 1 auto;
}

.kb-card__body .kb-h3 {
    margin-top: 2px;
}

.kb-card__foot {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kb-card--dark {
    background-color: var(--ink);
    color: var(--paper);
}

.kb-card--dark .kb-card__media {
    border-bottom-color: rgba(244, 242, 236, .35);
}

.kb-card--plain {
    border: 0;
    background-color: transparent;
}

.kb-card--plain .kb-card__media {
    border: 1px solid var(--ink);
}

.kb-card--plain .kb-card__body {
    padding: 16px 0 0;
}

/* ------------------------------------------------ polaroid */

.kb-polaroid {
    margin: 0;
    padding: 9px 9px 0;
    background-color: var(--white);
    border: 1px solid var(--ink);
    box-shadow: var(--shadow-lg);
    transform: rotate(var(--tilt, -2deg));
    transition: transform .3s var(--ease);
}

.kb-polaroid:hover {
    transform: rotate(0deg) translateY(-4px);
}

.kb-polaroid img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 20%;
    border: 1px solid var(--ink);
    background-color: var(--paper-2);
}

.kb-card--plain .kb-card__media img {
    object-position: 50% 20%;
}

.kb-polaroid figcaption {
    padding: 11px 3px 13px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
    line-height: 1.45;
}

.kb-polaroid figcaption span {
    display: block;
    margin-top: 2px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: none;
    font-size: 11px;
    color: var(--muted);
}

.kb-polaroid-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.kb-polaroid-row .kb-polaroid {
    flex: 1 1 150px;
    max-width: 210px;
}

/* ------------------------------------------------ tables */

.kb-table {
    width: 100%;
    border: 1px solid var(--ink);
    border-collapse: collapse;
    background-color: var(--white);
}

.kb-table caption {
    caption-side: top;
    text-align: left;
    padding: 11px 14px;
    border: 1px solid var(--ink);
    border-bottom: 0;
    background-color: var(--white);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.kb-table th,
.kb-table td {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(17, 17, 17, .32);
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    vertical-align: baseline;
}

.kb-table tr:last-child th,
.kb-table tr:last-child td {
    border-bottom: 0;
}

.kb-table th {
    font-weight: 600;
    font-size: 10.5px;
    letter-spacing: .13em;
    text-transform: uppercase;
    width: 42%;
    color: var(--ink);
}

.kb-table td {
    text-align: right;
    color: var(--ink-soft);
}

.kb-table--hours th {
    width: 50%;
    text-transform: none;
    letter-spacing: -.005em;
    font-size: 13px;
    font-weight: 500;
}

.kb-table--hours td {
    font-size: 12.5px;
}

.kb-table--hours tr[data-closed="true"] td {
    color: var(--muted);
}

/* ------------------------------------------------ address block */

.kb-address {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 16px;
    border-left: 1px solid var(--ink);
    font-size: 13.5px;
    line-height: 1.55;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ------------------------------------------------ map panel */

.kb-map {
    position: relative;
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 260px;
    padding: 28px;
    text-align: center;
    border: 1px solid var(--ink);
    background-color: #e6e5db;
    background-image:
        repeating-linear-gradient(0deg, rgba(17, 17, 17, .09) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(90deg, rgba(17, 17, 17, .09) 0 1px, transparent 1px 44px);
}

.kb-map__pin {
    width: 24px;
    height: 24px;
    border: 1px solid var(--ink);
    background-color: var(--yellow);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.kb-map__note {
    max-width: 38ch;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
}

.kb-map-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    border: 1px solid var(--ink);
    border-bottom: 0;
    background-color: var(--white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

/* ------------------------------------------------ feature blocks */

.kb-grid {
    display: grid;
    gap: 20px;
}

.kb-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kb-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kb-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kb-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 60px;
    align-items: start;
}

.kb-split--even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
}

.kb-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kb-figure img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border: 1px solid var(--ink);
    background-color: var(--paper-2);
}

.kb-figure--wide img {
    aspect-ratio: 16 / 7;
}

/* ------------------------------------------------ legend */

.kb-legend {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid var(--ink);
    background-color: var(--white);
}

.kb-legend__item {
    padding: 14px 16px;
    border-right: 1px solid var(--ink);
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.kb-legend__item:last-child {
    border-right: 0;
}

.kb-legend__key {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.kb-legend__text {
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
}

/* ------------------------------------------------ filters */

.kb-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.kb-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.kb-field > label,
.kb-field__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.kb-select,
.kb-input,
.kb-textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--ink);
    background-color: var(--white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 13.5px;
    line-height: 1.4;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
}

.kb-select {
    background-image: linear-gradient(45deg, transparent 49%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 51%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 38px;
}

.kb-textarea {
    min-height: 132px;
    resize: vertical;
}

.kb-input::placeholder,
.kb-textarea::placeholder {
    color: #8d8a80;
    font-size: 13px;
}

.kb-input[aria-invalid="true"],
.kb-textarea[aria-invalid="true"] {
    border-color: #b3261e;
    box-shadow: inset 0 0 0 1px #b3261e;
}

.kb-form-note[data-state="error"] {
    color: #b3261e;
    font-weight: 600;
}

.kb-newsletter .kb-form-note[data-state="error"] {
    color: var(--yellow);
}

.kb-empty {
    border: 1px dashed var(--ink);
    padding: 18px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink-soft);
}

.kb-empty strong {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink);
}

.kb-dash-box {
    border: 1px dashed var(--ink);
    padding: 13px 16px;
    font-size: 12px;
    letter-spacing: .07em;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.5;
}

/* ------------------------------------------------ steps */

.kb-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.kb-step {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.kb-step__num {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.kb-step__text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 62ch;
    padding-top: 4px;
}

/* ------------------------------------------------ accordion */

.kb-acc {
    border: 1px solid var(--ink);
    background-color: var(--white);
}

.kb-acc details + details {
    border-top: 1px solid var(--ink);
}

.kb-acc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.kb-acc summary::-webkit-details-marker {
    display: none;
}

.kb-acc summary::after {
    content: "+";
    font-size: 17px;
    line-height: 1;
    flex: 0 0 auto;
}

.kb-acc details[open] summary::after {
    content: "\2013";
}

.kb-acc summary:hover {
    background-color: var(--paper);
}

.kb-acc__body {
    padding: 0 18px 18px;
    max-width: 72ch;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* ------------------------------------------------ quotes carousel */

.kb-carousel {
    position: relative;
}

.kb-carousel__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 60px) / 4);
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 6px;
}

.kb-carousel__track::-webkit-scrollbar {
    display: none;
}

.kb-quote {
    display: flex;
    flex-direction: column;
    margin: 0;
    scroll-snap-align: start;
    background-color: var(--white);
    border: 1px solid var(--ink);
}

.kb-quote img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-bottom: 1px solid var(--ink);
    background-color: var(--paper-2);
}

.kb-quote blockquote {
    margin: 14px 15px 16px;
    font-size: 13px;
    line-height: 1.5;
}

.kb-quote figcaption {
    margin: auto 15px 16px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1.4;
}

.kb-quote figcaption span {
    display: block;
    margin-top: 3px;
    font-weight: 500;
    letter-spacing: .03em;
    text-transform: none;
    font-size: 11px;
    color: var(--muted);
}

.kb-carousel__nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 22px;
}

.kb-carousel__btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background-color: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
}

.kb-carousel__btn:hover {
    background-color: var(--ink);
    color: var(--paper);
}

/* ------------------------------------------------ newsletter */

.kb-newsletter {
    border-top: 1px solid var(--ink);
    background-color: var(--ink);
    color: var(--paper);
    padding: 78px 0;
}

.kb-newsletter__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
    gap: 56px;
    align-items: start;
}

.kb-newsletter .kb-label {
    color: var(--paper);
}

.kb-newsletter .kb-h2 {
    max-width: 18ch;
}

.kb-newsletter .kb-btn {
    box-shadow: 3px 3px 0 var(--yellow);
    border-color: var(--yellow);
}

.kb-newsletter .kb-input {
    border-color: var(--paper);
    background-color: var(--paper);
    color: var(--ink);
}

.kb-newsletter .kb-input::placeholder {
    color: #6f6c62;
}

.kb-form-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.kb-form-note {
    margin-top: 12px;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.kb-newsletter .kb-form-note {
    color: rgba(244, 242, 236, .75);
}

/* ------------------------------------------------ contact form */

.kb-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 620px;
}

.kb-form__note {
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 52ch;
}

/* ------------------------------------------------ footer */

.kb-footer {
    background-color: var(--ink);
    color: var(--paper);
}

.kb-footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding: 62px 0;
}

.kb-footer__logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(30px, 3.4vw, 42px);
    letter-spacing: -.025em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--paper);
    line-height: 1;
}

.kb-footer__logo:hover {
    color: var(--yellow);
}

.kb-footer__nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: right;
}

.kb-footer__nav a {
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    color: var(--paper);
}

.kb-footer__nav a:hover {
    color: var(--yellow);
}

.kb-legal {
    background-color: var(--paper);
    color: var(--ink);
    border-top: 1px solid var(--ink);
    padding: 14px 0;
}

.kb-legal__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    font-size: 12px;
    line-height: 1.5;
}

.kb-legal__notice {
    flex: 1 1 420px;
}

/* ------------------------------------------------ misc utility */

.kb-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.kb-row--between {
    justify-content: space-between;
}

.kb-mt-0 {
    margin-top: 0;
}

.kb-mt-s {
    margin-top: 14px;
}

.kb-mt-m {
    margin-top: 26px;
}

.kb-mt-l {
    margin-top: 44px;
}

.kb-divider {
    height: 0;
    border: 0;
    border-top: 1px solid var(--ink);
    margin: 0;
}

.kb-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;
}

/* ------------------------------------------------ motion / reveal */

html.kb-js .kb-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .kb-badge svg,
    .kb-marquee__track {
        animation: none;
    }

    .kb-btn,
    .kb-card,
    .kb-polaroid {
        transition: none;
    }
}

/* ------------------------------------------------ responsive */

@media (max-width: 1040px) {
    .kb-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kb-legend {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kb-legend__item {
        border-bottom: 1px solid var(--ink);
    }

    .kb-carousel__track {
        grid-auto-columns: calc((100% - 40px) / 3);
    }
}

@media (max-width: 900px) {
    .kb-section {
        padding: 68px 0;
    }

    .kb-nav {
        display: none;
    }

    .kb-menu-btn {
        display: inline-flex;
    }

    .kb-hero {
        padding: 52px 0 40px;
    }

    .kb-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .kb-badge {
        width: 132px;
        height: 132px;
        order: 3;
    }

    .kb-badge__center {
        padding: 6px 8px;
        font-size: 7.5px;
        letter-spacing: .1em;
        box-shadow: 2px 2px 0 var(--ink);
    }

    .kb-split,
    .kb-split--even {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .kb-newsletter__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .kb-sec-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .kb-filters {
        grid-template-columns: minmax(0, 1fr);
    }

    .kb-footer__inner {
        flex-direction: column;
        gap: 30px;
        padding: 48px 0;
    }

    .kb-footer__nav {
        text-align: left;
    }

    .kb-carousel__track {
        grid-auto-columns: calc((100% - 20px) / 2);
    }

    .kb-table th {
        width: 46%;
    }
}

@media (max-width: 700px) {
    .kb-grid--2,
    .kb-grid--3,
    .kb-grid--4,
    .kb-legend {
        grid-template-columns: minmax(0, 1fr);
    }

    .kb-legend__item {
        border-right: 0;
    }

    .kb-carousel__track {
        grid-auto-columns: 86%;
    }

    .kb-form-row {
        flex-direction: column;
    }

    .kb-wide img,
    .kb-wide--short img,
    .kb-wide--tall img {
        aspect-ratio: 4 / 3;
    }

    .kb-polaroid-row {
        gap: 14px;
    }
}

/* ------------------------------------------------ template additions */

.kb-card--dark .kb-small,
.kb-card--dark .kb-meta-line {
    color: inherit;
    opacity: .82;
}

.kb-field--filter {
    min-width: 200px;
}

.kb-newsletter .kb-body-text,
.kb-newsletter .kb-small {
    color: rgba(244, 242, 236, .72);
}

.kb-card--row {
    flex-direction: row;
}

.kb-card--row .kb-card__media {
    flex: 0 0 38%;
    border-bottom: 0;
    border-right: 1px solid var(--ink);
}

.kb-card--row .kb-card__media img {
    height: 100%;
    min-height: 190px;
    aspect-ratio: auto;
}

@media (max-width: 760px) {
    .kb-card--row {
        flex-direction: column;
    }

    .kb-card--row .kb-card__media {
        flex: 0 0 auto;
        border-right: 0;
        border-bottom: 1px solid var(--ink);
    }

    .kb-card--row .kb-card__media img {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
}

.kb-polaroid--t1 {
    transform: rotate(-2.5deg);
}

.kb-polaroid--t2 {
    transform: rotate(2deg);
}

.kb-polaroid--t3 {
    transform: rotate(-2deg);
}

.kb-polaroid--t4 {
    transform: rotate(1.8deg);
}

.kb-polaroid--t5 {
    transform: rotate(-1.4deg);
}

.kb-polaroid--t6 {
    transform: rotate(2.4deg);
}

.kb-img-square {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid var(--ink);
    background-color: var(--paper-2);
}

/* Anchor elements inherit color from `.kb-body a`, so filled surfaces
   need a more specific color declaration than the base component rule. */
.kb-body .kb-btn {
    color: var(--ink);
}

.kb-body .kb-btn--solid {
    color: var(--paper);
}

.kb-body .kb-btn--yellow {
    color: var(--ink);
}

.kb-body .kb-btn--on-dark {
    color: var(--paper);
}

.kb-body a.kb-card--dark {
    color: var(--paper);
}

.kb-lede--narrow {
    max-width: 430px;
}

/* ------------------------------------------------ media frame + corner badge */

.kb-media-frame {
    position: relative;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    overflow: hidden;
    background-color: var(--paper-2);
}

.kb-media-frame img {
    width: 100%;
    aspect-ratio: 16 / 5.6;
    object-fit: cover;
    display: block;
}

.kb-corner-badge {
    position: absolute;
    right: 28px;
    bottom: 28px;
    padding: 9px 14px;
    background-color: var(--yellow);
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--ink);
}

/* ------------------------------------------------ schematic map */

.kb-map--schematic {
    display: block;
    padding: 0;
    border: 1px solid var(--ink);
    background-color: #eeeade;
    text-align: left;
}

.kb-map--schematic svg {
    display: block;
    width: 100%;
    height: auto;
}

.kb-map__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid var(--ink);
    background-color: var(--white);
}

.kb-map__foot p {
    max-width: 46ch;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink-soft);
}

/* ------------------------------------------------ not found block */

.kb-nf {
    padding: 96px 0;
}

.kb-nf__rule {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.kb-form-note[data-state="success"] {
    color: var(--ink);
    font-weight: 600;
}

.kb-newsletter .kb-form-note[data-state="success"] {
    color: var(--yellow);
    font-weight: 600;
}
