/* ---------- Tokens ---------- */
:root {
  --bg: #2e2118;
  --ink: #efe3c8;
  --parchment: #f3e9d2;
  --quote-text: #e2d5b8;
  --muted: #b0a184;
  --gold: #a9812f;
  --gold-light: #d8b25a;
  --gold-lighter: #f0d193;
  --red: #7a2318;
  --border-muted: #6a5535;
  --card-bg: rgba(20, 14, 10, 0.5);
  --card-bg-soft: rgba(20, 14, 10, 0.42);
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  font-family: 'EB Garamond', Georgia, serif;
  color: var(--ink);
}

a {
  color: var(--gold-light);
  text-decoration: none;
}

a:hover {
  color: var(--gold-lighter);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

@keyframes tremula {
  0%, 100% { opacity: .85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

/* ---------- Page / background layers ---------- */
.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.page__gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(61, 45, 31, .4), transparent 65%),
    linear-gradient(rgba(20, 14, 10, 0), rgba(20, 14, 10, .55) 100%);
}

.page__topbar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background-color: var(--red);
  background-image: url('../img/texture-rachado.jpg');
  background-size: cover;
  background-blend-mode: multiply;
}

/* ---------- Layout ---------- */
.content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 48px;
}

.container {
  width: 100%;
  max-width: 1120px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  justify-content: center;
}

/* ---------- Guard card ---------- */
.guard {
  flex: 0 1 380px;
  min-width: 300px;
}

.guard__frame {
  position: relative;
  border: 1px solid var(--gold);
  padding: 14px;
  background: var(--card-bg-soft);
}

.guard__art {
  position: relative;
  height: 440px;
  overflow: hidden;
}

.guard__portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.corner {
  position: absolute;
  width: 16px;
  height: 16px;
}

.corner--tl { left: -1px; top: -1px; border-left: 3px solid var(--gold); border-top: 3px solid var(--gold); }
.corner--tr { right: -1px; top: -1px; border-right: 3px solid var(--gold); border-top: 3px solid var(--gold); }
.corner--bl { left: -1px; bottom: -1px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); }
.corner--br { right: -1px; bottom: -1px; border-right: 3px solid var(--gold); border-bottom: 3px solid var(--gold); }

.guard__caption {
  text-align: center;
  margin-top: 18px;
}

.guard__name {
  font-family: 'IM Fell English SC', serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.guard__line {
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- Notice ---------- */
.notice {
  flex: 1 1 520px;
  min-width: 300px;
}

.notice__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  font-family: 'IM Fell English SC', serif;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.notice__rule {
  height: 1px;
  width: 46px;
  background: var(--gold);
}

.notice__title {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--parchment);
  text-wrap: pretty;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}

.notice__quote {
  margin: 30px 0 0;
  border-left: 2px solid var(--red);
  padding-left: 24px;
  max-width: 620px;
}

.notice__quote p {
  margin: 0 0 18px;
  font-size: 21px;
  line-height: 1.62;
  color: var(--quote-text);
  text-wrap: pretty;
}

.notice__quote p:last-child {
  margin-bottom: 0;
}

/* ---------- Status badges ---------- */
.status {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.status__item {
  border: 1px solid var(--border-muted);
  background: var(--card-bg);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
}

.status__item--dragon {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.status__label {
  display: block;
  font-family: 'IM Fell English SC', serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.status__value {
  display: block;
  font-size: 18px;
  color: var(--parchment);
  margin-top: 5px;
}

.status__dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c96a2d;
  box-shadow: 0 0 12px 3px rgba(201, 106, 45, .55);
  animation: tremula 2.4s ease-in-out infinite;
}

.timestamp {
  margin-top: 38px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .content {
    padding: 56px 32px;
  }

  .container {
    gap: 40px;
  }

  .guard {
    flex-basis: 300px;
  }

  .guard__art {
    height: 340px;
  }
}

@media (max-width: 640px) {
  .content {
    padding: 40px 20px;
  }

  .container {
    flex-direction: column;
    gap: 32px;
  }

  .guard {
    flex-basis: auto;
    width: 100%;
    max-width: 280px;
  }

  .guard__art {
    height: 260px;
  }

  .notice {
    flex-basis: auto;
    width: 100%;
    text-align: left;
  }

  .notice__quote {
    padding-left: 18px;
  }

  .notice__quote p {
    font-size: 18px;
  }

  .status {
    flex-direction: column;
  }

  .status__item {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .notice__title {
    font-size: 28px;
  }

  .notice__quote p {
    font-size: 16px;
  }
}
