:root {
  --paper: #f4efe7;
  --surface: #fffdf8;
  --ink: #201d19;
  --muted: #6b645b;
  --line: #ded4c7;
  --leather: #733f2f;
  --leather-soft: #f2dfd5;
  --tennis: #336b35;
  --tennis-soft: #e4f0dc;
  --warning: #a54124;
  --warning-soft: #fff0e8;
  --shadow: 0 12px 32px rgb(55 42 26 / 10%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: inherit;
}

.content-width {
  width: min(100% - 28px, 840px);
  margin-inline: auto;
}

.hero {
  padding: 48px 0 36px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  max-width: 16ch;
  margin-bottom: 16px;
  font-size: clamp(2rem, 10vw, 3.7rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 7vw, 2.25rem);
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.hero__intro {
  max-width: 38rem;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow,
.card-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  line-height: 1.35;
  text-transform: uppercase;
}

.action,
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
}

.action {
  padding: 0 18px;
  background: var(--ink);
  border-radius: 999px;
  color: var(--surface);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action--leather {
  background: var(--leather);
}

.action--tennis {
  background: var(--tennis);
}

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  overflow-x: auto;
  background: rgb(244 239 231 / 94%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.sticky-nav__inner {
  display: flex;
  width: min(100% - 28px, 840px);
  margin-inline: auto;
}

.nav-link {
  flex: 0 0 auto;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-link:hover {
  color: var(--ink);
}

main {
  padding-bottom: 42px;
}

section {
  padding: 36px 0;
  scroll-margin-top: 60px;
}

section + section {
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 18px;
}

.decision-card,
.store-card,
.day-card,
.phrase-card,
.source-links,
.warning-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.decision-card > :last-child,
.store-card > :last-child,
.day-card > :last-child,
.phrase-card > :last-child,
.source-links > :last-child,
.warning-card > :last-child {
  margin-bottom: 0;
}

.category--leather {
  background: var(--leather-soft);
  border-color: color-mix(in srgb, var(--leather) 35%, var(--line));
  color: var(--leather);
}

.category--tennis {
  background: var(--tennis-soft);
  border-color: color-mix(in srgb, var(--tennis) 35%, var(--line));
  color: var(--tennis);
}

.eyebrow.category--leather,
.eyebrow.category--tennis {
  display: inline-block;
  padding: 5px 8px;
  border: 1px solid currentcolor;
  border-radius: 999px;
}

.warning-card {
  background: var(--warning-soft);
  border-color: var(--warning);
  color: var(--warning);
}

.priority-list,
.window-list,
.checklist {
  display: grid;
  gap: 10px;
  padding: 0;
  margin-bottom: 0;
  list-style: none;
}

.priority-list li,
.window-list li,
.checklist li {
  padding: 12px;
  border-left: 4px solid var(--line);
  background: var(--paper);
}

.window-list {
  margin: 18px 0;
}

.window-list strong,
.window-list span {
  display: block;
}

.window-list strong {
  margin-bottom: 2px;
}

.priority-list span {
  display: block;
  margin-bottom: 2px;
  font-size: 0.81rem;
  font-weight: 800;
}

.priority--first {
  border-color: var(--tennis) !important;
}

.priority--backup {
  border-color: var(--leather) !important;
}

.priority--confirm {
  border-color: var(--warning) !important;
}

details {
  margin-top: 18px;
  border-top: 1px solid currentcolor;
}

summary {
  display: list-item;
  min-height: 44px;
  padding-block: 10px;
  cursor: pointer;
  font-weight: 750;
}

summary + p {
  margin-bottom: 0;
}

.comparison-grid {
  display: grid;
  gap: 14px;
}

.table-wrap {
  max-width: 100%;
  margin-bottom: 14px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--tennis);
  color: var(--surface);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

tbody th {
  color: var(--tennis);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.surface-table {
  margin-top: 14px;
}

.origin-note {
  margin-bottom: 18px;
}

.spec-list,
.decision-flow ol {
  padding-left: 1.25rem;
}

.spec-list li + li,
.decision-flow li + li {
  margin-top: 8px;
}

.decision-flow {
  margin-top: 14px;
}

.subsection-title {
  margin-top: 32px;
}

.junior-size-guide {
  margin-bottom: 14px;
}

.phrase-grid {
  display: grid;
  gap: 14px;
}

.phrase-card__jp {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(1.2rem, 5.5vw, 1.5rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.section-intro {
  margin-bottom: 18px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 14px;
}

.store-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.store-card__head .card-label,
.store-card__head h3 {
  margin-bottom: 0;
}

.area-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  background: rgb(255 253 248 / 68%);
  border: 1px solid currentcolor;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
}

.action-axis {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.action-axis div {
  padding: 12px;
  background: var(--paper);
  border-left: 4px solid var(--line);
}

.action-axis dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.action-axis dd {
  margin: 2px 0 0;
}

.link-row {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 12px;
  background: rgb(255 253 248 / 72%);
  border: 1px solid currentcolor;
  border-radius: 10px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.link-row a:hover {
  background: var(--surface);
}

.source-links {
  margin-top: 14px;
  color: var(--muted);
  box-shadow: none;
}

footer {
  padding: 28px 0;
  background: var(--ink);
  color: var(--surface);
  font-size: 0.9rem;
}

:focus-visible {
  outline: 3px solid #1769aa;
  outline-offset: 3px;
}

@media (min-width: 720px) {
  .hero {
    padding: 76px 0 56px;
  }

  section {
    padding: 52px 0;
  }

  .decision-card,
  .store-card,
  .day-card,
  .phrase-card,
  .source-links,
  .warning-card {
    padding: 26px;
  }

  .comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid,
  .phrase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
