/* Shunpo — shared styles */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/outfit-latin.woff2') format('woff2');
}

:root {
  --bg: #131A2C;
  --text: #F4F5F7;
  --muted: #97A0B5;
  --accent: #F2C230;
  --hairline: rgba(244, 245, 247, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Layout: single left-anchored column */
.wrap {
  max-width: 720px;
  padding: 0 1.5rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .wrap {
    margin: 0 0 0 10vw;
  }
}

/* Header */
header {
  padding: 2rem 0 0;
}

.wordmark {
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--accent);
}

/* Main */
main {
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  animation: fade-up 0.5s ease-out both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  main {
    animation: none;
  }
}

/* Yellow dash motif above H1 */
.dash {
  width: 2.5rem;
  height: 3px;
  background: var(--accent);
  margin-bottom: 2rem;
}

/* Two-tone display headline */
h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h1 .accent {
  color: var(--accent);
}

.sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  font-weight: 300;
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

/* CTA button */
.btn {
  display: inline-block;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  background: transparent;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 1.4rem;
  text-decoration: none;
  transition: background 150ms ease;
}

.btn:hover {
  background: rgba(242, 194, 48, 0.08);
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Sections */
section {
  margin-top: clamp(6rem, 12vw, 8.75rem);
}

hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin-top: clamp(6rem, 12vw, 8.75rem);
}

hr + section {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

section p {
  color: var(--muted);
  font-weight: 300;
  max-width: 38rem;
}

/* Yellow em-dash bullet lists */
.dashes {
  list-style: none;
}

.dashes li {
  display: flex;
  gap: 0.75rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 38rem;
}

.dashes li + li {
  margin-top: 0.9rem;
}

.dashes li::before {
  content: "\2014";
  color: var(--accent);
  flex-shrink: 0;
}

/* Yellow-numeral ladder */
.ladder {
  list-style: none;
  counter-reset: step;
}

.ladder li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  max-width: 38rem;
}

.ladder li + li {
  margin-top: 0.9rem;
}

.ladder li::before {
  content: counter(step);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.65rem;
  flex-shrink: 0;
  min-width: 1rem;
}

.ladder strong {
  color: var(--text);
  font-weight: 600;
}

.ladder li,
.ladder span {
  color: var(--muted);
  font-weight: 300;
}

/* Quiet routing line (homepage) */
.routing {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
}

.routing a {
  color: var(--accent);
  text-decoration: none;
}

.routing a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
footer {
  border-top: 1px solid var(--hairline);
  margin-top: clamp(6rem, 12vw, 8.75rem);
  padding: 2rem 0 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 300;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 404 */
.notfound {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.notfound p {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.notfound a {
  color: var(--accent);
  text-decoration: none;
}

.notfound a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
