@font-face {
  font-family: "TSG Romulus";
  src: url("../fonts/TsgromulusBold-O8re.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "STIX Two Text";
  src: url("../fonts/STIXTwoText-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Avenir";
  src: url("../fonts/AvenirLTProRoman.otf") format("opentype");
  font-weight: 400;
}

:root {
  --text: #111;
  --muted: #555;
  --border: #e7e7e7;
  --surface: #fafafa;
  --max: 1100px;
  --pad: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir", sans-serif;
  color: var(--text);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  background: transparent;
}

.hero__lead,
.submissions-lead,
.theme-kicker,
.volume-preview__kicker,
.page-subtitle {
  font-family: "STIX Two Text", serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 10;
}

.nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  gap: 12px;
}

.nav::after {
  content: "";
  grid-column: 3;
}

.nav__zone--left {
  grid-column: 1;
  justify-self: start;
  min-width: 0;
}

.nav__zone--right {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand__logo {
  height: 150px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav__link {
  text-decoration: none;
  font-family: "Avenir", sans-serif;
  color: var(--text);
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__toggle {
  display: none;
}

.site-main {
  background: var(--surface);
  padding-bottom: 0;
}

.hero {
  padding: 72px 0 40px;
  max-width: 720px;
}

.hero__title {
  font-family: "TSG Romulus", serif;
  font-size: clamp(38px, 4vw, 52px);
  margin: 0 0 16px;
}

.hero__lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 16px 32px;
  font-size: 17px;
  text-decoration: none;
  font-family: "Avenir", sans-serif;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease,
    box-shadow 160ms ease, border-color 160ms ease;
  white-space: nowrap;
  max-width: 100%;
}

.btn--primary {
  background: #111;
  border: 1px solid #111;
  color: #fff;
}

.btn--primary:hover {
  background: #fff;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.btn--secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: #111;
}

.btn--secondary:hover {
  border-color: #111;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.btn--disabled {
  border: 1px solid var(--border);
  color: var(--muted);
  background: #f7f7f7;
  pointer-events: none;
}

.home-cta {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.volume-preview {
  max-width: 860px;
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.volume-preview__kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12.5px;
}

.volume-preview__title {
  margin: 0 0 12px;
  font-family: "TSG Romulus", serif;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

.volume-preview__text {
  margin: 0 0 16px;
  font-family: "Avenir", sans-serif;
  color: var(--muted);
  line-height: 1.75;
  font-size: 16.5px;
  max-width: 72ch;
}

.home-text {
  margin: 0 0 16px;
  font-family: "Avenir", sans-serif;
  color: var(--muted);
  line-height: 1.75;
  font-size: 16.5px;
  max-width: 80ch;
}

.volume-preview__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-prelude {
  max-width: 860px;
  margin-top: 40px;
  margin-bottom: 0;
  padding-top: 22px;
  padding-bottom: 28px;
}

.footer-prelude__rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0 0 14px;
}

.footer-prelude__text {
  margin: 0;
  font-family: "Avenir", sans-serif;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.discord-link,
.footer-prelude__discord a {
  display: inline-block;
  margin-top: 12px;
  color: #4e3c8f;
  text-decoration: underline;
  font-family: "Avenir", sans-serif;
}

.team-hero-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("../images/literary.jpg");
  height: 65vh;
  min-height: 420px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.team-hero-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "TSG Romulus", serif;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: 0.5px;
}

.team-section {
  width: 85%;
  padding: 25px;
  margin: auto;
  text-align: center;
}

.team-section h2 {
  font-family: "TSG Romulus", serif;
  font-size: 45px;
  margin-bottom: 30px;
}

.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.team-member {
  width: 300px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 10px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s ease;
  overflow: hidden;
}

.team-member:hover {
  transform: translateY(-10px);
}

.team-member img {
  border-radius: 50%;
  border: 4px solid #111;
  width: 150px;
  height: 150px;
  object-fit: cover;
}

.team-member .team-title {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 10px;
  font-family: "Avenir", sans-serif;
}

.team-member .team-content {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.3;
  font-family: "Avenir", sans-serif;
}

.team-member h2,
.team-member h3,
.team-member .name,
.team-member .team-name {
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.submissions-page {
  padding: 48px 0 70px;
}

.submissions-hero {
  max-width: 860px;
  padding: 18px 0 10px;
}

.submissions-title {
  font-family: "STIX Two Text", serif;
  font-weight: 400;
  font-size: clamp(40px, 4vw, 56px);
  margin: 0 0 10px;
  line-height: 1.1;
}

.submissions-lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
  max-width: 720px;
}

.theme-block {
  max-width: 860px;
  margin: 28px 0 34px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.theme-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12.5px;
}

.theme-title {
  margin: 0 0 26px;
  font-family: "TSG Romulus", serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}

.theme-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.theme-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12.5px;
  color: var(--muted);
  font-family: "Avenir", sans-serif;
}

.theme-body {
  font-family: "Avenir", sans-serif;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
  text-align: left;
}

.theme-body p {
  margin: 0 0 16px;
}

.submission-guidelines {
  max-width: 860px;
  margin: 0 0 26px;
}

.submission-note {
  text-transform: none;
  letter-spacing: normal;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  text-align: left;
  margin-top: 12px;
  max-width: 720px;
}

.section-heading {
  font-family: "TSG Romulus", serif;
  font-size: 28px;
  margin: 0 0 12px;
}

.guidelines-list {
  margin: 0;
  padding-left: 18px;
  font-family: "Avenir", sans-serif;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.guidelines-list li {
  margin-bottom: 8px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: 0.95em;
}

.form-card {
  max-width: 860px;
  border-top: 1px solid var(--border);
  padding-top: 26px;
}

.submission-form {
  display: grid;
  gap: 22px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-label {
  font-family: "STIX Two Text", serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12.5px;
}

.req {
  color: #b00020;
}

.form-help {
  margin-top: 40px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-family: "Avenir", sans-serif;
}

.form-help.small {
  font-size: 12.5px;
}

.form-input {
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: "Avenir", sans-serif;
  outline: none;
}

.form-input:focus {
  border-color: #cfcfcf;
}

.form-file {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  font-family: "Avenir", sans-serif;
}

.form-fieldset {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px 10px;
}

.radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-top: 10px;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Avenir", sans-serif;
  font-size: 15px;
  color: var(--text);
}

.radio input {
  width: 16px;
  height: 16px;
}

.form-actions {
  display: grid;
  gap: 10px;
  padding-top: 6px;
}

.btn-primary {
  width: fit-content;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 14px 22px;
  font-family: "Avenir", sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease,
    box-shadow 160ms ease;
  white-space: nowrap;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: #fff;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.guidelines-download .btn {
  font-size: 13.5px;
  padding: 9px 14px;
}

/* ================= FOOTER ================= */

.footer-dark {
  background: #000;
  color: #fff;
  padding: 40px 0 28px;
}

.footer-dark__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}

.footer-dark__center {
  display: flex;
  justify-content: center;
}

.footer-mark {
  width: 170px;
  height: auto;
  display: block;
}

.footer-dark__left {
  font-size: 14px;
}

.footer-dark__right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px 10px;
  text-align: right;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  margin-right: 0;
  font-family: "Avenir", sans-serif;
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease,
    box-shadow 160ms ease;
}

.footer-pill:hover {
  background-color: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.15);
}

.footer-dark__note {
  margin-top: 18px;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Avenir", sans-serif;
}

.footer-meta {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: "STIX Two Text", serif;
}

.footer-meta a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.footer-share {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 18px;
}

.instagram-icon,
.discord-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, opacity 160ms ease;
}

.instagram-icon:hover,
.discord-icon:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.instagram-icon svg,
.discord-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 0;
  padding: 14px 0 10px;
}

.footer-small {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-family: "Avenir", sans-serif;
}

.volumes-page {
  padding: 48px 0 70px;
}

.page-hero {
  padding: 40px 0 14px;
  max-width: 860px;
}

.page-title {
  font-family: "STIX Two Text", serif;
  font-weight: 400;
  font-size: clamp(40px, 4vw, 56px);
  margin: 0 0 10px;
  line-height: 1.1;
}

.page-subtitle {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12.5px;
}

.page-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 720px;
  font-family: "Avenir", sans-serif;
}

.volumes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.volume-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}

.volume-card__img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.volume-card__img img {
  width: 100%;
  height: auto;
  display: block;
}

.volume-card__title {
  font-family: "TSG Romulus", serif;
  margin: 14px 0 6px;
  font-size: 20px;
}

.volume-card__meta {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: "Avenir", sans-serif;
}

@media (max-width: 980px) {
  .volumes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    padding: 14px var(--pad);
  }

  .nav::after {
    display: none;
  }

  .nav__zone--left,
  .nav__zone--right {
    grid-column: 1;
    justify-self: center;
  }

  .brand__logo {
    height: 110px;
  }

  .footer-dark__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-dark__right {
    text-align: center;
  }

  .team-section {
    width: 100%;
    padding: 20px var(--pad);
  }
}

@media (max-width: 640px) {
  .radio-grid {
    grid-template-columns: 1fr;
  }

  .theme-block {
    padding: 18px;
  }

  .volume-preview {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .brand__logo {
    height: 90px;
  }

  .btn,
  .btn-primary {
    padding: 12px 14px;
    border-radius: 10px;
  }
}

.communityworks-page .page-hero {
  padding: 64px 0 22px;
  max-width: 820px;
}

.featured {
  margin-top: 18px;
  padding: 18px 0 30px;
}

.featured__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.featured__hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.carousel {
  position: relative;
}

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 240px;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 2px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel__track::-webkit-scrollbar {
  height: 10px;
}

.carousel__track::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 999px;
}

.carousel__item {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.carousel__controls {
  display: flex;
  gap: 10px;
}

.catalog {
  padding: 10px 0 40px;
}

.catalog-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 980px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

.work-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  max-width: 100%;
  margin: 0 auto;
}

.work-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-title {
  margin: 12px 0 4px;
  font-size: 18px;
  line-height: 1.2;
}

.work-author {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.work-actions {
  display: flex;
  gap: 10px;
}

.hero__title,
.volume-preview__title,
.team-hero-text,
.team-section h2,
.theme-title,
.section-heading,
.page-title,
.submissions-title,
.volume-card__title,
.work-title {
  font-family: "STIX Two Text", serif !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  text-align: center;
}

.team-section h2 {
  font-size: clamp(30px, 4vw, 40px) !important;
}

.team-member h2,
.team-member h3,
.team-member .team-name,
.team-member .name {
  font-family: "STIX Two Text", serif !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  margin: 10px 0 6px;
  font-size: 26px;
  line-height: 1.05;
}

.volume-card__title {
  font-size: 20px;
  line-height: 1.15;
}

.theme-title {
  line-height: 1.1;
}

.submission-guidelines .guidelines-download {
  margin: 22px 0 36px;
}

.submission-guidelines .guidelines-download .btn {
  font-size: 17px;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 500;
  background: #111;
  border: 1px solid #111;
  color: #fff;
}

.submission-guidelines .guidelines-download .btn:hover {
  background: #fff;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

h2,
.section-heading,
.section-title {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
}

@media (max-width: 520px) {
  .section-heading,
  .section-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 18px;
  }

  .team-member h2 {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 18px;
    line-height: 1.2;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.nav-search,
.nav-search__input,
.nav__search,
.search,
.search-bar {
  display: none !important;
}

@media (max-width: 520px) {
  .volumes-page .volume-card .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.15;
    padding: 12px 14px;
  }
}

.hero,
.page-hero,
.submissions-hero,
.volume-preview,
.theme-block,
.submission-guidelines,
.form-card,
.footer-prelude,
.communityworks-page .page-hero {
  margin-left: auto;
  margin-right: auto;
}

.submissions-page .submissions-hero,
.submissions-page .theme-block,
.submissions-page .submission-guidelines,
.submissions-page .form-card {
  text-align: center;
}

.submissions-page .submissions-lead {
  margin-left: auto;
  margin-right: auto;
}

.submissions-page .submission-guidelines .guidelines-download {
  display: flex;
  justify-content: center;
}

.submissions-page .form-actions {
  justify-items: center;
  text-align: center;
}

.submissions-page .btn-primary {
  margin-left: auto;
  margin-right: auto;
}

.submissions-page .submission-note {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.submissions-page .submission-guidelines .guidelines-list {
  display: inline-block;
  text-align: left;
  padding-left: 0;
  list-style-position: inside;
}

.volume-preview__actions,
.home-cta,
.guidelines-download,
.work-actions,
.carousel__controls {
  justify-content: center !important;
}

.form-actions {
  justify-items: center !important;
  text-align: center !important;
}

.volume-card,
.work-card,
.carousel__item,
.volume-preview,
.footer-prelude,
.page-hero,
.submissions-hero,
.theme-block,
.submission-guidelines,
.form-card {
  text-align: center !important;
}

.submission-guidelines .guidelines-list {
  display: inline-block !important;
  text-align: left !important;
  padding-left: 0 !important;
  list-style-position: inside !important;
}

.btn,
.btn-primary {
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 820px) {
  .footer-dark {
    padding: 28px 0 18px;
  }

  .footer-dark__grid {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }

  .footer-dark__left,
  .footer-dark__right {
    text-align: center;
  }

  .footer-dark__right {
    justify-content: center;
  }

  .footer-dark__note {
    margin: 10px auto 0;
    max-width: 320px;
    line-height: 1.5;
  }

  .footer-dark__center {
    margin: 0;
  }

  .footer-mark {
    width: 140px;
  }

  .footer-share {
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 18px;
  }

  .footer-bottom {
    padding: 14px 0 8px;
  }

  .footer-small {
    text-align: center;
  }

  .footer-prelude {
    margin-top: 28px;
    padding-top: 18px;
    padding-bottom: 20px;
  }

  .footer-prelude__rule {
    margin: 0 0 18px;
  }

  .footer-prelude__text {
    line-height: 1.7;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .footer-dark {
    padding: 26px 0 16px;
  }

  .footer-dark__grid {
    gap: 18px;
  }

  .footer-dark__right {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .footer-pill {
    width: min(220px, 100%);
    white-space: normal;
    text-align: center;
    padding: 10px 14px;
    font-size: 12px;
  }

  .footer-share {
    gap: 10px;
    margin-top: 16px;
    margin-bottom: 18px;
  }

  .instagram-icon,
  .discord-icon {
    width: 38px;
    height: 38px;
  }

  .footer-mark {
    width: 125px;
  }
}

/* ===== TEAM PAGE RESPONSIVE LAYOUT ===== */

@media (max-width: 900px) and (min-width: 600px) {
  .team-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    justify-items: center;
  }

  .team-member {
    width: 100%;
    max-width: 280px;
    margin: 0;
  }
}

@media (max-width: 599px) {
  .team-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: center;
  }

  .team-member {
    width: 100%;
    max-width: 320px;
    margin: 0;
  }
}
.discord-link:visited {
  color: #3b4c62;
}

.submission-message {
  margin-top: 16px;
  min-height: 24px;
  font-size: 15px;
  line-height: 1.4;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
}

.submission-message.is-success,
.submission-message.is-error {
  display: block;
}

.submission-message.is-success {
  background: #eef8ee;
  color: #1f7a1f;
  border: 1px solid #b7ddb7;
}

.submission-message.is-error {
  background: #fff1f0;
  color: #b42318;
  border: 1px solid #f0b5ae;
}
