:root {
  color-scheme: light;
  --paper: #f5f0e6;
  --ink: #35372a;
  --quiet: #625d4f;
  --line: #ddd0b4;
  --sand: #e9ddc3;
  --olive: #53583a;
  --selected: #eeeddc;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.48 Georgia, "Times New Roman", serif; }
main { max-width: 980px; margin: auto; padding: 0 24px; }
header { padding: 42px 0 26px; text-align: center; }
.brand, .step { font: 11px/1.4 Georgia, serif; letter-spacing: .25em; text-transform: uppercase; }
.brand { letter-spacing: .43em; }
.step { color: #766445; margin-bottom: 12px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: normal; line-height: 1.15; }
h1 { font-size: clamp(31px, 5vw, 46px); margin: 14px 0 12px; }
h2 { font-size: clamp(24px, 3.5vw, 32px); margin-bottom: 17px; }
h3 { font-size: 20px; margin: 20px 0 10px; }
header p { max-width: 555px; margin: auto; }
.perks { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px 22px; list-style: none; padding: 0; margin: 20px 0 0; font-size: 13px; }
.perks li::before { content: "· "; }
section { padding: 27px 0; border-top: 1px solid var(--line); }
.pair, .trio { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.option { position: relative; display: block; width: 100%; text-align: left; padding: 0; background: #fff; border: 1px solid #e6dbc4; border-radius: 5px; overflow: hidden; }
.option[aria-pressed="true"] { border-color: var(--olive); box-shadow: 0 0 0 2px var(--olive); background: var(--selected); }
.option:focus-visible, input:focus-visible, textarea:focus-visible, .actions button:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }
.option img, .embroidery img { display: block; width: 100%; height: auto; }
.card-body { display: block; padding: 13px 15px 15px; }
.card-title { display: block; font-size: 23px; line-height: 1.2; padding-right: 22px; }
.fabric .card-title, .size .card-title { font-size: 19px; font-weight: bold; }
.size { padding: 12px; }
.meta { display: block; font-size: 14px; margin-top: 4px; }
.fine { font-size: 14px; color: var(--quiet); }
.note { margin-top: 17px; }
.card-top { display: flex; align-items: start; justify-content: space-between; gap: 3px; }
.card-top .card-title { padding-right: 0; }
.mark { flex: 0 0 18px; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 3px; border: 1px solid #9b9984; border-radius: 50%; font: bold 13px/1 Arial, sans-serif; }
.option[aria-pressed="true"] .mark { color: white; background: var(--olive); border-color: var(--olive); }
.dots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.dots img { width: 17px; height: 17px; border-radius: 50%; }
.swatch-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.swatch img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; width: 100%; display: block; }
.swatch { text-align: center; margin: 0; font-size: 14px; }
.swatch span:not(.mark), figcaption { display: block; padding: 6px 2px; }
.swatch .mark { position: absolute; right: 5px; top: 2px; background: var(--paper); }
.embroidery { display: grid; grid-template-columns: 55% 45%; max-width: 610px; background: white; overflow: hidden; border-radius: 5px; align-items: center; }
.embroidery div { padding: 18px; }
.embroidery p { margin: 6px 0; font-size: 14px; }
.fields { display: grid; gap: 6px; max-width: 510px; margin-top: 13px; }
.fields label { font-size: 14px; }
.fields input:not([type=checkbox]), textarea { width: 100%; border: 1px solid var(--line); background: white; border-radius: 5px; padding: 10px; }
textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.check input { accent-color: var(--olive); width: 18px; height: 18px; margin: 0; }
.summary { background: var(--sand); border: 0; border-radius: 5px; padding: 23px; }
.summary dl { margin: 0 0 12px; }
.summary dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; border-bottom: 1px dotted #cabc9d; padding: 6px 0; }
dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.total { font-size: 22px; font-weight: bold; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 15px 0 8px; }
.actions button { padding: 10px 17px; min-height: 44px; border-radius: 30px; }
.primary { color: white; background: var(--olive); border: 1px solid var(--olive); }
.secondary { background: transparent; border: 1px solid #74684e; }
.catalogue { margin-top: 34px; border-top: 0; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; background: white; margin-bottom: 10px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
th { background: var(--sand); font-weight: normal; }
th:nth-child(2) { width: 34%; }
td small { display: block; }
footer { text-align: center; padding: 10px 0 28px; font-size: 13px; color: var(--quiet); }
@media (max-width: 560px) {
  main { padding: 0 13px; }
  header { padding-top: 29px; }
  section { padding: 22px 0; }
  .perks { gap: 3px 12px; }
  .pair, .trio, .swatch-grid { gap: 8px; }
  .swatch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-body, .size { padding: 9px; }
  .card-title { font-size: 19px; }
  .fabric .card-title, .size .card-title { font-size: 16px; }
  .size .meta { font-size: 13px; }
  .embroidery div, .summary { padding: 14px; }
  th, td { padding: 6px 4px; font-size: 12px; overflow-wrap: anywhere; }
}
.fabric .dots { padding: 0 15px 12px; margin: 0; }
.fabric .card-body { padding-bottom: 8px; }
@media (max-width: 560px) { .fabric .dots { padding: 0 9px 10px; } }
#thread-options label { display: block; margin-bottom: 6px; }
#thread-colour {
  width: 100%;
  min-height: 44px;
  font: inherit;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  padding: 8px 10px;
}
#thread-colour:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }
.fit-model { margin-top: 24px; }
.technical { margin: 0 0 10px; max-width: 640px; }
.technical img { display: block; width: 100%; height: auto; }
.fit-table th:nth-child(2) { width: auto; }
.fit-table th:first-child { width: 17%; }
.fit-table th:last-child { width: 35%; }
.fit-table tbody th { background: white; }
