@import url("tokens.css");

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Display font helper */
.font-display {
  font-family: var(--font-display);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 56px;
    padding-right: 56px;
  }
}

/* Nav */
.site-nav {
  width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.mark {
  width: 26px;
  height: 26px;
  background: var(--orange);
  border-radius: var(--radius-sm);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.mark svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wordmark-name {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
}

.alpha-badge {
  display: inline-flex;
  align-items: center;
  background: var(--peach-soft);
  color: var(--orange-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
}

.nav-spacer {
  flex: 1;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.08s ease, opacity 0.15s ease;
}

.nav-cta:hover {
  opacity: 0.9;
}

.nav-cta:active {
  transform: scale(0.98);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
  }
}

.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}

.footer-mark .mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.footer-mark .mark svg {
  width: 12px;
  height: 12px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
}

.footer-spacer {
  flex: 1;
}

.footer-note,
.footer-email {
  font-size: 12px;
  color: var(--ink-faint);
  text-decoration: none;
}

.footer-email {
  color: var(--ink-soft);
}

.footer-note a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-note a:hover,
.footer-email:hover {
  text-decoration: underline;
}

/* Generic page placeholder */
.page-placeholder {
  padding: 96px 24px;
  text-align: center;
}

.page-placeholder h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 12px;
}

.page-placeholder p {
  color: var(--ink-soft);
  max-width: 32rem;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  padding: 16px 26px;
  font-size: 15px;
  transition: transform 0.08s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(226, 98, 43, 0.2);
}

.btn-primary:hover {
  opacity: 0.95;
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--orange);
}

.section-ink {
  background: var(--ink);
  color: var(--paper);
}

.text-soft {
  color: var(--ink-soft);
}

.text-faint {
  color: var(--ink-faint);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .nav-cta,
  .btn {
    transition: none;
  }
}
