:root { --red: #df0900; --cream: #ffe19a; --ink: #494439; --blue: #0918ec; font-family: 'VT323', monospace; color: var(--cream); background: var(--red); }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea { font: inherit; }
button, a { cursor: pointer; touch-action: manipulation; }
a { color: inherit; }
button { border: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.masthead { max-width: 1440px; margin: auto; padding: 25px 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 21px; }
.masthead a { text-decoration: none; }
.wordmark { font-size: 32px; }
.masthead > span { font-size: 17px; }
main { max-width: 1360px; margin: auto; padding: 15px 40px 40px; }
.product { display: grid; grid-template-columns: 1.05fr 1fr; background: #fffdf5; color: var(--ink); }
.product-image { background: var(--blue); display: flex; align-items: center; }
.product-image img { display: block; width: 100%; height: auto; }
.product-info { padding: clamp(24px, 4vw, 62px); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.eyebrow { font-size: 16px; letter-spacing: .13em; margin: 0 0 32px; }
h1 { font-weight: 400; font-size: clamp(32px, 3.7vw, 56px); line-height: 1.08; margin: 0; }
.label { display: inline; background: var(--cream); color: var(--ink); padding: 2px 7px; border-radius: 5px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.product-code { font-size: .75em; }
.product-type { background: #151515; color: #b5cbef; padding: 7px 12px; margin: 16px -12px 40px; font-size: 27px; }
.purchase-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.price { font-size: 23px; margin: 0; }
.buy { background: var(--red); color: var(--cream); padding: 15px 20px; font-size: 32px; white-space: nowrap; }
.buy:hover { background: var(--blue); }
.sizes { border: 0; padding: 0; margin: 25px 0 0; display: flex; gap: 12px; }
.sizes legend { font-size: 27px; padding: 0 0 10px; }
.sizes label { position: relative; cursor: pointer; }
.sizes input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; }
.sizes span { width: 56px; height: 52px; display: grid; place-items: center; border: 1px solid #77736c; font-size: 28px; }
.sizes input:checked + span { background: var(--blue); color: white; border-color: var(--blue); }
.sizes input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 4px; }
.size-note, .form-note, .fallback, dialog p, .delivery small { font-family: Arial, sans-serif; font-size: 12px; line-height: 1.6; }
.size-note { min-height: 38px; margin: 12px 0 28px; }
.product-bottom { display: flex; flex-wrap: wrap; gap: 22px; padding-top: 22px; border-top: 1px solid #d7d0be; justify-content: space-between; }
.contact h2 { font-size: 24px; font-weight: 400; margin: 0 0 12px; }
.contact-links { display: flex; gap: 10px; }
.contact-icon { display: grid; place-items: center; width: 52px; height: 48px; border-radius: 12px; }
.contact-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; }
.email { background: #548e1a; color: #fff; box-shadow: inset 0 0 0 3px #95d150; }
.message { background: #141414; color: white; }
.delivery { flex: 1; max-width: 260px; background: var(--cream); padding: 12px; display: grid; grid-template-columns: 18px 1fr; gap: 4px; align-content: start; }
.delivery p { margin: 0; font-size: 19px; }
.delivery small { grid-column: 1 / -1; font-size: 10px; }
footer { text-align: center; padding: 25px 20px; font-size: 22px; letter-spacing: .12em; }
footer a { background: var(--cream); color: var(--ink); padding: 3px 8px; border-radius: 4px; text-decoration: none; }
.checkout { max-width: 650px; margin: 0 auto; }
.text-button { color: inherit; background: transparent; font-size: 21px; padding: 8px 0; text-decoration: underline; }
.order-product { text-align: center; margin-bottom: 30px; }
.order-product img { width: 150px; height: auto; display: block; margin: 0 auto 12px; }
.order-product h2 { font-size: 30px; font-weight: 400; line-height: 1.1; margin: 0 0 12px; }
.order-size { font-size: 32px; }
.form-row { display: grid; grid-template-columns: 190px 1fr; gap: 6px; margin: 6px 0; align-items: start; }
.form-row label { padding: 8px; background: var(--cream); color: var(--ink); border-radius: 5px; font-size: 26px; }
.form-row label[for="contact"] { font-size: 22px; padding-block: 10px; }
.form-row input, .form-row textarea { width: 100%; min-width: 0; border: 0; border-radius: 5px; background: var(--cream); color: var(--ink); padding: 12px; font-family: Arial, sans-serif; font-size: 16px; resize: vertical; }
.form-row ::placeholder { color: #74694e; }
.form-note { max-width: 480px; margin: 25px auto; text-align: center; }
.send { display: block; background: var(--cream); color: var(--ink); border-radius: 12px; font-size: 64px; letter-spacing: .08em; padding: 6px 28px; margin: 35px auto; }
.confirmation { min-height: 70vh; max-width: 660px; margin: auto; padding-top: 12vh; text-align: center; }
.confirmation h2 { font-size: 34px; font-weight: 400; }
.confirmation p { font-size: 24px; line-height: 1.4; }
.thanks { margin: 35px 0; }
.confirmation-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; font-size: 21px; }
.confirmation .fallback, .confirmation #copy-status { font: 13px/1.6 Arial, sans-serif; }
dialog { max-width: min(440px, calc(100% - 32px)); background: var(--cream); color: var(--ink); border: 3px solid var(--ink); padding: 25px; }
dialog::backdrop { background: #0009; }
dialog h2 { font-size: 30px; font-weight: 400; }
dialog a { font-size: 21px; }
.dialog-close { float: right; background: transparent; font-size: 32px; }
.noscript { text-align: center; padding: 20px; }
@media (max-width: 900px) {
.masthead { padding: 18px 20px; }
.masthead > span { display: none; }
main { padding: 0 16px 20px; }
.product { grid-template-columns: 1fr; max-width: 600px; margin: auto; }
.product-info { padding: 26px 24px; }
h1 { font-size: clamp(34px, 8vw, 44px); }
.eyebrow { margin-bottom: 20px; }
.product-type { margin-bottom: 28px; }
.price { font-size: 22px; }
.buy { font-size: 28px; padding: 13px; }
.checkout { padding-top: 12px; }
.form-row { grid-template-columns: 1fr; margin: 14px 0; }
.form-row label { justify-self: start; padding: 3px 8px; }
.form-row label[for="contact"] { padding: 3px 8px; }
.confirmation { padding-top: 8vh; }
.confirmation h2 { font-size: 29px; }
footer { font-size: 19px; }
}
@media (max-width: 360px) { .sizes { gap: 8px; } .sizes span { width: 50px; } .purchase-row { flex-wrap: wrap; } }

/* Collection and product navigation */
.catalog-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 26px 0 35px; }
.catalog-heading .eyebrow { margin-bottom: 10px; }
.catalog-heading h1 { font-size: clamp(32px, 5vw, 64px); }
.catalog-heading > span { white-space: nowrap; font-size: 20px; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; }
.catalog-card { display: flex; flex-direction: column; background: var(--cream); color: var(--ink); text-decoration: none; min-width: 0; }
.catalog-card > img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; background: #090909; display: block; }
.catalog-card-info { display: flex; flex-direction: column; gap: 16px; padding: 15px; flex: 1; }
.catalog-code { font-size: 23px; overflow-wrap: anywhere; }
.catalog-price { margin-top: auto; font-size: 18px; display: flex; justify-content: space-between; gap: 8px; }
.catalog-card:hover .catalog-card-info { background: var(--blue); color: var(--cream); }
.catalog-back { align-self: start; margin-bottom: 24px; }
.product-code, #order-code { overflow-wrap: anywhere; }
@media (max-width: 1050px) { .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
.catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.catalog-heading { align-items: start; }
.catalog-heading > span { font-size: 16px; padding-top: 4px; }
.catalog-card-info { padding: 10px; }
.catalog-code { font-size: 20px; }
.catalog-price { font-size: 16px; }
}
@media (max-width: 360px) { .catalog-heading { flex-direction: column; gap: 12px; } }

/* Keep navigation easy to tap and narrow phone cards readable. */
.text-button, .masthead a { min-height: 44px; display: inline-flex; align-items: center; }
.dialog-close { min-width: 44px; min-height: 44px; }
@media (max-width: 360px) {
  .catalog-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-code { font-size: 23px; }
  .catalog-price { font-size: 19px; }
}
