:root {
  color-scheme: light;
  --ink: #26221f;
  --soft-ink: #554f49;
  --muted: #857c72;
  --paper: #fffdf8;
  --paper-warm: #fbf3e5;
  --line: #d9b14a;
  --gold: #e6aa05;
  --gold-dark: #b98400;
  --field: #fcfbf8;
  --border: rgba(38, 34, 31, .26);
  --shadow: 0 16px 44px rgba(73, 54, 18, .08);
}

* {
  box-sizing: border-box;
}

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

body {
  background:
    radial-gradient(circle at 92% 8%, rgba(232, 177, 18, .08), transparent 16rem),
    linear-gradient(90deg, #fffdfa 0%, #fbf7ef 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.home-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, 33.2%) minmax(270px, 20%) 1fr;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 83%, rgba(226, 176, 37, .12), transparent 12rem),
    radial-gradient(circle at 97% 16%, rgba(226, 176, 37, .09), transparent 16rem);
}

.login-column,
.nav-column,
.content-column {
  min-width: 0;
  min-height: 100vh;
}

.login-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(32px, 5.6vw, 86px) clamp(30px, 5vw, 72px) 28px;
  background: rgba(255, 255, 252, .78);
}

.brand {
  display: grid;
  justify-items: center;
  margin-bottom: 34px;
}

.brand-logo {
  display: block;
  width: 206px;
  height: 206px;
  object-fit: contain;
}

.login-form {
  width: min(100%, 340px);
}

.login-form label {
  display: block;
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.login-form input {
  width: 100%;
  height: 43px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255, 255, 255, .66);
  color: var(--ink);
  padding: 0 13px;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.login-form input::placeholder {
  color: #aaa59d;
}

.login-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(230, 170, 5, .16);
}

.password-wrap {
  position: relative;
  margin-bottom: 22px;
}

.password-wrap input {
  padding-right: 44px;
}

.icon-button {
  position: absolute;
  right: 8px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: rgba(255,255,255,.9);
  border-radius: 999px;
  transform: translateY(-50%);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.icon-button i {
  font-size: 16px;
  color: #6d6259;
}

#username {
  margin-bottom: 19px;
}

.login-button,
.create-button {
  width: 100%;
  height: 38px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.login-button {
  border: 0;
  background: #0d0d0b;
  color: var(--gold);
  box-shadow: 0 5px 13px rgba(0, 0, 0, .18);
}

.create-button {
  margin-top: 15px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .54);
  color: #111;
}

.divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 19px 4px 17px;
  color: #8c8780;
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(38, 34, 31, .17);
}

.social-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.social-actions button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(38, 34, 31, .12);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(38, 34, 31, .07);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.social-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(38, 34, 31, .1);
}

.social-actions button i {
  font-size: 20px;
  color: #1f1c19;
}

.continue-copy {
  margin: 10px 0 0;
  color: #77726d;
  text-align: center;
  font-size: 11px;
}

.characters-art {
  width: min(112%, 455px);
  max-height: 34vh;
  margin: auto -18px 8px;
  object-fit: contain;
}

footer {
  color: #77716b;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.45;
}

footer p {
  margin: 0;
}

.nav-column {
  padding: clamp(48px, 6.4vw, 82px) 28px 52px;
  border-right: 2px solid var(--gold);
  background:
    linear-gradient(rgba(255, 255, 255, .34), rgba(255, 255, 255, .34)),
    var(--paper-warm);
  box-shadow: inset 1px 0 rgba(255, 255, 255, .7);
}

.side-block {
  padding: 0 0 33px;
  border-bottom: 1px solid rgba(207, 163, 55, .62);
}

.side-block + .side-block {
  margin-top: 29px;
}

.block-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 18px;
}

.block-heading h2 {
  margin: 0;
  font-family: Cormorant Garamond, Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.book-icon,
.people-icon,
.info-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: var(--gold);
  transition: color .22s ease, transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.block-heading:hover span {
  color: var(--gold-dark);
  transform: translateY(-1px) scale(1.02);
}

.book-icon::before {
  content: "";
  width: 22px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 5px;
  box-shadow: inset 0 5px 0 currentColor, inset 0 10px 0 currentColor, inset 0 15px 0 currentColor;
  transition: box-shadow .22s ease;
}

.people-icon::before {
  content: "";
  width: 24px;
  height: 16px;
  background: radial-gradient(circle at 8px 5px, currentColor 52%, transparent 53%), radial-gradient(circle at 16px 5px, currentColor 52%, transparent 53%), linear-gradient(currentColor 0 0) no-repeat 50% 100% / 18px 6px;
  border-radius: 999px 999px 10px 10px;
  transition: background .22s ease;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-family: Cormorant Garamond, Georgia, serif;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}

.block-heading:hover .book-icon::before {
  box-shadow: inset 0 5px 0 currentColor, inset 0 10px 0 currentColor, inset 0 15px 0 currentColor, 0 0 0 2px rgba(230, 170, 5, .16);
}

.block-heading:hover .people-icon::before {
  background:
    radial-gradient(circle at 8px 5px, currentColor 52%, transparent 53%),
    radial-gradient(circle at 16px 5px, currentColor 52%, transparent 53%),
    linear-gradient(currentColor 0 0) no-repeat 50% 100% / 18px 6px,
    radial-gradient(circle at center, rgba(230, 170, 5, .16) 45%, transparent 46%);
}

.block-heading:hover .info-icon {
  background: rgba(230, 170, 5, .12);
}

.latest-block a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 5px 17px 0;
  color: #34302d;
  font-size: 13px;
  line-height: 1.5;
}

.latest-block a + a {
  padding-top: 9px;
}

.latest-block b {
  color: #201e1c;
  font-size: 23px;
  font-weight: 300;
}

.link-list {
  display: grid;
  gap: 7px;
}

.link-list a {
  color: #24211f;
  font-size: 14px;
  line-height: 1.2;
}

.link-list .active {
  color: var(--gold-dark);
  font-weight: 700;
}

.character-link {
  padding: 10px 12px;
  border-radius: 12px;
  transition: background .22s ease, color .22s ease;
}

.character-link.active,
.character-link:hover {
  background: rgba(230, 170, 5, .1);
  color: var(--gold-dark);
}

.compact {
  gap: 9px;
}

.characters-block {
  padding-bottom: 30px;
}

.mission-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  margin: 24px 0 0;
  padding: 18px 18px 18px 13px;
  border: 1px solid rgba(207, 163, 55, .52);
  border-radius: 7px;
  background: rgba(255, 250, 236, .72);
  color: #332d27;
  font-family: Cormorant Garamond, Georgia, serif;
  font-size: 16px;
  font-style: italic;
  line-height: 1.4;
}

.mission-card span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 39px;
  line-height: .8;
}

.mission-card strong {
  color: var(--gold-dark);
}

.content-column {
  position: relative;
  padding: clamp(58px, 7vw, 88px) clamp(44px, 7.4vw, 96px) 64px;
  background: rgba(255, 255, 253, .72);
}

.giant-halo {
  position: absolute;
  top: 25px;
  right: 48px;
  width: clamp(130px, 19vw, 240px);
  aspect-ratio: 1.6;
  border: 16px solid rgba(230, 170, 5, .08);
  border-radius: 50%;
  transform: rotate(-25deg);
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 30px;
  height: 30px;
  color: rgba(230, 170, 5, .11);
}

.sparkle::before,
.sparkle::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.sparkle::before {
  left: 14px;
  top: 0;
  width: 2px;
  height: 30px;
}

.sparkle::after {
  top: 14px;
  left: 0;
  width: 30px;
  height: 2px;
}

.sparkle-one {
  top: 76px;
  right: 23vw;
}

.sparkle-two {
  top: 150px;
  right: 7vw;
  transform: scale(.75);
}

.content-column header {
  position: relative;
  z-index: 1;
  max-width: 770px;
}

.article-stage {
  position: relative;
  z-index: 1;
  transition: opacity .24s ease, transform .24s ease;
}

.article-hero {
  display: none;
  margin-bottom: 22px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(30, 27, 24, .12);
}

.article-header-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.article-stage.is-switching {
  opacity: 0;
  transform: translateY(10px);
}

h1 {
  margin: 0;
  font-family: Cormorant Garamond, Georgia, serif;
  font-size: clamp(36px, 4.1vw, 51px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

h1 span {
  color: var(--gold);
}

.rule {
  width: 60px;
  height: 2px;
  margin: 18px 0 24px;
  background: var(--gold);
}

.lead {
  max-width: 690px;
  margin: 0;
  font-family: Cormorant Garamond, Georgia, serif;
  font-size: clamp(21px, 2.3vw, 29px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.19;
}

.intro {
  max-width: 760px;
  margin: 25px 0 24px;
  color: #36312d;
  font-size: 16px;
  line-height: 1.55;
}

.quote-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100%, 620px);
  margin: 18px 0 26px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
}

.quote-divider span {
  flex: 0 1 auto;
  color: var(--gold-dark);
  font-family: Cormorant Garamond, Georgia, serif;
  font-size: 17px;
  font-style: italic;
  line-height: 1.25;
  text-align: center;
}

.quote-divider::before,
.quote-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(207, 163, 55, .6);
}

.article-copy {
  max-width: 740px;
  color: #1f1c19;
  font-size: 13.2px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.28;
}

.article-copy p {
  margin: 0 0 18px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 8px;
  border: 1px solid var(--gold);
  border-radius: 5px;
  padding: 8px 16px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 1180px) {
  .home-page {
    grid-template-columns: minmax(320px, 42%) 1fr;
  }

  .nav-column {
    order: 3;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    min-height: auto;
    border-top: 2px solid var(--gold);
    border-right: 0;
    padding: 32px;
  }

  .side-block,
  .side-block + .side-block,
  .mission-card {
    margin: 0;
  }

  .side-block {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 820px) {
  .home-page {
    display: block;
    overflow: visible;
  }

  .login-column,
  .nav-column,
  .content-column {
    min-height: auto;
  }

  .login-column {
    padding: 32px 22px 24px;
  }

  .characters-art {
    width: min(100%, 430px);
    max-height: none;
    margin-left: 0;
    margin-right: 0;
    margin-top: 26px;
  }

  .nav-column {
    display: block;
    padding: 30px 24px;
  }

  .side-block {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(207, 163, 55, .62);
  }

  .side-block + .side-block,
  .mission-card {
    margin-top: 24px;
  }

  .content-column {
    padding: 42px 24px 48px;
  }

  .giant-halo {
    right: -24px;
    opacity: .8;
  }

  .intro {
    font-size: 15px;
  }
}

@media (max-width: 440px) {
  .brand-logo {
    width: 178px;
    height: 178px;
  }

  .login-form {
    width: 100%;
  }

  .social-actions {
    gap: 12px;
  }

  .social-actions button {
    width: 44px;
    height: 44px;
  }
}
