@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --panel: #101217;
  --text: #f0eee9;
  --muted: #a9b1c0;
  --gold: #d9a354;
  --line: rgba(222, 226, 236, .16);
  --blue-glow: rgba(81, 111, 153, .22);
  --red-glow: rgba(137, 59, 68, .25);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% 16%, rgba(66, 72, 84, .16), transparent 42rem),
    linear-gradient(180deg, #101115 0%, var(--bg) 52%, #08090b 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
.site-header {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(22px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand-logo { display: block; width: 54px; height: 54px; object-fit: contain; flex: 0 0 auto; }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1.25; }
.brand-wordmark strong { font-size: 15px; letter-spacing: .19em; font-weight: 700; }
.brand-wordmark span { margin-top: 5px; font-size: 10px; letter-spacing: .3em; color: var(--muted); }
.header-note { color: #aabbd3; font-size: 10px; letter-spacing: .25em; text-align: right; }
main { width: min(1180px, calc(100% - 44px)); margin: 0 auto; }
.hero { text-align: center; padding: clamp(44px, 7vw, 84px) 0 34px; }
.hero-logo { display: block; width: min(180px, 38vw); height: auto; max-height: 180px; object-fit: contain; margin: 0 auto 22px; }
.eyebrow { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .28em; margin: 0 0 12px; }
h1, h2 { font-family: Cinzel, Georgia, "Times New Roman", serif; font-weight: 500; }
.hero h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.12; letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.hero h1 span { display: block; }
.motto { color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: clamp(19px, 2.5vw, 29px); line-height: 1.4; margin: 24px auto 12px; }
.intro { color: var(--muted); max-width: 690px; margin: 0 auto; font-size: 15px; }
.section-divider { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 46px auto 0; }
.section-divider span { height: 1px; width: min(140px, 18vw); background: var(--line); }
.section-divider p { font-size: 10px; letter-spacing: .28em; color: #c7d0df; margin: 0; white-space: nowrap; }
.portals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding: 14px 0 46px; }
.portal {
  min-height: 310px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(25px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(15, 17, 22, .98), rgba(8, 9, 12, .97));
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.portal::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9; }
.portal-real::before { background: linear-gradient(155deg, transparent 42%, var(--blue-glow) 42%, transparent 77%); }
.portal-tac::before { background: linear-gradient(150deg, transparent 34%, var(--red-glow) 34%, transparent 76%); }
.portal > * { position: relative; }
.portal:hover, .portal:focus-visible { border-color: rgba(217, 163, 84, .72); transform: translateY(-3px); outline: none; }
.portal-number { color: var(--gold); font-size: 10px; letter-spacing: .24em; font-weight: 700; }
.portal h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; margin: 16px 0 18px; }
.portal p { color: #c0c7d2; font-size: 14px; margin: 0 0 28px; max-width: 460px; }
.portal-link { margin-top: auto; color: var(--text); font-size: 10px; font-weight: 700; letter-spacing: .2em; padding-bottom: 7px; border-bottom: 1px solid var(--gold); }
.portal-link span { color: var(--gold); padding-left: 8px; }
.site-footer { width: min(1180px, calc(100% - 44px)); margin: 0 auto; padding: 22px 0 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; color: #818997; font-size: 9px; letter-spacing: .16em; }
.subpage { padding: clamp(50px, 8vw, 100px) 0 76px; min-height: 65vh; }
.subpage h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.15; margin: 0 0 18px; }
.subpage h1 em { color: var(--gold); font-style: normal; }
.subpage-lede { color: var(--muted); max-width: 700px; font-size: 16px; margin: 0; }
.content-panel { margin: 48px 0 28px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); background: rgba(16, 18, 23, .76); }
.content-panel h2 { margin: 0 0 12px; font-size: 28px; }
.content-panel p { max-width: 760px; }
.content-panel .muted { color: #818997; font-size: 13px; }
.tac-panel { background: linear-gradient(135deg, rgba(39, 20, 27, .48), rgba(16, 18, 23, .8)); }
.back-link { display: inline-block; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-decoration: none; }
.back-link:hover { color: #f0c27d; }
@media (max-width: 700px) {
  .site-header { min-height: 78px; padding: 14px 20px; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-wordmark strong { font-size: 12px; }
  .brand-wordmark span { font-size: 8px; }
  .header-note { max-width: 120px; font-size: 8px; line-height: 1.6; }
  main, .site-footer { width: calc(100% - 32px); }
  .hero { padding-top: 42px; }
  .hero-logo { width: min(145px, 42vw); }
  .portals { grid-template-columns: 1fr; gap: 14px; }
  .portal { min-height: 270px; }
  .site-footer { flex-direction: column; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
