/* KSB Tees homepage: "Linen board" direction (round 2, variation F) */
:root {
  --navy: #081F44;
  --alabaster: #FAF8F5;
  --coral: #E86A58;
  --linen: #EDE6DA;
  --body: #4A5568;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --hand: "Kalam", "Comic Sans MS", cursive;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background-color: var(--linen);
  background-image:
    repeating-linear-gradient(0deg, rgba(120, 95, 60, .05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(120, 95, 60, .05) 0 1px, transparent 1px 3px);
}

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

a:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

/* Hero: badge on a pinned card */
.hero {
  display: flex;
  justify-content: center;
  padding: 48px max(16px, env(safe-area-inset-right)) 28px max(16px, env(safe-area-inset-left));
}
.plate {
  background: var(--alabaster);
  padding: 28px 32px 30px;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(60, 40, 15, .14);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 460px;
}
.plate img { width: 180px; }
.plate h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.35;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}
.cta {
  display: inline-block;
  color: var(--navy);
  font-weight: 700;
  padding: 10px 4px;
  text-decoration: none;
  border-bottom: 2px solid var(--coral);
}
.cta:hover { color: var(--coral); }

/* Scrolling pinned snapshots */
.board { overflow: hidden; padding-block: 26px 44px; }
.track {
  --gap: 26px;
  display: flex;
  gap: var(--gap);
  width: max-content;
  padding-inline: 13px;
  animation: roll 80s linear infinite;
}
.board:hover .track { animation-play-state: paused; }
@keyframes roll { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

.snap {
  flex: none;
  width: 200px;
  margin: 0;
  background: #fff;
  padding: 10px 10px 14px;
  box-shadow: 0 8px 16px rgba(60, 40, 15, .18);
  position: relative;
}
.snap::before {
  content: "";
  position: absolute;
  top: -7px; left: 50%;
  width: 14px; height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .3);
}
.snap:nth-child(odd) { transform: rotate(-2deg); }
.snap:nth-child(3n) { transform: rotate(1.5deg); }
.snap img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.snap figcaption {
  font-family: var(--hand);
  font-size: 17px;
  line-height: 1.1;
  color: var(--navy);
  text-align: center;
  margin-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .track { animation: none; }
  .board { overflow-x: auto; }
  .track > [aria-hidden="true"] { display: none; }
}

/* Three facts */
.facts {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 0 max(16px, env(safe-area-inset-right)) 56px max(16px, env(safe-area-inset-left));
}
.facts div {
  background: var(--alabaster);
  padding: 18px 20px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(60, 40, 15, .1);
}
.facts h2 { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 18px; margin: 0 0 6px; }
.facts p { margin: 0; font-size: 15px; line-height: 1.6; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* Footer */
footer {
  background: var(--navy);
  color: var(--alabaster);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px max(16px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  font-size: 15px;
}
footer img { width: 96px; }
footer p { margin: 0 0 4px; }
footer a { color: var(--alabaster); }
footer .small { font-size: 13px; opacity: .7; }
