@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-700.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-800.woff2") format("woff2");
}

:root {
  --cream: #fff8eb;
  --cream-deep: #f3e4cc;
  --paper: #fffdf8;
  --navy: #0b2548;
  --navy-soft: #1c3b5e;
  --ink: #0b2548;
  --muted: #5a6a7a;
  --orange: #f06a10;
  --orange-dark: #d45608;
  --orange-soft: #fff1e4;
  --line: #ecd9bf;
  --shadow: 0 10px 30px rgba(11, 37, 72, 0.08);
  --radius: 22px;
  --max: 28rem;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 500px at 50% -80px, rgba(240, 106, 16, 0.08), transparent 60%),
    radial-gradient(800px 400px at 100% 100%, rgba(11, 37, 72, 0.05), transparent 55%);
  z-index: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--orange-dark);
}

a:hover {
  color: var(--navy);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 20;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.75rem 0 3.5rem;
}

/* Header */
.site-header {
  text-align: center;
  padding: 0.5rem 0 1.25rem;
}

.logo {
  width: 108px;
  height: 108px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(11, 37, 72, 0.1);
  border: 3px solid #fff;
}

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

.site-title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.15;
}

.tagline {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-weight: 500;
  font-style: italic;
  font-size: 1.02rem;
}

/* Disclosure */
.disclosure {
  margin: 1.15rem 0 1.25rem;
  padding: 0.7rem 0.9rem;
  background: var(--orange-soft);
  border: 1px solid #f5d0b0;
  border-radius: 12px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--navy-soft);
  text-align: center;
}

/* Search */
.search {
  position: relative;
  margin: 0 0 1.35rem;
}

.search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  color: var(--muted);
  pointer-events: none;
}

.search input {
  width: 100%;
  appearance: none;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.85rem 1rem 0.85rem 2.7rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(11, 37, 72, 0.04);
}

.search input::placeholder {
  color: #8a97a5;
  font-weight: 400;
}

.search input:focus {
  outline: 3px solid rgba(240, 106, 16, 0.35);
  outline-offset: 1px;
  border-color: var(--orange);
}

/* Cards */
.list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(236, 217, 191, 0.7);
  scroll-margin-top: 1rem;
}

.card:target {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.card-media {
  position: relative;
  background: #f3efe8;
}

.card-media picture,
.card-media img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center 40%;
}

.badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  min-width: 3.1rem;
  height: 3.1rem;
  padding: 0 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(212, 86, 8, 0.35);
  border: 3px solid #fff;
}

.card-body {
  padding: 1.05rem 1.1rem 1.2rem;
}

.card-name {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--navy);
}

.colour {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-soft);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.6rem 0.18rem 0.4rem;
}

.swatch {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #8b5a3a;
  border: 1px solid rgba(11, 37, 72, 0.2);
}

.swatch[data-colour="Brown"] { background: #8b5a3a; }
.swatch[data-colour="Black"] { background: #1a1a1a; }
.swatch[data-colour="White"] { background: #f6f6f6; }
.swatch[data-colour="Grey"],
.swatch[data-colour="Gray"] { background: #8a8f96; }
.swatch[data-colour="Beige"] { background: #d8c3a5; }
.swatch[data-colour="Green"] { background: #3e6b4a; }
.swatch[data-colour="Blue"] { background: #2f4f80; }
.swatch[data-colour="Pink"] { background: #e8a0b0; }
.swatch[data-colour="Red"] { background: #b1342c; }

.benefit {
  margin: 0 0 0.85rem;
  color: var(--navy-soft);
  font-size: 0.98rem;
  line-height: 1.45;
}

.price-note {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.15rem;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 18px rgba(240, 106, 16, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--orange-dark);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--cream);
}

.btn:focus-visible {
  outline: 3px solid rgba(240, 106, 16, 0.45);
  outline-offset: 2px;
}

.btn svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

/* Unavailable */
.card.is-unavailable {
  opacity: 0.82;
}

.card.is-unavailable .card-media {
  filter: grayscale(0.35);
}

.unavailable-flag {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #eee6dc;
  color: var(--navy-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Empty search */
.no-results {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--muted);
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}

.no-results[hidden],
.card[hidden] {
  display: none;
}

/* Footer */
.site-footer {
  margin-top: 2.25rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.site-footer p {
  margin: 0 0 0.7rem;
}

.tiktok {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  margin: 0.15rem 0 0.85rem;
}

.tiktok:hover {
  color: var(--orange-dark);
}

.footer-disclosure {
  color: var(--navy-soft);
}

@media (min-width: 540px) {
  :root { --max: 32rem; }
  .site-title { font-size: 1.9rem; }
  .logo { width: 120px; height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
