@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    color-scheme: light;
    --blue: #2F6652;
    --blue-dark: #214B3D;
    --orange: #FF7849;
    --butter: #FFF1B8;
    --chalk: #FAF8F2;
    --ink: #242623;
    --sage: #B9C9A7;
    --pink: #EAA4B8;
    --white: #fff;
    --line: #E2E0D8;
    --muted: #666962;
    --display: 'Space Grotesk', sans-serif;
    --body: 'DM Sans', sans-serif;
    --max: 1240px;
    --shadow: 0 16px 40px rgba(36, 38, 35, .09);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--chalk);
    color: var(--ink);
    font: 16px/1.6 var(--body);
    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
    font-family: var(--body);
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    color: var(--muted);
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
a,
input,
select,
textarea {
    outline-offset: 4px;
}

button {
    color: inherit;
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--orange);
}

::selection {
    background: var(--butter);
    color: var(--ink);
}

[hidden] {
    display: none !important;
}

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

.shell {
    width: min(calc(100% - 48px), var(--max));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 12px 16px;
    transform: translateY(-160%);
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.skip-link:focus {
    transform: translateY(0);
}

/* Shared navigation */
.announce {
    padding: 7px 16px;
    background: var(--blue);
    color: var(--white);
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    background: rgba(250, 248, 242, .97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.nav-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: clamp(14px, 2.2vw, 32px);
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font: 700 21px/1 var(--display);
    letter-spacing: -.075em;
}

.brand-mark {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    transform: rotate(-8deg);
    background: var(--orange);
    border-radius: 4px;
}

.brand-mark::before,
.brand-mark::after {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid var(--chalk);
    background: var(--blue);
    content: '';
    transform: rotate(45deg);
}

.brand-mark::before {
    top: 3px;
    left: 3px;
}

.brand-mark::after {
    right: 3px;
    bottom: 3px;
    background: var(--butter);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.8vw, 25px);
    margin-inline: auto;
    font-size: 13px;
    font-weight: 700;
}

.nav-links a,
.mobile-links a,
.footer-col a {
    transition: color .18s ease;
}

.nav-links a:hover,
.mobile-links a:hover {
    color: var(--blue);
}

.nav-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
}

.icon-btn,
.menu-toggle {
    position: relative;
    display: inline-grid;
    width: 40px;
    height: 40px;
    padding: 9px;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--ink);
}

.icon-btn:hover,
.menu-toggle:hover {
    background: var(--butter);
}

.icon-btn svg,
.menu-toggle svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    min-width: 17px;
    height: 17px;
    padding-inline: 4px;
    place-items: center;
    border: 1px solid var(--chalk);
    border-radius: 20px;
    background: var(--orange);
    color: var(--ink);
    font-size: 10px;
    font-weight: 700;
}

.menu-toggle,
.mobile-links {
    display: none;
}

.search-panel {
    display: none;
    padding: 0 0 16px;
}

.search-panel.open {
    display: block;
}

.search-row {
    display: flex;
    gap: 10px;
}

.search-row input {
    flex: 1;
}

/* Typography and common controls */
.page {
    min-height: 45vh;
    overflow: clip;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 18px;
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -.045em;
}

h1 {
    font-size: clamp(42px, 6.2vw, 78px);
}

h2 {
    font-size: clamp(31px, 4.1vw, 50px);
}

h3 {
    font-size: 23px;
}

h4 {
    font-size: 18px;
}

p {
    margin: 0 0 16px;
}

.eyebrow,
.kicker {
    display: inline-block;
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 19px;
    border: 1px solid var(--blue);
    background: var(--blue);
    color: var(--white);
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover {
    transform: translateY(-2px);
    border-color: var(--blue-dark);
    background: var(--blue-dark);
}

.button.orange {
    border-color: var(--orange);
    background: var(--orange);
    color: var(--ink);
}

.button.orange:hover {
    border-color: #ef6237;
    background: #ef6237;
}

.button.outline {
    border-color: var(--blue);
    background: transparent;
    color: var(--blue);
}

.button.outline:hover {
    background: rgba(36, 72, 216, .07);
}

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

.button.small {
    min-height: 36px;
    padding: 9px 12px;
    font-size: 11px;
}

.button:disabled,
button:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 25px;
}

.input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #c9c8c0;
    border-radius: 0;
    background: var(--white);
    color: var(--ink);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.input::placeholder,
textarea::placeholder {
    color: #777970;
}

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

.text-button {
    padding: 5px;
    border: 0;
    background: none;
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.status-line {
    min-height: 22px;
    color: #26713b;
    font-size: 13px;
}

.notice {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
}

/* Home page */
.hero {
    overflow: hidden;
    background: var(--butter);
}

.hero-grid {
    display: grid;
    min-height: 560px;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
}

.hero-copy {
    z-index: 1;
    padding: 62px 0;
}

.hero-copy h1 {
    max-width: 600px;
    margin: 14px 0 20px;
    font-size: clamp(55px, 7vw, 88px);
}

.hero-copy p {
    max-width: 475px;
    color: #42453f;
    font-size: 18px;
}

.hero-image {
    position: relative;
    height: 475px;
    align-self: end;
    margin: 36px -16px 0 36px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    border-radius: 48% 48% 0 0;
    object-fit: cover;
}

.hero-sticker {
    position: absolute;
    top: 34px;
    right: -10px;
    display: grid;
    width: 118px;
    height: 118px;
    padding: 16px;
    place-items: center;
    border-radius: 50%;
    background: var(--orange);
    text-align: center;
    font: 600 15px/1.1 var(--display);
    transform: rotate(8deg);
}

.section {
    padding-block: clamp(54px, 7vw, 86px);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 30px;
}

.section-head h2 {
    margin: 0;
}

.section-head p {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.category-tile {
    min-width: 0;
    min-height: 245px;
    overflow: hidden;
    background: var(--sage);
}

.category-tile:nth-child(2) {
    margin-top: 28px;
    background: var(--pink);
}

.category-tile:nth-child(3) {
    background: var(--butter);
}

.category-tile:nth-child(4) {
    margin-top: 28px;
    background: #dce5d2;
}

.category-tile:nth-child(5) {
    background: #e8d5c2;
}

.category-tile:nth-child(6) {
    margin-top: 28px;
    background: var(--sage);
}

.category-tile:nth-child(7) {
    background: #f2c6aa;
}

.category-tile img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    transition: transform .35s ease;
}

.category-tile:hover img {
    transform: scale(1.04);
}

.tile-copy {
    padding: 14px 16px;
}

.category-tile h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.category-tile p {
    margin: 0;
    color: #4d514c;
    font-size: 12px;
}

.editorial-band {
    display: grid;
    min-height: 370px;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background: var(--blue);
    color: var(--white);
}

.editorial-band>img {
    width: 100%;
    height: 100%;
    min-height: 370px;
    object-fit: cover;
}

.editorial-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 48px clamp(25px, 6vw, 80px);
}

.editorial-copy .eyebrow {
    color: var(--butter);
}

.editorial-copy p {
    max-width: 450px;
    color: #e6eaff;
}

.maker-panels {
    display: grid;
    grid-template-columns: 1.1fr .9fr .9fr;
    gap: 14px;
}

.maker-panel {
    display: flex;
    min-height: 245px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 27px;
    background: var(--sage);
    transition: transform .2s ease;
}

.maker-panel:hover {
    transform: translateY(-4px);
}

.maker-panel:nth-child(2) {
    background: var(--pink);
}

.maker-panel:nth-child(3) {
    background: var(--butter);
}

.maker-panel h3 {
    margin: 12px 0 8px;
    font-size: 27px;
}

.maker-panel p {
    max-width: 310px;
    margin: 0;
}

.beginner-wrap {
    background: #e8eee1;
}

.newsletter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 35px;
    padding: clamp(25px, 5vw, 52px);
    background: var(--butter);
}

.newsletter h2 {
    margin: 9px 0 12px;
    font-size: clamp(31px, 4vw, 42px);
}

.newsletter p {
    max-width: 450px;
}

.newsletter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
}

.newsletter-form .status-line,
.newsletter-form .notice {
    grid-column: 1 / -1;
    margin: 0;
}

/* Product cards and shelves */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 27px 16px;
}

.product-card {
    min-width: 0;
}

.product-media {
    position: relative;
    aspect-ratio: 1 / 1.05;
    overflow: hidden;
    background: #eee9df;
}

.product-media>a,
.product-media img {
    display: block;
    width: 100%;
    height: 100%;
}

.product-media img {
    object-fit: cover;
    transition: transform .35s ease;
}

.product-card:hover .product-media img {
    transform: scale(1.035);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 8px;
    background: var(--butter);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.wish-button {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--white);
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(36, 38, 35, .08);
}

.wish-button:hover {
    color: #bd3157;
}

.wish-button[aria-pressed='true'] {
    color: #cf3c64;
}

.product-info {
    padding: 12px 1px 0;
}

.product-info .category-label {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-info h3 {
    margin: 6px 0;
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.product-info h3 a:hover {
    color: var(--blue);
}

.price {
    font-weight: 700;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 11px;
}

.product-actions .button {
    flex: 1;
}

/* Shared inner page heading */
.page-intro {
    padding-block: 53px 34px;
}

.page-intro h1 {
    max-width: 900px;
    margin-bottom: 15px;
    font-size: clamp(40px, 5.5vw, 66px);
}

.page-intro p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.breadcrumbs {
    margin-bottom: 19px;
    color: var(--muted);
    font-size: 12px;
}

.breadcrumbs a {
    color: var(--blue);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Shop and filtering */
.shop-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 35px;
    padding-bottom: 80px;
}

.filter-sidebar {
    align-self: start;
    border-top: 1px solid var(--line);
    padding-top: 9px;
}

.filter-group {
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.filter-group h3 {
    margin: 0 0 12px;
    font: 700 14px/1.4 var(--body);
    letter-spacing: 0;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 9px 0;
    font-size: 13px;
}

.filter-group input[type='checkbox'] {
    width: 16px;
    height: 16px;
}

.filter-range {
    display: flex;
    gap: 8px;
}

.filter-range input {
    min-width: 0;
    padding: 9px;
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

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

.toolbar-right select {
    width: auto;
    min-width: 175px;
}

.shop-results {
    color: var(--muted);
    font-size: 13px;
}

.filter-open,
.drawer-backdrop {
    display: none;
}

.empty-state {
    padding: 60px 20px;
    border: 1px dashed #c9c8c0;
    text-align: center;
}

.empty-state h1,
.empty-state h2 {
    margin-bottom: 12px;
    font-size: clamp(28px, 4vw, 38px);
}

.empty-state p {
    color: var(--muted);
}

/* Product detail */
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: start;
    gap: clamp(30px, 5vw, 62px);
    padding: 30px 0 70px;
}

.detail-main-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eee9df;
}

.detail-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.detail-thumbs button {
    width: 76px;
    height: 76px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--white);
}

.detail-thumbs button:hover {
    border-color: var(--blue);
}

.detail-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-copy {
    padding-top: 8px;
}

.detail-copy h1 {
    margin: 8px 0 12px;
    font-size: clamp(38px, 4.5vw, 58px);
}

.detail-copy>.price {
    margin: 16px 0;
    font-size: 24px;
}

.detail-copy .description {
    color: #555950;
    font-size: 17px;
}

.stock {
    margin: 12px 0;
    color: #327342;
    font-size: 13px;
    font-weight: 600;
}

.quantity-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.qty-control {
    display: inline-flex;
    height: 44px;
    align-items: stretch;
    border: 1px solid var(--line);
    background: var(--white);
}

.qty-control button {
    width: 38px;
    border: 0;
    background: transparent;
    font-size: 18px;
}

.qty-control button:hover {
    background: var(--butter);
}

.qty-control input {
    width: 44px;
    padding: 0;
    border: 0;
    text-align: center;
    appearance: textfield;
}

.qty-control input::-webkit-inner-spin-button,
.qty-control input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.detail-tabs {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.detail-tabs h3 {
    margin: 18px 0 9px;
    font-size: 18px;
}

.detail-tabs li {
    margin: 7px 0;
}

/* Category directory */
.category-directory {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 10px 0 75px;
}

.directory-card {
    display: grid;
    min-height: 265px;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background: var(--sage);
}

.directory-card:nth-child(4n + 2) {
    background: var(--butter);
}

.directory-card:nth-child(4n + 3) {
    background: var(--pink);
}

.directory-card:nth-child(4n) {
    background: #dce5d2;
}

.directory-card img {
    width: 100%;
    height: 100%;
    min-height: 265px;
    object-fit: cover;
}

.directory-copy {
    align-self: center;
    padding: clamp(15px, 2.3vw, 25px);
}

.directory-copy h2 {
    margin: 8px 0 10px;
    font-size: clamp(22px, 2.5vw, 29px);
}

.directory-copy p {
    font-size: 13px;
}

.directory-copy .text-button {
    display: block;
    margin-top: 8px;
}

/* Projects and tutorials */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.project-filters select {
    width: auto;
    min-width: 190px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding: 10px 0 80px;
}

.project-card {
    min-width: 0;
    background: var(--white);
}

.project-card>a:first-child {
    display: block;
    overflow: hidden;
    background: #eee9df;
}

.project-card img {
    width: 100%;
    aspect-ratio: 1.25;
    object-fit: cover;
    transition: transform .35s ease;
}

.project-card:hover img {
    transform: scale(1.03);
}

.project-card-copy {
    padding: 18px;
}

.project-card-copy h3 {
    margin: 9px 0;
    font-size: 21px;
}

.project-card-copy p {
    color: var(--muted);
    font-size: 13px;
}

.tag {
    display: inline-block;
    padding: 5px 8px;
    background: var(--butter);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 18px 0;
    font-size: 13px;
    font-weight: 600;
}

.project-detail-hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    margin-bottom: 42px;
    background: var(--sage);
}

.project-detail-hero img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.project-detail-hero .copy {
    align-self: center;
    padding: clamp(25px, 4vw, 48px);
}

.project-detail-hero .copy h1 {
    font-size: clamp(38px, 5vw, 60px);
}

.tutorial-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 50px;
    padding-bottom: 20px;
}

.tutorial-layout article h2 {
    margin-top: 28px;
    font-size: 29px;
}

.checklist {
    padding: 0;
    list-style: none;
}

.checklist label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.checklist input {
    flex: 0 0 auto;
    margin-top: 6px;
}

.checklist input:checked+span {
    color: var(--muted);
    text-decoration: line-through;
}

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

.steps li {
    position: relative;
    padding: 20px 0 20px 55px;
    border-top: 1px solid var(--line);
    counter-increment: step;
}

.steps li::before {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--blue);
    content: counter(step, decimal-leading-zero);
    font: 700 21px var(--display);
}

.tutorial-aside {
    position: sticky;
    top: 105px;
    height: max-content;
    padding: 22px;
    background: var(--butter);
}

.tutorial-aside h3 {
    margin-top: 10px;
}

.tutorial-aside hr {
    border: 0;
    border-top: 1px solid rgba(36, 38, 35, .2);
}

/* Login and registration */
.auth-page {
    display: grid;
    min-height: min(760px, calc(100vh - 110px));
    grid-template-columns: 1fr 1fr;
}

.auth-art {
    position: relative;
    display: flex;
    min-height: 600px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(28px, 5vw, 58px);
    background: var(--blue);
    color: var(--white);
}

.auth-art>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .3;
    object-fit: cover;
    mix-blend-mode: screen;
}

.auth-art>*:not(img) {
    position: relative;
    z-index: 1;
}

.auth-art .brand {
    align-self: flex-start;
    color: var(--white);
}

.auth-art .brand-mark::before,
.auth-art .brand-mark::after {
    border-color: var(--blue);
}

.auth-art h1 {
    max-width: 510px;
    font-size: clamp(40px, 5vw, 66px);
}

.auth-art p {
    max-width: 460px;
    color: #e6eaff;
}

.auth-art .eyebrow {
    color: var(--butter);
}

.auth-form-wrap {
    display: grid;
    padding: 40px;
    place-items: center;
}

.auth-form {
    width: min(100%, 440px);
}

.auth-form h1 {
    margin: 10px 0;
    font-size: clamp(36px, 4vw, 46px);
}

.auth-form>p {
    margin-block: 14px;
}

.form-field {
    margin: 15px 0;
}

.form-field>label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.form-field>label:has(input[type='checkbox']),
.form-field>label:has(input[type='radio']) {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-field>label:has(input[type='checkbox']) input,
.form-field>label:has(input[type='radio']) input {
    margin-top: 5px;
}

.form-error {
    display: block;
    min-height: 16px;
    color: #a62540;
    font-size: 12px;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 80px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 9px;
    padding: 7px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.form-message {
    display: none;
    margin: 12px 0;
    padding: 12px 14px;
    background: #e8eee1;
    font-size: 14px;
}

.form-message.show {
    display: block;
}

.form-message.error {
    background: #f9e4e8;
    color: #842a3e;
}

/* Account */
.account-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 40px;
    padding: 25px 0 80px;
}

.account-nav {
    align-self: start;
    padding-right: 20px;
    border-right: 1px solid var(--line);
}

.account-nav a {
    display: block;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
}

.account-nav a:hover,
.account-nav a.active {
    background: var(--butter);
    color: var(--blue);
}

.account-panel {
    margin-bottom: 18px;
    padding: 25px;
    border: 1px solid var(--line);
    background: var(--white);
}

.account-panel h2 {
    font-size: 28px;
}

.account-panel .button+.button {
    margin-left: 8px;
}

/* Cart and checkout */
.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 35px;
    padding-bottom: 80px;
}

.cart-scroll {
    width: 100%;
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    text-align: left;
    text-transform: uppercase;
    font-size: 11px;
}

.cart-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    white-space: nowrap;
}

.cart-product {
    display: flex;
    min-width: 220px;
    align-items: center;
    gap: 14px;
    white-space: normal;
}

.cart-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.cart-product small {
    display: block;
    color: var(--muted);
}

.summary {
    position: sticky;
    top: 105px;
    height: max-content;
    padding: 23px;
    border: 1px solid var(--line);
    background: var(--white);
}

.summary h2 {
    font-size: 23px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 9px 0;
    font-size: 13px;
}

.summary-line> :last-child {
    text-align: right;
}

.summary-line.total {
    margin-top: 9px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 18px;
    font-weight: 700;
}

.summary .button {
    width: 100%;
    margin-top: 10px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 45px;
    padding-bottom: 80px;
}

.checkout-form h2 {
    margin: 27px 0 15px;
    font-size: 26px;
}

.checkout-form h2:first-of-type {
    margin-top: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.checkout-form>.button {
    margin-top: 10px;
}

/* Contact, legal and about */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    padding: 20px 0 80px;
}

.contact-layout h2 {
    font-size: 29px;
}

.faq {
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
}

.faq p {
    margin: 12px 0 0;
    color: var(--muted);
}

.legal {
    max-width: 820px;
    padding-bottom: 75px;
}

.legal h2 {
    margin-top: 35px;
    font-size: 27px;
}

.legal p,
.legal li {
    color: #555950;
}

.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 55px;
    padding-block: 50px;
}

.about-split img {
    width: 100%;
    height: 410px;
    object-fit: cover;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-bottom: 80px;
}

.value-card {
    padding: 24px;
    background: var(--butter);
}

.value-card:nth-child(2) {
    background: var(--sage);
}

.value-card:nth-child(3) {
    background: var(--pink);
}

.value-card h3 {
    margin-top: 12px;
    font-size: 21px;
}

.mobile-only {
    display: none;
}

/* Footer */
.site-footer {
    padding: 56px 0 24px;
    background: var(--ink);
    color: var(--white);
}

.site-footer .brand {
    color: var(--white);
}

.site-footer .brand-mark::before,
.site-footer .brand-mark::after {
    border-color: var(--ink);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 35px;
}

.footer-brand p {
    max-width: 280px;
    margin-top: 18px;
    color: #cbcec7;
    font-size: 14px;
}

.footer-col h3 {
    margin: 0 0 15px;
    color: var(--butter);
    font: 700 12px/1.4 var(--body);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-col a {
    display: block;
    margin: 9px 0;
    color: #e3e4df;
    font-size: 13px;
}

.footer-col a:hover {
    color: var(--butter);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 35px;
    padding-top: 18px;
    border-top: 1px solid #555850;
    color: #c6c8c2;
    font-size: 11px;
}

/* Responsive layouts */
@media (max-width: 1100px) {
    .nav-inner {
        gap: 12px;
    }

    .brand {
        font-size: 19px;
    }

    .nav-links {
        gap: 12px;
        font-size: 12px;
    }

    .nav-actions {
        gap: 0;
    }

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

    .shop-layout {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 24px;
    }

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

@media (max-width: 820px) {
    .shell {
        width: min(calc(100% - 34px), var(--max));
    }

    .nav-inner {
        min-height: 66px;
    }

    .menu-toggle {
        display: inline-grid;
        width: 36px;
        height: 40px;
        padding-inline: 4px;
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        margin-left: auto;
    }

    .mobile-links.open {
        display: flex;
        flex-direction: column;
        padding: 0 17px 14px;
        background: var(--chalk);
    }

    .mobile-links a {
        padding: 12px 2px;
        border-top: 1px solid var(--line);
        font-size: 14px;
        font-weight: 600;
    }

    .hero-grid {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 47px 0 22px;
    }

    .hero-copy h1 {
        max-width: 650px;
        font-size: clamp(52px, 10vw, 76px);
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-image {
        height: clamp(280px, 60vw, 410px);
        margin: 8px 12px 0 0;
    }

    .hero-sticker {
        top: 25px;
        right: -8px;
        width: 96px;
        height: 96px;
        font-size: 12px;
    }

    .section {
        padding-block: 56px;
    }

    .section-head {
        align-items: flex-start;
    }

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

    .category-tile {
        min-height: 205px;
    }

    .category-tile:nth-child(even) {
        margin-top: 18px;
    }

    .category-tile img {
        height: 130px;
    }

    .tile-copy {
        padding: 10px;
    }

    .category-tile h3 {
        font-size: 15px;
    }

    .category-tile p {
        font-size: 11px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
    }

    .product-info h3 {
        font-size: 15px;
    }

    .product-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .product-actions .button {
        min-height: 35px;
        padding: 8px 6px;
        font-size: 11px;
    }

    .editorial-band {
        grid-template-columns: 1fr;
    }

    .editorial-band>img {
        height: 270px;
        min-height: 0;
    }

    .editorial-copy {
        padding: 30px 24px;
    }

    .maker-panels {
        grid-template-columns: 1fr;
    }

    .maker-panel {
        min-height: 190px;
    }

    .newsletter {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .shop-layout {
        display: block;
    }

    .filter-sidebar {
        display: none;
    }

    .filter-open {
        display: inline-flex;
    }

    .shop-toolbar {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .toolbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .toolbar-right select {
        flex: 1;
    }

    .drawer-backdrop.open {
        position: fixed;
        z-index: 89;
        inset: 0;
        display: block;
        background: rgba(20, 22, 20, .55);
    }

    .filter-sidebar.drawer {
        position: fixed;
        z-index: 90;
        top: 0;
        bottom: 0;
        left: 0;
        display: block;
        width: min(340px, 88vw);
        overflow: auto;
        padding: 25px;
        transform: translateX(-105%);
        background: var(--chalk);
        transition: transform .25s ease;
    }

    .filter-sidebar.drawer.open {
        transform: translateX(0);
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 22px;
    }

    .detail-copy h1 {
        font-size: 40px;
    }

    .project-detail-hero {
        grid-template-columns: 1fr;
    }

    .project-detail-hero img {
        height: 300px;
    }

    .project-detail-hero .copy {
        padding: 25px;
    }

    .tutorial-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tutorial-aside {
        position: static;
        order: -1;
    }

    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-art {
        min-height: 300px;
        padding: 25px;
    }

    .auth-art h1 {
        margin-top: 32px;
        font-size: 40px;
    }

    .auth-form-wrap {
        padding: 38px 22px;
    }

    .account-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .account-nav {
        display: flex;
        overflow-x: auto;
        padding: 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .account-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .summary {
        position: static;
    }

    .cart-table {
        min-width: 650px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .category-directory {
        grid-template-columns: 1fr;
    }

    .directory-card {
        min-height: 220px;
    }

    .directory-card img {
        min-height: 220px;
    }

    .directory-copy h2 {
        font-size: 24px;
    }

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

    .project-card-copy {
        padding: 13px;
    }

    .project-card-copy h3 {
        font-size: 18px;
    }

    .about-split {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-block: 30px;
    }

    .about-split img {
        height: 300px;
    }

    .about-values {
        grid-template-columns: 1fr;
        padding-bottom: 55px;
    }
}

@media (max-width: 520px) {
    .shell {
        width: min(calc(100% - 28px), var(--max));
    }

    .announce {
        font-size: 10px;
    }

    .brand {
        gap: 7px;
        font-size: 17px;
    }

    .brand-mark {
        width: 26px;
        height: 26px;
    }

    .brand-mark::before,
    .brand-mark::after {
        width: 10px;
        height: 10px;
    }

    .nav-actions .icon-btn {
        width: 34px;
        padding: 7px;
    }

    .nav-actions .icon-btn svg {
        width: 19px;
        height: 19px;
    }

    .hero-copy h1 {
        font-size: clamp(48px, 14vw, 66px);
    }

    .button-row {
        gap: 8px;
    }

    .button-row .button {
        flex: 1 1 100%;
    }

    .section-head {
        display: block;
    }

    .section-head>.button {
        margin-top: 17px;
    }

    .category-tile {
        min-height: 185px;
    }

    .category-tile img {
        height: 112px;
    }

    .product-media {
        aspect-ratio: 1 / 1;
    }

    .product-grid {
        gap: 18px 10px;
    }

    .wish-button {
        width: 33px;
        height: 33px;
    }

    .newsletter {
        padding: 23px 17px;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
    }

    .newsletter-form>* {
        grid-column: 1;
    }

    .page-intro {
        padding-block: 34px 25px;
    }

    .page-intro h1 {
        font-size: 42px;
    }

    .shop-toolbar {
        display: block;
    }

    .toolbar-right {
        margin-top: 13px;
    }

    .toolbar-right select {
        min-width: 0;
    }

    .project-filters select {
        width: 100%;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card img {
        aspect-ratio: 1.4;
    }

    .directory-card {
        grid-template-columns: .8fr 1fr;
    }

    .directory-copy {
        padding: 13px;
    }

    .directory-copy .button {
        padding: 9px 10px;
        font-size: 10px;
    }

    .detail-copy h1 {
        font-size: 36px;
    }

    .quantity-row .add-cart {
        flex: 1 1 180px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .full {
        grid-column: auto;
    }

    .account-panel {
        padding: 18px;
    }

    .account-panel .button+.button {
        margin: 8px 8px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px 16px;
    }

    .footer-grid .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom span {
        display: block;
        margin: 8px 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}