/* Loyola Digital — site */

:root {
  --ink: #0e1218;
  --ink-soft: #1a222d;
  --mist: #d8dee8;
  --paper: #f2f0eb;
  --paper-dim: #e4e0d8;
  --accent: #c4a35a;
  --accent-hot: #e0bc6a;
  --line: rgba(242, 240, 235, 0.12);
  --text: #f2f0eb;
  --muted: rgba(242, 240, 235, 0.68);
  --danger: #e07a6a;
  --ok: #6ab89a;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 2px;
  --shell: min(1120px, calc(100% - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body.page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--ink);
  line-height: 1.55;
  position: relative;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(196, 163, 90, 0.18), transparent 55%),
    radial-gradient(900px 500px at 95% 20%, rgba(90, 140, 180, 0.12), transparent 50%),
    linear-gradient(165deg, #0e1218 0%, #151b24 45%, #0c1016 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(14, 18, 24, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
}

.brand-rest {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  border-color: var(--accent);
}

/* Hero catalog */

.hero-catalog {
  padding: 3.5rem 0 2rem;
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-catalog h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
}

.hero-catalog h1 em {
  font-style: italic;
  color: var(--accent-hot);
}

.hero-lead {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.dev-pill {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  padding: 0.25rem 0.55rem;
}

/* Catalog grid */

.section {
  padding: 1.5rem 0 4rem;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.catalog {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .catalog {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.product-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  animation: rise 0.8s ease both;
}

.product-tile:nth-child(2) {
  animation-delay: 0.08s;
}
.product-tile:nth-child(3) {
  animation-delay: 0.16s;
}

.product-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 163, 90, 0.45);
  background: linear-gradient(160deg, rgba(196, 163, 90, 0.1), rgba(255, 255, 255, 0.03));
}

.product-visual {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(145deg, rgba(196, 163, 90, 0.25), transparent 55%),
    linear-gradient(0deg, var(--ink-soft), #243041);
  display: grid;
  place-items: center;
  position: relative;
}

.product-visual span {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: rgba(242, 240, 235, 0.2);
  letter-spacing: 0.08em;
}

.product-body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.product-body h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-hot);
}

.sold {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Product detail */

.product-hero {
  padding: 2.75rem 0 3rem;
  display: grid;
  gap: 2rem;
  animation: rise 0.65s ease both;
}

@media (min-width: 860px) {
  .product-hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
}

.product-cover {
  aspect-ratio: 4 / 5;
  max-height: 520px;
  background:
    radial-gradient(circle at 30% 20%, rgba(196, 163, 90, 0.35), transparent 50%),
    linear-gradient(160deg, #1c2533, #0e1218);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.product-cover span {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  color: rgba(242, 240, 235, 0.18);
}

.product-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.product-copy .lead {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
}

.product-copy .price-lg {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--accent-hot);
  margin: 0 0 0.35rem;
}

.product-copy .sold-line {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.bullets {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.bullets li {
  padding-left: 1.1rem;
  position: relative;
  color: var(--mist);
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
  border-radius: 1px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent-hot);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Contact */

.page-narrow {
  max-width: 40rem;
  padding: 2.75rem 0 4rem;
  animation: rise 0.65s ease both;
}

.page-narrow h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 400;
  margin: 0 0 0.65rem;
}

.page-narrow .lead {
  color: var(--muted);
  margin: 0 0 2rem;
}

.form {
  display: grid;
  gap: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.field input,
.field .editor {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
}

.field input:focus,
.field .editor:focus {
  outline: 2px solid rgba(196, 163, 90, 0.45);
  outline-offset: 1px;
}

.toolbar {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.toolbar button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  width: 2.1rem;
  height: 2.1rem;
  cursor: pointer;
  border-radius: var(--radius);
}

.toolbar button:hover {
  border-color: var(--accent);
}

.editor {
  min-height: 9rem;
  max-height: 16rem;
  overflow: auto;
  line-height: 1.5;
}

.editor:empty::before {
  content: attr(data-placeholder);
  color: rgba(242, 240, 235, 0.35);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.form-msg {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.form-msg.is-ok {
  border-color: rgba(106, 184, 154, 0.5);
  color: var(--ok);
}

.form-msg.is-err {
  border-color: rgba(224, 122, 106, 0.5);
  color: var(--danger);
}

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

/* Legal */

.prose {
  max-width: 40rem;
  padding: 2.75rem 0 4rem;
}

.prose h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.4rem;
  margin: 0 0 1rem;
}

.prose p {
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  gap: 0.85rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-meta {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(242, 240, 235, 0.4);
}

@media (max-width: 520px) {
  .brand-rest {
    display: none;
  }
}
