:root { color-scheme: dark; }

* { box-sizing: border-box; }

html { min-height: 100%; background: #12090c; }

body.links-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: #fff8ee;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 87% 4%, rgba(150, 37, 53, .43), transparent 26rem),
    radial-gradient(circle at 8% 28%, rgba(183, 135, 71, .18), transparent 22rem),
    linear-gradient(150deg, #11080b 0%, #241014 54%, #130a0c 100%);
}

body.links-page::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .26;
  background: repeating-linear-gradient(90deg, rgba(244, 229, 200, .12) 0 1px, transparent 1px 36px);
  mask-image: linear-gradient(180deg, black, transparent 92%);
}

body.links-page::selection { background: #d6ab69; color: #210b10; }

.links-shell {
  width: min(100%, 550px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(32px, 8vw, 68px) clamp(18px, 5vw, 34px) 38px;
}

.links-identity { text-align: center; }

.links-identity,
.links-actions,
.links-note,
.links-site { animation: links-rise 620ms cubic-bezier(.22, 1, .36, 1) both; }
.links-actions { animation-delay: 90ms; }
.links-note { animation-delay: 170ms; }
.links-site { animation-delay: 230ms; }

@keyframes links-rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

.links-seal {
  width: clamp(96px, 25vw, 126px);
  aspect-ratio: 1;
  display: block;
  margin: 0 auto 20px;
  object-fit: cover;
  border: 1px solid rgba(231, 217, 184, .68);
  border-radius: 50%;
  box-shadow: 0 14px 46px rgba(0, 0, 0, .42), 0 0 0 7px rgba(231, 217, 184, .06);
}

.links-house,
.links-line,
.links-note {
  margin: 0;
  color: rgba(255, 248, 238, .76);
}

.links-house {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.links-identity h1 {
  margin: 10px 0 9px;
  color: #e8bd78;
  font-family: var(--font-display);
  font-size: clamp(35px, 9.2vw, 50px);
  font-weight: 500;
  letter-spacing: .01em;
  line-height: .9;
}

.links-line { font-size: 14px; }

.links-phrase {
  max-width: 31ch;
  margin: 20px auto 0;
  color: #f5ead9;
  font-family: var(--font-display);
  font-size: clamp(19px, 5vw, 24px);
  font-style: italic;
  line-height: 1.15;
}

.links-actions {
  display: grid;
  gap: 12px;
  margin: clamp(34px, 8vw, 48px) 0 20px;
}

.links-action {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 20px;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 13px 18px;
  border: 1px solid rgba(244, 229, 200, .32);
  border-radius: 3px;
  color: inherit;
  background: rgba(19, 10, 12, .54);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .15);
  text-decoration: none;
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1), border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.links-action:hover {
  transform: translateY(-2px) translateX(2px);
  border-color: rgba(232, 189, 120, .86);
  background: rgba(77, 25, 31, .68);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .26);
}

.links-action:focus-visible,
.links-site:focus-visible { outline: 3px solid #f5e5bd; outline-offset: 4px; }

.links-action svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #edc584;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.links-action .links-icon-dot { fill: #edc584; stroke: none; }

.links-action span { display: grid; gap: 3px; }
.links-action strong { font-size: 16px; line-height: 1.05; }
.links-action small { color: rgba(255, 248, 238, .68); font-size: 13px; }
.links-action b { color: #e8bd78; font-size: 21px; font-weight: 400; text-align: right; }

.links-action-primary {
  border-color: #e4bb78;
  color: #2a1114;
  background: linear-gradient(108deg, #ecc887, #d9a85e);
}

.links-action-primary:hover { background: linear-gradient(108deg, #f3d79d, #dfb56e); }
.links-action-primary svg { stroke: #432027; }
.links-action-primary .links-icon-dot { fill: #432027; }
.links-action-primary small { color: rgba(42, 17, 20, .74); }
.links-action-primary b { color: #432027; }

.links-note {
  max-width: 46ch;
  margin: 22px auto 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.links-site {
  display: flex;
  width: max-content;
  min-height: 44px;
  gap: 8px;
  align-items: center;
  margin: 18px auto 0;
  color: #f5e5bd;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-transform: uppercase;
}

@media (max-width: 380px) {
  .links-shell { padding-inline: 14px; }
  .links-action { grid-template-columns: 24px minmax(0, 1fr) 18px; gap: 11px; padding-inline: 14px; }
  .links-action strong { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .links-identity,
  .links-actions,
  .links-note,
  .links-site,
  .links-action { animation: none; transition: none; }
  .links-action:hover { transform: none; }
  .festa-heading,
  .festa-poster-wrap,
  .festa-details { animation: none; }
}

.festa-shell {
  width: min(100%, 700px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(18px, 5vw, 38px) clamp(16px, 5vw, 32px) 46px;
}

.festa-back,
.festa-return,
.festa-map {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f5e5bd;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.festa-back { text-decoration: underline; text-underline-offset: 5px; }
.festa-back:hover, .festa-return:hover { color: #fff8ee; }
.festa-back:focus-visible, .festa-return:focus-visible, .festa-map:focus-visible { outline: 3px solid #f5e5bd; outline-offset: 4px; }

.festa-heading { margin: clamp(24px, 6vw, 44px) 0 24px; text-align: center; }
.festa-heading,
.festa-poster-wrap,
.festa-details { animation: links-rise 620ms cubic-bezier(.22, 1, .36, 1) both; }
.festa-poster-wrap { animation-delay: 90ms; }
.festa-details { animation-delay: 160ms; }
.festa-heading img { width: 56px; height: 56px; border: 1px solid rgba(231, 217, 184, .65); border-radius: 50%; object-fit: cover; }
.festa-heading p { margin: 12px 0 8px; color: rgba(255, 248, 238, .72); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.festa-heading h1 { margin: 0; color: #e8bd78; font-family: var(--font-display); font-size: clamp(34px, 8vw, 52px); font-weight: 500; line-height: 1; }

.festa-poster-wrap { max-width: 520px; margin: 0 auto; }
.festa-poster-wrap a { display: block; border: 1px solid rgba(231, 217, 184, .52); background: #100608; box-shadow: 0 24px 60px rgba(0, 0, 0, .46); }
.festa-poster-wrap img { display: block; width: 100%; height: auto; }
.festa-poster-wrap a:focus-visible { outline: 3px solid #f5e5bd; outline-offset: 5px; }

.festa-details { max-width: 520px; margin: 28px auto 0; text-align: center; }
.festa-details h2 { margin: 0 0 10px; color: #fff8ee; font-family: var(--font-display); font-size: clamp(26px, 5.8vw, 36px); font-weight: 500; line-height: 1.04; }
.festa-details p { margin: 5px 0; color: rgba(255, 248, 238, .77); font-size: 15px; line-height: 1.45; }
.festa-actions { display: grid; gap: 10px; justify-items: center; margin-top: 22px; }
.festa-map { padding: 11px 18px; border: 1px solid #e4bb78; color: #2a1114; background: linear-gradient(108deg, #ecc887, #d9a85e); }
.festa-map:hover { background: linear-gradient(108deg, #f3d79d, #dfb56e); }
.festa-return { text-decoration: underline; text-underline-offset: 5px; }
