/* New Latitude Gear — colours and lettering taken from the shop banner. */
@font-face { font-family: "Luckiest Guy"; src: url("/fonts/luckiest-guy.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("/fonts/baloo2.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --ink: #000e14;        /* the banner's background */
  --night: #00040a;      /* outside the frame */
  --cyan: #01d9fb;
  --cyan-soft: #07c4e6;
  --orange: #f9a722;
  --orange-deep: #e07b00;
  --sun: #ffd23f;
  --white: #f4fbff;
  --rule: rgba(244, 251, 255, .55);
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font: 600 1.15rem/1.25 "Baloo 2", "Trebuchet MS", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The rounded cyan frame around everything, as on the banner */
.frame {
  max-width: 1280px;
  margin: 12px auto;
  border: 3px solid var(--cyan);
  border-radius: 28px;
  background: var(--ink);
  overflow: hidden;
  box-shadow: 0 0 0 4px #000, 0 0 28px rgba(1, 217, 251, .25);
}

/* Header art; the wooden sign's top links to the sell form, its bottom down to the stores */
.hero { position: relative; line-height: 0; }
.hero img { display: block; width: 100%; height: auto; }
.hero { container-type: inline-size; }  /* so the sign's button scales with the picture */
.sign-link { position: absolute; left: 2.1%; width: 14.7%; border-radius: 10px; }
.sign-sell { top: 30.1%; height: 47.6%; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1.1%; }
.sign-stores { top: 77.7%; height: 12.1%; }
.sign-button {
  padding: .35em .9em .25em;
  font: 400 1.45cqw/1 "Luckiest Guy", "Baloo 2", sans-serif;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #170a00;
  background: linear-gradient(180deg, #ffc04d 0%, var(--orange) 45%, var(--orange-deep) 100%);
  border: .18cqw solid #120700;
  border-radius: .6cqw;
  box-shadow: 0 .3cqw 0 #120700;
  transition: transform .12s ease, filter .12s ease;
}
.sign-sell:hover .sign-button { transform: translateY(-.2cqw); filter: brightness(1.1); }
.sign-link:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }

main { padding: 0 clamp(10px, 2vw, 20px); }

/* Store buttons: orange planks like "Picker - Dealer - Trader - Reseller" */
.stores { text-align: center; padding: 22px 0 8px; }
.stores h1 {
  margin: 0 0 18px;
  font: 400 clamp(1.9rem, 4.5vw, 3.2rem)/1 "Luckiest Guy", "Baloo 2", sans-serif;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 3px 3px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 0 0 18px rgba(1, 217, 251, .35);
}
/* Any number of stores: three to a row on wide screens, centred */
.planks { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 22px; }
.plank {
  flex: 0 1 calc((100% - 44px) / 3);
  display: grid;
  gap: 2px;
  padding: 14px 22px 12px;
  text-decoration: none;
  color: #170a00;
  background: linear-gradient(180deg, #ffc04d 0%, var(--orange) 45%, var(--orange-deep) 100%);
  border: 3px solid #120700;
  border-radius: 8px 14px 9px 16px / 14px 8px 16px 9px;
  box-shadow: 0 5px 0 #120700, 0 8px 18px rgba(0, 0, 0, .5);
  clip-path: polygon(0 8%, 3% 0, 97% 4%, 100% 0, 99% 50%, 100% 94%, 96% 100%, 4% 96%, 0 100%, 1% 50%);
  transition: transform .12s ease, filter .12s ease;
}
.plank:hover { transform: translateY(-3px) rotate(-.4deg); filter: brightness(1.08); }
.plank:active { transform: translateY(1px); }
.plank:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.plank-name { font: 800 clamp(1.7rem, 3.4vw, 2.3rem)/1 "Baloo 2", sans-serif; letter-spacing: .01em; }
.plank-note { font-size: 1.05rem; font-weight: 700; opacity: .85; }

/* Cyan-outlined boxes */
.services, .finds {
  border: 3px solid var(--cyan);
  border-radius: 22px;
  margin: 18px 0 0;
}

.services {
  list-style: none;
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 0;
}
.services li {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 2px 14px;
  color: var(--cyan);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  font-weight: 700;
  white-space: nowrap;
}
.services li + li { border-left: 2px solid var(--rule); }
.services svg { width: 1.6em; height: 1.6em; fill: var(--cyan); flex: none; }
.services svg .cut { fill: var(--ink); }

.finds {
  padding: 12px 14px 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.finds ul { list-style: none; margin: 0; padding: 4px 12px 4px 16px; }
.finds ul + ul { border-left: 2px solid var(--rule); }
.finds li { position: relative; padding-left: 1.5em; font-size: clamp(1rem, 1.75vw, 1.38rem); line-height: 1.32; }
.finds li::before {
  content: "";
  position: absolute;
  left: .25em;
  top: .42em;
  width: .5em;
  height: .5em;
  border-radius: 50%;
  background: var(--cyan);
}

.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 26px;
  padding: 14px 16px 16px;
  color: var(--cyan);
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Copyright and legal lines under the contact line */
.legal {
  margin: 0;
  padding: 0 16px 16px;
  text-align: center;
  color: var(--rule);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.45;
}
.legal a { color: var(--cyan); text-decoration: none; }
.legal a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* The privacy notice */
.notice { max-width: 760px; margin: 0 auto; padding: 22px 4px 8px; }
.notice h2 { margin: 22px 0 6px; color: var(--cyan); font-size: 1.3rem; }
.notice p, .notice li { font-weight: 500; line-height: 1.45; }
.notice a { color: var(--cyan); }
.contact span { color: var(--rule); font-weight: 400; }


/* The "Sell us your gear" form */
.sell { max-width: 820px; margin: 0 auto; padding: 22px 0 8px; }
.sell h1 {
  margin: 0 0 8px;
  text-align: center;
  font: 400 clamp(1.9rem, 4.5vw, 3.2rem)/1 "Luckiest Guy", "Baloo 2", sans-serif;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--orange);
  text-shadow: 3px 3px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
}
.sell-intro { text-align: center; margin: 0 0 18px; font-weight: 600; }
.sell-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  padding: 18px;
  border: 3px solid var(--cyan);
  border-radius: 22px;
}
.field { display: grid; gap: 4px; align-content: start; }
.field-gear, .field-details, .form-error, .sell-form .plank { grid-column: 1 / -1; }
.field label { color: var(--cyan); font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  font: 600 1.05rem/1.3 "Baloo 2", "Trebuchet MS", sans-serif;
  color: var(--white);
  background: var(--night);
  border: 2px solid var(--rule);
  border-radius: 10px;
}
.field textarea { resize: vertical; min-height: 8em; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--cyan); }
.has-error input, .has-error select, .has-error textarea { border-color: #ff6b5a; }
.field-error, .form-error { margin: 0; color: #ff8a7a; font-weight: 700; font-size: 1rem; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sell-form .plank { justify-self: center; min-width: 220px; text-align: center; font: inherit; cursor: pointer; }
.sell-back { text-align: center; margin: 16px 0 4px; font-weight: 700; }
.sell-back a { color: var(--cyan); text-decoration: none; }
.sell-back a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Tablets */
@media (max-width: 900px) {
  .planks { flex-direction: column; max-width: 520px; margin: 0 auto; }
  .services li + li { border-left: 0; }
  .services li { flex-basis: 33%; }
  .finds { grid-template-columns: repeat(2, 1fr); row-gap: 10px; }
  .finds ul:nth-of-type(3) { border-left: 0; }
}

/* Phones */
@media (max-width: 520px) {
  .frame { margin: 6px; border-radius: 18px; }
  .services { padding: 8px 6px; }
  .services li { flex-basis: 50%; padding: 4px 6px; gap: 8px; justify-content: flex-start; }
  .finds { grid-template-columns: 1fr 1fr; padding: 10px 8px; }
  .finds ul { padding: 2px 6px; }
  .finds li { font-size: .98rem; }
  .finds ul:nth-of-type(odd) { border-left: 0; }
  .finds ul:nth-of-type(even) { border-left: 2px solid var(--rule); }
  .contact { flex-direction: column; gap: 2px; }
  .contact span { display: none; }
  .sell-form { grid-template-columns: 1fr; padding: 14px 10px; }
}

@media (prefers-reduced-motion: reduce) { .plank, .sign-button { transition: none; } }

/* Wide screens: columns sized to their longest item, as on the banner */
@media (min-width: 901px) {
  .finds { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .finds li { white-space: nowrap; }
  .finds ul { padding-right: clamp(12px, 2.5vw, 40px); }
}
