:root {
  --bg: #050d1f;
  --panel: #0b1c36;
  --panel-2: #102440;
  --line: #2f4d78;
  --text: #edf3ff;
  --muted: #a9bddb;
  --gold: #f0d28f;
  --gold-2: #ffd56f;
  --gold-border: rgba(230, 195, 106, .28);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(5, 13, 31, .82), rgba(5, 13, 31, .92)),
    url('../textura.png') center/cover fixed;
}

a { color: inherit; }

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 64px;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.breadcrumbs a {
  color: #f0dba8;
  text-decoration: none;
}

.breadcrumbs a:hover { text-decoration: underline; }

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.hero-copy,
.contact-card,
.info-card,
.format-card {
  border: 1px solid var(--gold-border);
  background:
    radial-gradient(circle at 16% 12%, rgba(240, 210, 143, .12), transparent 32%),
    linear-gradient(135deg, rgba(13, 32, 62, .96), rgba(6, 17, 35, .94));
  box-shadow: 0 18px 38px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.hero-copy {
  min-height: 315px;
  padding: clamp(24px, 4vw, 46px);
  border-radius: 14px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-2);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 900;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: 'Cinzel', serif;
  color: #fff4cf;
  line-height: 1.05;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.hero-copy h1 {
  font-size: clamp(34px, 6vw, 72px);
  max-width: 780px;
}

.hero-copy p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #d7e5fb;
  font-size: 17px;
  line-height: 1.65;
}

.hero-copy strong { color: #fff2bd; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-action,
.secondary-action,
.mail-action,
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.primary-action {
  padding: 0 18px;
  color: #1b1303;
  background: linear-gradient(#ffe18a, #d49a2e);
  border: 1px solid rgba(255, 231, 150, .8);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.secondary-action,
.mail-action {
  padding: 0 16px;
  color: #f8e8bd;
  background: rgba(240, 210, 143, .08);
  border: 1px solid rgba(240, 210, 143, .32);
}

.primary-action:hover,
.secondary-action:hover,
.mail-action:hover,
.copy-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 225, 138, .75);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .34);
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 315px;
  padding: 28px;
  border-radius: 14px;
}

.contact-label,
.format-kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 900;
}

.contact-card a {
  margin: 12px 0;
  color: #ffe18a;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-card a:hover { text-decoration: underline; }

.contact-card p {
  margin: 0;
  color: #c7d8f1;
  line-height: 1.55;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.info-card {
  padding: 22px;
  border-radius: 12px;
}

.info-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: var(--gold-2);
  background: rgba(240, 210, 143, .1);
  border: 1px solid rgba(240, 210, 143, .24);
  margin-bottom: 14px;
}

.info-card h2,
.format-card h3 {
  margin: 0;
  font-family: 'Cinzel', serif;
  color: #fff2bd;
}

.info-card h2 { font-size: 20px; }

.info-card p {
  margin: 10px 0 0;
  color: #c8d8f0;
  line-height: 1.58;
}

.formats-section {
  padding-top: 8px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: clamp(26px, 3.8vw, 42px);
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.format-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
}

.format-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 20px 20px 14px;
}

.format-card h3 {
  font-size: 22px;
  margin-top: 4px;
}

.copy-btn {
  border: 1px solid rgba(159, 212, 232, .32);
  background: rgba(20, 62, 103, .7);
  color: #dff7ff;
  padding: 0 12px;
  font-family: inherit;
  flex: 0 0 auto;
}

pre {
  flex: 1;
  min-height: 420px;
  margin: 0 20px 18px;
  padding: 18px;
  color: #eaf3ff;
  background: rgba(3, 11, 24, .62);
  border: 1px solid rgba(47, 77, 120, .55);
  border-radius: 10px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 13px/1.55 Consolas, 'Courier New', monospace;
}

.mail-action {
  align-self: flex-start;
  margin: 0 20px 20px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2000;
  padding: 12px 16px;
  border-radius: 8px;
  color: #112;
  background: linear-gradient(#ffe18a, #d49a2e);
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .36);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

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

@media (max-width: 920px) {
  .hero-panel,
  .info-grid,
  .format-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .contact-card {
    min-height: 0;
  }

  pre { min-height: 300px; }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero-copy,
  .contact-card,
  .info-card {
    padding: 20px;
  }

  .format-head {
    align-items: flex-start;
    flex-direction: column;
  }

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