/* shared styles
   --bg / --fg definidos en cada página
   --mono lo define la página tipográfica */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; background: var(--bg, #000); color: var(--fg, #fff); }
body {
  font-family: var(--mono), ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 400;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1.75rem 2rem;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
}

/* nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  position: relative;
  z-index: 5;
}
.nav a {
  color: color-mix(in srgb, var(--fg) 55%, transparent);
  text-decoration: none;
  margin-right: 1.4rem;
  transition: color 0.2s ease;
}
.nav a:last-child { margin-right: 0; }
.nav a:hover { color: var(--fg); }
.nav .left a.active { color: var(--fg); }
.nav-logo { letter-spacing: 0.04em; }
.nav .right {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.nav .variants a {
  margin: 0;
  font-size: 0.68rem;
  opacity: 0.5;
}
.nav .variants a.active { opacity: 1; color: var(--fg); }

/* mood switcher (al lado del variant switcher) */
.nav .moods,
.nav .inks {
  display: flex;
  gap: 0.75rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
}
.nav .moods a,
.nav .inks a {
  margin: 0;
  font-size: 0.68rem;
  opacity: 0.5;
}
.nav .moods a.active,
.nav .inks a.active { opacity: 1; color: var(--fg); }

/* grain de papel — overlay SVG con feTurbulence */
.grain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 50;
  mix-blend-mode: multiply;
  opacity: 0.55;
}

/* hero */
.hero {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.clock {
  position: absolute;
  bottom: 1.75rem;
  right: 2rem;
  font-size: 0.68rem;
  opacity: 0.4;
  letter-spacing: 0.1em;
  z-index: 5;
  font-variant-numeric: tabular-nums;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 2rem;
}
.logo {
  position: relative;
  display: inline-block;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
}
.logo .cursor {
  position: absolute;
  left: calc(100% + 0.05em);
  top: 0;
  animation: blink 1.05s steps(2,start) infinite;
}
@keyframes blink { to { opacity: 0; } }

.location {
  font-size: 0.75rem;
  opacity: 0.55;
  letter-spacing: 0.18em;
}
.tagline {
  font-size: 0.85rem;
  opacity: 0.78;
  margin-top: 1.5rem;
  letter-spacing: 0.03em;
}
.buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.btn {
  font: inherit;
  color: var(--fg);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.1rem;
  transition: opacity 0.2s ease;
}
.btn:hover { opacity: 0.55; }

/* footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  opacity: 0.5;
  position: relative;
  z-index: 5;
}
.footer .links { display: flex; gap: 1.1rem; }
.footer .links a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.footer .links a:hover { opacity: 1; }

/* ============ contenido de páginas interiores ============ */

.page {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 7rem 2rem 5rem;
  position: relative;
  z-index: 2;
}
.page-body {
  width: 100%;
  max-width: 38rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}
.page-body h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}
.slash {
  opacity: 0.45;
  margin-right: 0.05em;
}
.page-body h1 .cursor {
  position: absolute;
  left: calc(100% + 0.05em);
  top: 0;
  animation: blink 1.05s steps(2,start) infinite;
}
.page-body p {
  font-size: 0.94rem;
  line-height: 2;
  letter-spacing: 0.01em;
  max-width: 34rem;
  opacity: 0.92;
}
.page-body p + p { margin-top: -1.5rem; }
.page-body .muted { opacity: 0.55; }

/* cmd-list — estilo de comandos alineados (about, contact, etc) */
.cmd-list {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 2.5rem;
  row-gap: 0.9rem;
  font-size: 0.94rem;
  line-height: 1.6;
  align-items: baseline;
}
.cmd-list .cmd-label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75em;
}
.cmd-list .prompt {
  opacity: 0.4;
}
.cmd-list .cmd-target a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 25%, transparent);
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}
.cmd-list .cmd-target a:hover { opacity: 0.6; }
.cmd-list .arrow { opacity: 0.4; margin-right: 0.5em; }

/* shop grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem 0;
  border-top: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
}
.product-card .product-title {
  font-size: 1.05rem;
  font-weight: 500;
}
.product-card .product-meta {
  font-size: 0.78rem;
  opacity: 0.6;
  line-height: 1.65;
}
.product-card .product-price {
  font-size: 0.92rem;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}
.product-card .product-cta {
  margin-top: 0.8rem;
}
.product-card a.btn {
  align-self: flex-start;
}

/* form */
.form-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
  padding: 0.9rem 0;
  margin-top: 1rem;
}
.form-row input,
.form-row textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--fg);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
  padding: 0.2rem 0;
  letter-spacing: 0.01em;
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: color-mix(in srgb, var(--fg) 40%, transparent);
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.form-stack .form-row { margin-top: 0; }
.form-stack .form-row + .form-row { border-top: none; }
.form-stack textarea { min-height: 8rem; resize: vertical; padding-top: 0.6rem; }
.form-stack .submit-row {
  border: none;
  padding: 1rem 0 0 0;
  margin-top: 0;
  justify-content: flex-end;
}

/* links page */
.links-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.links-block .group-title {
  opacity: 0.55;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.links-block .group-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 1.5rem;
}
.links-block .group-list a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}
.links-block .group-list a:hover { opacity: 0.6; }
.links-groups {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

@media (max-width: 640px) {
  body { padding: 1.25rem; }
  .nav { font-size: 0.65rem; }
  .nav a { margin-right: 0.9rem; }
  .nav .moods { margin-left: 0.5rem; padding-left: 0.5rem; }
  .buttons { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .page { padding: 2.5rem 0 2rem; }
}
