:root {
  --bg: #060607;
  --text: #f2f2f2;
  --panel-bg: rgba(8, 12, 22, 0.72);
  --panel-border: rgba(212, 181, 91, 0.28);
  --gold-soft: #d7b45a;
  --text-soft: #d8dde9;
  --text-muted: #a6afc2;
  --publisher-max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  position: relative;
  overflow-x: hidden;
  color: var(--text);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  background-color: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("trait-carre.webp") center / cover no-repeat;
  opacity: 0.25;
}

.publisher-shell {
  width: min(var(--publisher-max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.publisher-hero {
  margin-bottom: 56px;
  text-align: center;
}

.publisher-kicker {
  margin-bottom: 16px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.publisher-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.publisher-hero p {
  width: min(760px, 100%);
  margin: 18px auto 0;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 1.02rem;
}

.sigils-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 34px 28px;
  margin: 0 auto 70px;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.sigil-item {
  flex: 0 1 480px;
  text-align: center;
}

.sigil-frame {
  display: grid;
  place-items: center;
  min-height: 180px;
  margin-bottom: 18px;
}

.sigil-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(180px, 100%);
  max-height: 180px;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.35));
}

.sigil-item h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.sigil-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.portfolio-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.portfolio-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.portfolio-header p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.portfolio-card {
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--panel-border);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.78), rgba(8, 12, 22, 0.9));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 181, 91, 0.5);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.portfolio-art {
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 28px;
  border-bottom: 1px solid rgba(212, 181, 91, 0.18);
  background: radial-gradient(circle at center, rgba(34, 48, 82, 0.7), rgba(11, 14, 24, 0.95));
}

.portfolio-art img {
  display: block;
  width: min(170px, 72%);
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.35));
}

.portfolio-copy {
  padding: 26px 24px 28px;
}

.portfolio-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold-soft);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.portfolio-copy h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.portfolio-copy p {
  margin: 0 0 18px;
  color: var(--text-soft);
  line-height: 1.68;
}

.portfolio-link {
  color: var(--gold-soft);
  font-weight: 600;
}

.portfolio-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 28px;
  border: 1px dashed rgba(212, 181, 91, 0.3);
  border-radius: 26px;
  background: rgba(9, 12, 20, 0.5);
}

.portfolio-empty h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.portfolio-empty p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.publisher-footer {
  margin-top: 70px;
}

address {
  font-style: normal;
  line-height: 1.6;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-block {
  flex: 1;
}

.footer-block h3 {
  margin-bottom: 10px;
}

.footer-legal {
  margin-top: 30px;
  text-align: center;
  opacity: 0.7;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .sigils-panel {
    flex-direction: column;
    gap: 28px;
  }

  .portfolio-header {
    display: block;
  }
}

@media (max-width: 700px) {
  .footer-row {
    flex-direction: column;
    gap: 25px;
  }
}