:root {
  --green-950: #052c23;
  --green-900: #073b2f;
  --green-800: #0b4c3a;
  --green-700: #176044;
  --green-100: #e8f1ed;
  --gold-600: #c99316;
  --gold-500: #dfa91f;
  --gold-200: #f7df9a;
  --paper: #ffffff;
  --page: #f5f6f5;
  --ink: #101715;
  --muted: #53605b;
  --line: #0a382d;
  --shadow: #0a382d;
  --soft-shadow: rgba(5, 44, 35, .14);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: Barlow, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.high-contrast {
  --page: #ecefec;
  --paper: #ffffff;
  --line: #001c15;
  --shadow: #001c15;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.announcement-bar {
  min-height: 48px;
  color: #fff;
  background: var(--green-950);
}

.announcement-inner {
  width: min(1320px, calc(100% - 36px));
  min-height: 48px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.announcement-label {
  flex: 0 0 auto;
  padding: 6px 13px;
  border: 2px solid var(--gold-500);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.announcement-inner > a {
  min-width: 0;
  overflow: hidden;
  color: var(--gold-500);
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announcement-inner > a:hover {
  color: #fff;
}

.announcement-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.announcement-social a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--gold-500);
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}

.announcement-social a:hover,
.announcement-social a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .24);
}

.announcement-social img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-header {
  background: var(--paper);
}

.header-inner {
  width: min(1320px, calc(100% - 36px));
  min-height: 132px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  padding: 20px 0;
}

.mesa-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: max-content;
  color: var(--green-950);
  text-decoration: none;
}

.mesa-brand > img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.mesa-brand-text {
  display: flex;
  flex-direction: column;
}

.mesa-brand-text strong {
  font-family: "Fugaz One", Barlow, sans-serif;
  font-size: clamp(2.35rem, 4.8vw, 4rem);
  line-height: .92;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.mesa-brand-text small {
  margin-top: 8px;
  color: var(--green-700);
  font-size: .98rem;
  font-style: italic;
  font-weight: 600;
}

.header-description {
  max-width: 440px;
  margin: 0;
  padding-left: 28px;
  border-left: 2px solid var(--gold-500);
  color: var(--green-950);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  font-weight: 600;
  line-height: 1.45;
}

.navigation-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  border-top: 2px solid var(--green-950);
  border-bottom: 2px solid var(--green-950);
  background: var(--paper);
  box-shadow: 0 7px 0 var(--green-950);
}

.main-nav {
  width: min(1320px, calc(100% - 36px));
  min-height: 52px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}

.main-nav a {
  position: relative;
  padding: 16px 0 14px;
  color: var(--green-950);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 8px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold-500);
  transition: right .18s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-active::after {
  right: 0;
}

.theme-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-left: auto;
  cursor: pointer;
  border: 2px solid var(--gold-500);
  border-radius: 50%;
  color: var(--gold-600);
  background: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease;
}

.theme-button:hover,
.theme-button:focus-visible {
  transform: rotate(18deg);
  background: #fff8df;
}

.home-layout {
  width: min(1320px, calc(100% - 36px));
  margin: 34px auto 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 38px;
  align-items: start;
}

.content-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 18px;
}

.section-kicker {
  margin: 0 0 4px;
  color: var(--gold-600);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.content-heading h1 {
  margin: 0;
  color: var(--green-950);
  font-family: "Fugaz One", Barlow, sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  line-height: 1;
}

.clear-filter {
  padding: 9px 13px;
  cursor: pointer;
  border: 2px solid var(--green-950);
  border-radius: 999px;
  color: var(--green-950);
  background: var(--paper);
  font-weight: 800;
}

.clear-filter:hover,
.clear-filter:focus-visible {
  color: #fff;
  background: var(--green-950);
}

.search-status {
  min-height: 1.2em;
  margin: -7px 0 15px;
  color: var(--muted);
  font-weight: 600;
}

.archive-list {
  display: grid;
  gap: 22px;
}

.work-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 42%) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.work-card:hover,
.work-card:focus-within,
.work-card:focus-visible {
  z-index: 2;
  outline: none;
  transform: translate(-4px, -4px);
  border-color: var(--green-950);
  box-shadow: 12px 12px 0 var(--shadow);
}

.work-card::after {
  content: "Abrir obra →";
  position: absolute;
  right: 18px;
  bottom: 14px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--green-950);
  font-size: .72rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.work-card:hover::after,
.work-card:focus-within::after,
.work-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.work-media {
  display: block;
  min-height: 232px;
  overflow: hidden;
  border-right: 2px solid var(--line);
  background: var(--green-100);
}

.work-media img {
  width: 100%;
  height: 100%;
  min-height: 232px;
  object-fit: cover;
  transition: transform .35s ease;
}

.work-card:hover .work-media img,
.work-card:focus-within .work-media img {
  transform: scale(1.025);
}

.work-media.is-contain img {
  padding: 32px;
  object-fit: contain;
  background: linear-gradient(135deg, #f9fbfa, var(--green-100));
}

.work-content {
  min-width: 0;
  padding: 22px 24px 38px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 11px;
  border: 2px solid var(--green-950);
  border-radius: 999px;
  color: var(--green-950);
  background: var(--gold-500);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  text-transform: capitalize;
}

.tag.is-featured {
  color: #fff;
  background: var(--green-950);
  border-color: var(--gold-500);
}

.work-content h2 {
  margin: 0 0 10px;
  color: var(--green-950);
  font-family: "Fugaz One", Barlow, sans-serif;
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
  line-height: 1.12;
}

.work-content h2 a {
  text-decoration: none;
}

.work-content h2 a:hover,
.work-content h2 a:focus-visible {
  color: var(--green-700);
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 13px;
  color: var(--green-950);
  font-size: .89rem;
  font-weight: 600;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.meta-item svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.meta-separator {
  color: var(--gold-600);
  font-weight: 900;
}

.work-summary {
  margin: 0;
  color: #26312d;
  font-size: 1rem;
  line-height: 1.45;
}

.empty-state {
  padding: 34px;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--shadow);
  color: var(--green-950);
  font-weight: 700;
  text-align: center;
}

.sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 20px;
}

.sidebar-card {
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--shadow);
}

.sidebar-card > h2 {
  margin: 0 18px;
  padding: 15px 0 9px;
  border-bottom: 2px solid var(--gold-500);
  color: var(--green-950);
  font-family: "Fugaz One", Barlow, sans-serif;
  font-size: 1.3rem;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 9px;
  padding: 16px 18px 20px;
}

.search-form input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: 2px solid #8a938f;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.search-form input:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(223, 169, 31, .2);
}

.search-form button {
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 2px solid var(--gold-600);
  border-radius: 10px;
  color: #fff;
  background: var(--gold-500);
}

.search-form button:hover,
.search-form button:focus-visible {
  background: var(--gold-600);
}

.search-form svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.crew-card {
  padding: 24px 22px 21px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(223, 169, 31, .17), transparent 38%),
    linear-gradient(145deg, var(--green-800), var(--green-950));
  text-align: center;
}

.crew-symbol {
  width: 68px;
  height: 68px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border: 3px solid var(--gold-500);
  border-radius: 50%;
  color: var(--gold-500);
  font-size: 2.3rem;
  line-height: 1;
}

.crew-card h2 {
  margin: 0 0 8px;
  color: #fff;
  font-family: "Fugaz One", Barlow, sans-serif;
  font-size: 1.35rem;
}

.crew-card p {
  margin: 0 auto 17px;
  max-width: 250px;
  color: rgba(255, 255, 255, .9);
  line-height: 1.45;
}

.crew-card button {
  padding: 11px 20px;
  cursor: pointer;
  border: 2px solid var(--gold-600);
  border-radius: 9px;
  color: var(--green-950);
  background: var(--gold-500);
  font-weight: 800;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .22);
  transition: transform .16s ease, box-shadow .16s ease;
}

.crew-card button:hover,
.crew-card button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .25);
}

.crew-card .crew-feedback {
  min-height: 1.2em;
  margin: 12px auto 0;
  color: var(--gold-200);
  font-size: .84rem;
  font-weight: 700;
}

.zine-content {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 16px 18px 20px;
}

.zine-cover-placeholder {
  display: block;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  border: 2px dashed #7b8882;
  border-radius: 9px;
  background: #f2f4f3;
  box-shadow: 0 4px 0 rgba(5, 44, 35, .18);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.zine-card.is-loaded .zine-cover-placeholder {
  border-style: solid;
  border-color: var(--green-950);
}

.zine-cover-placeholder:hover,
.zine-cover-placeholder:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 rgba(5, 44, 35, .22);
}

.zine-cover-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zine-details {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.zine-content p {
  margin: 0;
  color: var(--green-950);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
}

.zine-repository-link {
  display: block;
  padding: 10px 9px;
  border: 2px solid var(--gold-600);
  border-radius: 8px;
  color: var(--green-950);
  background: var(--gold-500);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .20);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}

.zine-repository-link:hover,
.zine-repository-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .24);
}

.useful-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 17px 12px 19px;
}

.useful-links a {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 5px 2px;
  border-radius: 9px;
  color: var(--green-950);
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease;
}

.useful-links a:hover,
.useful-links a:focus-visible {
  transform: translateY(-3px);
  background: var(--green-100);
}

.useful-links img {
  width: 39px;
  height: 39px;
  object-fit: contain;
}

.footer {
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto 38px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
  padding: 25px 27px;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--shadow);
}

.footer strong {
  color: var(--green-950);
  font-family: "Fugaz One", Barlow, sans-serif;
  font-size: 1.2rem;
}

.footer p {
  max-width: 800px;
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 145px;
}

.footer nav a {
  color: var(--green-800);
  font-weight: 800;
  text-decoration: none;
}

.footer nav a:hover,
.footer nav a:focus-visible {
  color: var(--gold-600);
}

@media (max-width: 1080px) {
  .home-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 28px;
  }

  .work-card {
    grid-template-columns: 38% minmax(0, 1fr);
  }

  .work-media,
  .work-media img {
    min-height: 250px;
  }

  .main-nav {
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 850px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .header-description {
    max-width: 680px;
    padding-left: 0;
    border-left: 0;
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-card,
  .crew-card {
    min-height: 100%;
  }
}

@media (max-width: 650px) {
  .announcement-inner,
  .header-inner,
  .main-nav,
  .home-layout,
  .footer {
    width: min(100% - 22px, 1320px);
  }

  .announcement-inner {
    gap: 10px;
  }

  .announcement-label {
    padding: 5px 9px;
    font-size: .68rem;
  }

  .announcement-social {
    display: none;
  }

  .header-inner {
    min-height: 118px;
    padding: 17px 0;
  }

  .mesa-brand {
    min-width: 0;
  }

  .mesa-brand > img {
    width: 72px;
    height: 72px;
  }

  .mesa-brand-text strong {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .mesa-brand-text small {
    font-size: .84rem;
  }

  .header-description {
    display: none;
  }

  .navigation-shell {
    box-shadow: 0 5px 0 var(--green-950);
  }

  .main-nav {
    min-height: 49px;
    gap: 20px;
    padding-right: 5px;
  }

  .main-nav a {
    padding: 14px 0 12px;
    font-size: .9rem;
  }

  .theme-button {
    display: none;
  }

  .home-layout {
    margin-top: 28px;
  }

  .content-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .work-card {
    grid-template-columns: 1fr;
    box-shadow: 6px 6px 0 var(--shadow);
  }

  .work-card:hover,
  .work-card:focus-within,
  .work-card:focus-visible {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--shadow);
  }

  .work-card::after {
    display: none;
  }

  .work-media {
    min-height: auto;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .work-media img {
    min-height: 0;
  }

  .work-content {
    padding: 18px 18px 20px;
  }

  .work-content h2 {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
