/* elpatonegro — global */

:root {
  --bg: #f2f0ef;
  --text: #000000;
  --accent: #f31317;
  --muted: #4a4a4a;
  --maxw: 1100px;
  --pad: 1.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Times New Roman", Times, serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ——— Layout ——— */

.wrap {
  width: min(100% - (var(--pad) * 2), var(--maxw));
  margin-inline: auto;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: auto;
  animation: float 7s ease-in-out infinite;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 0.55rem;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

.nav a.external {
  font-style: italic;
}

/* ——— Hero ——— */

.hero {
  min-height: calc(100svh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0 3rem;
  gap: 0;
}

.hero__wordmark {
  margin: 0 auto 1.15rem;
  padding: 0;
  font-size: clamp(2.6rem, 11vw, 5.75rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  animation: float 8s ease-in-out infinite;
}

.hero__tagline {
  margin: 0 0 1.5rem;
  font-size: clamp(1.05rem, 3.2vw, 1.45rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.25;
  max-width: 24ch;
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  border: 2px solid var(--text);
  padding: 1.1rem 2rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--text);
  min-width: min(100%, 280px);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  padding: 1.25rem 2.4rem;
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(243, 19, 23, 0.28);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
}

.btn--ghost:hover {
  background: var(--text);
  color: var(--bg);
}

.btn--block {
  width: 100%;
}

/* ——— Shop ——— */

.shop {
  padding: 5rem 0 6rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.shop__head {
  text-align: center;
  margin-bottom: 3rem;
}

.shop__drop {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.shop__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.1;
}

.shop__lead {
  margin: 0 auto;
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.products {
  display: grid;
  gap: 2.5rem;
}

.product {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product__media {
  background: #ebe8e6;
  border: 1px solid rgba(0, 0, 0, 0.12);
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product__name {
  margin: 0;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 700;
}

.product__detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.product__price {
  margin: 0.4rem 0 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ——— Page shells ——— */

.page-hero {
  padding: 4.5rem 0 2rem;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0 auto;
  max-width: 42ch;
  font-size: 1.1rem;
  color: var(--muted);
}

/* ——— Philosophy manifesto ——— */

.manifesto {
  padding: 1rem 0 5rem;
}

.tenet {
  max-width: 28rem;
  margin: 0 auto;
  padding: 4.5rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tenet:last-child {
  border-bottom: none;
}

.tenet__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.tenet__text {
  margin: 0;
  font-size: clamp(1.35rem, 3.8vw, 1.85rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.tenet__text .mark {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.tenet__text .red {
  color: var(--accent);
}

.tenet__list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.tenet__list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.4;
}

.tenet__list li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ——— Framework protocol ——— */

.protocol {
  padding: 1rem 0 4rem;
}

.week {
  padding: 2.75rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.week__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
}

.week__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.week__title {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.15;
}

.week__blurb {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  max-width: 48ch;
}

.week__actions {
  margin: 0;
  padding: 0;
  list-style: none;
}

.week__actions li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.35rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 1.02rem;
  line-height: 1.45;
}

.week__actions li:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.week__actions li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 8px;
  height: 8px;
  background: var(--text);
}

.framework-cta {
  width: 100%;
  margin: 3rem 0 5rem;
  padding: 3rem var(--pad);
  text-align: center;
  border-top: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.framework-cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-style: italic;
  font-weight: 700;
  max-width: 20ch;
}

.framework-cta p {
  margin: 0 0 1.75rem;
  max-width: 36ch;
  color: var(--muted);
}

.framework-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 28rem;
}

/* ——— X gate ——— */

.x-gate {
  min-height: calc(100svh - 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 0 3.5rem;
}

.x-gate__hint {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.04em;
}

.x-gate__shot {
  display: block;
  width: min(100%, 380px);
  border: 1px solid rgba(0, 0, 0, 0.18);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.x-gate__shot img {
  width: 100%;
  height: auto;
}

.x-gate__shot:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.x-gate__note {
  margin: 1.1rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

/* ——— Footer ——— */

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 2rem 0 2.5rem;
  text-align: center;
}

.site-footer p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.site-footer a {
  font-weight: 700;
  font-style: italic;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--accent);
}

/* ——— Motion ——— */

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .logo img,
  .hero__wordmark {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn--primary:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ——— Desktop ——— */

@media (min-width: 720px) {
  :root {
    --pad: 2rem;
  }

  .logo img {
    width: 42px;
    height: 42px;
  }

  .nav {
    gap: 0.75rem;
  }

  .nav a {
    font-size: 1rem;
    padding: 0.45rem 0.7rem;
  }

  .hero {
    padding: 3rem 0 4rem;
  }

  .hero__wordmark {
    margin-bottom: 1.35rem;
    font-size: clamp(4rem, 9vw, 6.5rem);
  }

  .products {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }

  .framework-cta__actions {
    flex-direction: row;
    justify-content: center;
  }

  .tenet {
    padding: 5.5rem 0;
    max-width: 34rem;
  }

  .week {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 1.5rem 2.5rem;
    padding: 3rem 0;
  }

  .week__label {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .week__blurb {
    margin-top: 0;
  }
}
