:root {
  color-scheme: dark;
  --page: #050505;
  --shell: #100d0a;
  --panel: #1b1712;
  --panel-dark: #0d0b09;
  --panel-soft: #282015;
  --line: #5b4a31;
  --line-bright: #8d7449;
  --text: #d8cfb9;
  --muted: #a4977b;
  --gold: #c4a35a;
  --gold-soft: #e0c987;
  --red: #632018;
  --link: #d7b568;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(92, 62, 33, 0.24), transparent 360px),
    repeating-linear-gradient(0deg, #050505, #050505 2px, #090807 3px, #090807 4px);
  color: var(--text);
  font: 12px/1.45 Verdana, Arial, Helvetica, sans-serif;
}

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

a:hover {
  color: #fff0b8;
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

input,
select,
textarea,
button {
  font: 12px Verdana, Arial, Helvetica, sans-serif;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 3px;
  padding: 5px;
  border: 1px solid #4b3f2c;
  background: #0a0907;
  color: var(--text);
}

textarea {
  resize: vertical;
}

button {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #8a6b36;
  background: linear-gradient(#5f4121, #2d1d10);
  color: #f1d58c;
  cursor: pointer;
}

button:hover {
  background: linear-gradient(#75502a, #392414);
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(0, 0, 0, 0.25), #050505 80%),
    url("https://about.ncsoft.com/artbook/en/assets/images/lin2/01/4_01.jpg") center top / cover no-repeat;
  opacity: 0.3;
}

.site-shell {
  width: 980px;
  margin: 18px auto 28px;
  border: 1px solid #3a2d1b;
  background: var(--shell);
  box-shadow: 0 0 0 1px #000, 0 18px 60px rgba(0, 0, 0, 0.75);
}

.top-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 10px;
  border-bottom: 1px solid #2a2115;
  background: #050505;
  color: #8e8269;
  font-size: 10px;
}

.site-masthead {
  height: 215px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.95), rgba(10, 9, 7, 0.6), rgba(0, 0, 0, 0.08)),
    url("https://legacy-lineage2.com/concept-art/Aden_Concept.jpg") center / cover no-repeat;
  border-bottom: 1px solid #6f5732;
}

.site-masthead::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
}

.masthead-copy {
  position: relative;
  z-index: 1;
  width: 455px;
  padding: 38px 0 0 34px;
  text-shadow: 0 2px 3px #000;
}

.mast-label {
  margin: 0 0 6px;
  color: var(--gold-soft);
  font-size: 11px;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #f5e1a1;
  font: 36px Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.masthead-copy p:last-child {
  margin: 8px 0 0;
  color: #c9bea4;
}

.main-tabs {
  display: flex;
  border-top: 1px solid #1b1510;
  border-bottom: 1px solid #21190f;
  background: linear-gradient(#3b2a17, #160f08);
}

.main-tabs a {
  flex: 1 1 auto;
  padding: 8px 7px;
  border-right: 1px solid #4e371c;
  color: #dcc17a;
  text-align: center;
  text-transform: uppercase;
  font-size: 10px;
}

.main-tabs a:hover {
  background: #4b3218;
  text-decoration: none;
}

.content-frame {
  display: grid;
  grid-template-columns: 178px 1fr 230px;
  gap: 10px;
  padding: 10px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02), transparent 160px),
    #0a0908;
}

.left-rail,
.right-rail,
.main-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.box,
.welcome-panel,
.news-list,
.portal-grid {
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035), transparent 32px),
    var(--panel);
}

.box h2,
.section-title {
  margin: 0;
  padding: 7px 9px;
  border-bottom: 1px solid #4e3f2a;
  background: linear-gradient(#3b2d1c, #17120c);
  color: #e1c879;
  font: 13px Georgia, "Times New Roman", serif;
  text-transform: uppercase;
}

.box {
  padding-bottom: 8px;
}

.box p,
.box form,
.box table,
.box ul {
  margin: 8px;
}

.small-text {
  color: var(--muted);
  font-size: 11px;
}

.link-list {
  padding: 0;
  list-style: none;
}

.link-list li {
  border-bottom: 1px solid #2b2419;
}

.link-list a {
  display: block;
  padding: 5px 2px 5px 12px;
  background: url("https://legacy-lineage2.com/images/misc/button_bullet.gif") 0 9px no-repeat;
}

.mini-table {
  width: calc(100% - 16px);
  border-collapse: collapse;
  color: var(--muted);
  font-size: 11px;
}

.mini-table th,
.mini-table td {
  padding: 4px;
  border-bottom: 1px solid #2b2419;
  text-align: left;
}

.mini-table th {
  color: var(--gold-soft);
  width: 42px;
}

.welcome-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px;
  padding: 10px;
}

.welcome-panel img,
.news-item img {
  border: 1px solid #59482e;
  background: #000;
}

.welcome-panel img {
  width: 220px;
  height: 132px;
  object-fit: cover;
}

.welcome-panel h2 {
  margin: 0 0 8px;
  color: #f0d890;
  font: 22px Georgia, "Times New Roman", serif;
}

.welcome-panel p {
  margin: 0 0 8px;
}

.read-more {
  color: #7e7056;
  font-size: 11px;
}

.news-list {
  display: grid;
  gap: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 142px 1fr;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid #302717;
}

.news-item:first-of-type {
  border-top: 0;
}

.news-item img {
  width: 142px;
  height: 82px;
  object-fit: cover;
}

.news-item h3,
.portal-grid h3 {
  margin: 0 0 4px;
  color: #e0c985;
  font: 15px Georgia, "Times New Roman", serif;
}

.news-item p,
.portal-grid p {
  margin: 0 0 6px;
}

.date {
  color: #82745b;
  font-size: 10px;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.portal-grid .section-title {
  grid-column: 1 / -1;
}

.portal-grid article {
  min-height: 106px;
  padding: 10px;
  border-top: 1px solid #302717;
  border-right: 1px solid #302717;
  background: rgba(0, 0, 0, 0.12);
}

.portal-grid article:nth-child(odd) {
  border-right: 0;
}

.portal-grid.knowledge {
  grid-template-columns: repeat(3, 1fr);
}

.portal-grid.knowledge article {
  min-height: 118px;
}

.portal-grid.knowledge article:nth-child(odd) {
  border-right: 1px solid #302717;
}

.portal-grid.knowledge article:nth-child(3n + 1) {
  border-right: 0;
}

form {
  display: grid;
  gap: 7px;
}

label {
  display: block;
  color: #b8aa8b;
  font-size: 11px;
}

.form-result {
  min-height: 18px;
  margin: 2px 0 0;
  color: #dfc477;
  font-size: 11px;
}

.form-result.error {
  color: #e79a82;
}

.forum-box {
  background:
    linear-gradient(rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.78)),
    url("https://legacy-lineage2.com/images/screenshots_off/airship_1.jpg") center / cover;
}

.site-footer {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 16px;
  padding: 12px;
  border-top: 1px solid #3a2d1b;
  background: #060606;
  color: #7e7463;
  font-size: 10px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1000px) {
  .site-shell {
    width: calc(100% - 18px);
    margin-top: 9px;
  }

  .content-frame {
    grid-template-columns: 170px 1fr;
  }

  .right-rail {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .top-strip {
    display: none;
  }

  .site-masthead {
    height: 190px;
  }

  .masthead-copy {
    width: auto;
    padding: 28px 18px 0;
  }

  h1 {
    font-size: 29px;
  }

  .main-tabs {
    flex-wrap: wrap;
  }

  .main-tabs a {
    flex-basis: 33.333%;
  }

  .content-frame,
  .right-rail,
  .welcome-panel,
  .news-item,
  .portal-grid,
  .portal-grid.knowledge,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .welcome-panel img,
  .news-item img {
    width: 100%;
    height: 150px;
  }

  .portal-grid article,
  .portal-grid article:nth-child(odd),
  .portal-grid.knowledge article,
  .portal-grid.knowledge article:nth-child(odd),
  .portal-grid.knowledge article:nth-child(3n + 1) {
    border-right: 0;
  }
}
