/* Final editorial refinement — v7 */

:root {
  --ink: #09151d;
  --ink-soft: #10212b;
  --paper: #f4eee4;
  --paper-deep: #e5d8c6;
  --copper: #b36f47;
  --copper-light: #d89a70;
  --publication-max: 96rem;
}

html {
  color-scheme: dark light;
  scrollbar-color: var(--copper) var(--ink);
}

.v5-page {
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

.v5-page h1,
.v5-page h2,
.v5-page h3 {
  text-wrap: balance;
}

.v5-page p {
  text-wrap: pretty;
}

.v5-page .site-header {
  min-height: 5.9rem;
  padding-inline: var(--publication-gutter);
  background: rgba(7, 17, 24, 0.9);
  border-bottom-color: rgba(240, 231, 218, 0.17);
  backdrop-filter: blur(16px) saturate(115%);
}

.v5-page .site-header.is-scrolled {
  min-height: 4.65rem;
  background: rgba(7, 17, 24, 0.94);
}

.v5-page .brand-lockup {
  display: grid;
  gap: 0.25rem;
  font-size: clamp(2rem, 2.7vw, 2.65rem);
}

.v5-page .brand-lockup small {
  font-size: 0.55rem;
  letter-spacing: 0.45em;
}

.v5-page .main-nav a {
  padding: 0.8rem 0;
  font-size: 0.73rem;
  letter-spacing: 0;
}

.v5-page .main-nav {
  margin-right: 8.75rem;
}

.v5-page .main-nav a::after {
  height: 2px;
}

/* Trilingual navigation */

.language-switcher {
  position: absolute;
  right: calc(var(--publication-gutter) + 3.45rem);
  z-index: 22;
  color: var(--white);
  font-family: var(--font-ui);
}

.language-switcher__trigger {
  display: grid;
  grid-template-columns: 1rem auto 0.55rem;
  gap: 0.38rem;
  align-items: center;
  min-width: 4.65rem;
  height: 2.8rem;
  padding: 0 0.62rem;
  color: rgba(255, 250, 242, 0.78);
  background: rgba(255, 250, 242, 0.025);
  border: 1px solid rgba(240, 231, 218, 0.16);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.language-switcher__trigger:hover,
.language-switcher__trigger:focus-visible,
.language-switcher.is-open .language-switcher__trigger {
  color: var(--white);
  background: rgba(255, 250, 242, 0.07);
  border-color: rgba(213, 144, 102, 0.7);
}

.language-switcher__trigger > svg:first-child {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.language-switcher__trigger > span {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.language-switcher__chevron {
  width: 0.55rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
  transition: transform 180ms ease;
}

.language-switcher.is-open .language-switcher__chevron {
  transform: rotate(180deg);
}

.language-switcher__menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  width: 14.25rem;
  padding: 0.45rem;
  background: rgba(8, 18, 25, 0.98);
  border: 1px solid rgba(240, 231, 218, 0.2);
  box-shadow: 0 1.4rem 4rem rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.language-switcher__menu[hidden] {
  display: none;
}

.language-switcher__menu button {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr) 0.5rem;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  min-height: 3.15rem;
  padding: 0 0.8rem;
  color: rgba(255, 250, 242, 0.72);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.language-switcher__menu button:hover,
.language-switcher__menu button:focus-visible,
.language-switcher__menu button.is-active {
  color: var(--white);
  background: rgba(255, 250, 242, 0.07);
}

.language-switcher__menu strong {
  color: var(--copper-light);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
}

.language-switcher__menu span {
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.language-switcher__menu i {
  width: 0.42rem;
  height: 0.42rem;
  border: 1px solid rgba(255, 250, 242, 0.35);
  border-radius: 50%;
}

.language-switcher__menu button.is-active i {
  background: var(--copper-light);
  border-color: var(--copper-light);
  box-shadow: 0 0 0 3px rgba(213, 144, 102, 0.14);
}

.v5-page .button {
  min-height: 4.2rem;
  padding-inline: 2rem;
  font-size: 1.18rem;
  box-shadow: 0 0 0 rgba(8, 18, 25, 0);
}

.v5-page .button--filled {
  background: #bb7a52;
}

.v5-page .button--filled:hover {
  color: var(--white);
  background: #9e5f3b;
  border-color: #9e5f3b;
  box-shadow: 0 0.8rem 2rem rgba(5, 12, 17, 0.2);
}

.v5-page .button--outline:hover {
  color: var(--white);
  background: rgba(184, 121, 82, 0.16);
}

/* Homepage first viewport */
.home-v6-hero {
  min-height: 100svh;
  padding-top: clamp(9rem, 14vw, 12rem);
}

.home-v6-hero__media img {
  object-position: 56% center;
  filter: saturate(1.04) contrast(1.03) brightness(1.06);
}

.home-v6-hero__media::after {
  background: linear-gradient(90deg, rgba(7, 17, 24, 0.99) 0%, rgba(7, 17, 24, 0.94) 32%, rgba(7, 17, 24, 0.58) 50%, rgba(7, 17, 24, 0.04) 88%);
}

.home-v6-hero__copy {
  max-width: 52rem;
}

.home-v6-hero h1 {
  width: min(42rem, 52vw);
  max-width: none;
  font-size: clamp(4.7rem, 7vw, 7.25rem);
  line-height: 0.89;
  letter-spacing: -0.047em;
}

.home-v6-hero h1::after {
  display: block;
  width: 3.4rem;
  height: 2px;
  margin-top: 1.8rem;
  content: "";
  background: var(--copper-light);
}

.home-v6-hero__copy > p {
  max-width: 38rem;
  margin-top: 1.55rem;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.4;
}

.home-v6-hero__actions {
  margin-top: 2rem;
}

.home-v6-hero__latest {
  right: max(var(--publication-gutter), calc((100vw - var(--publication-max)) / 2));
  bottom: 3rem;
  padding-inline: 0;
}

.home-v6-hero__latest span {
  color: var(--copper-light);
  font-size: 0.7rem;
}

.home-v6-hero__latest strong {
  font-size: 1.55rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.home-v6-hero__scroll {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 2.75rem;
  height: 4rem;
  place-items: center;
  color: rgba(255, 250, 242, 0.82);
  transform: translateX(-50%);
}

.home-v6-hero__scroll::before {
  position: absolute;
  top: 0;
  width: 1px;
  height: 2.6rem;
  content: "";
  background: rgba(255, 250, 242, 0.52);
}

.home-v6-hero__scroll svg {
  position: absolute;
  bottom: 0;
  width: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.home-v6-portal a {
  position: relative;
  min-height: 12rem;
  overflow: hidden;
}

.home-v6-portal a::after {
  position: absolute;
  right: 2rem;
  bottom: 1.7rem;
  color: var(--copper-light);
  content: "→";
  font-family: var(--font-display);
  font-size: 1.5rem;
  transition: transform 220ms ease;
}

.home-v6-portal a:hover::after {
  transform: translateX(0.45rem);
}

.featured-work__cover img {
  box-shadow: 0 1.6rem 3.8rem rgba(11, 20, 27, 0.22);
}

.home-v6-news__item {
  transition: padding 220ms ease, background-color 220ms ease;
}

.home-v6-news__item:hover {
  padding-inline: 1rem;
  background: rgba(184, 121, 82, 0.08);
}

/* Shared inner-page hero */
.publication-hero {
  grid-template-columns: minmax(0, 0.98fr) minmax(32rem, 1.02fr);
  min-height: 35rem;
  padding-top: 0;
  margin-top: 0;
}

.publication-hero__copy {
  padding-block: clamp(4.5rem, 7vw, 6.5rem);
}

.publication-hero h1,
.contact-v5-hero h1 {
  max-width: 9ch;
  font-size: clamp(4.4rem, 6.5vw, 7rem);
  line-height: 0.89;
  letter-spacing: -0.047em;
}

.publication-hero h1::after,
.contact-v5-hero h1::after {
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: 1.8rem;
  content: "";
  background: var(--copper-light);
}

.publication-hero__copy > p,
.contact-v5-hero p {
  margin-top: 1.5rem;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.42;
}

.publication-hero__media img {
  filter: saturate(0.96) contrast(1.02) brightness(1.04);
}

.publication-hero__media::after {
  background: linear-gradient(90deg, var(--ink) 0%, rgba(9, 21, 29, 0.44) 14%, transparent 38%);
  box-shadow: none;
}

/* Literary archive */
.works-journal {
  padding-top: 0;
}

.works-journal__inner {
  border-top: 0;
}

.works-journal__header {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) auto;
  gap: 3rem;
  align-items: end;
  padding: clamp(2.8rem, 5vw, 4.8rem) 0 1.6rem;
  border-bottom: 1px solid rgba(11, 20, 27, 0.22);
}

.works-journal__heading .publication-label {
  margin-bottom: 0.8rem;
}

.works-journal__heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.3rem, 5vw, 5.2rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.works-toolbar {
  align-self: end;
  padding: 0;
  border: 0;
}

.works-toolbar > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.works-toolbar button {
  min-width: auto;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-right: 1px solid rgba(184, 121, 82, 0.42);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.works-toolbar button:last-child {
  border-right: 0;
}

.works-toolbar button.is-active,
.works-toolbar button:hover {
  color: var(--white);
  background: #a55f3a;
}

.works-row {
  position: relative;
  min-height: 11.2rem;
  transition: background-color 220ms ease, padding 220ms ease;
}

.works-row::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease);
}

.works-row:hover {
  padding-inline: 1rem;
  background: rgba(184, 121, 82, 0.065);
}

.works-row:hover::after {
  transform: scaleX(1);
}

.works-row__cover--type {
  background: linear-gradient(145deg, #efe5d6, #ded0bd);
}

.works-row__link {
  white-space: nowrap;
}

/* Press and contact */
.contact-v5-hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(32rem, 1.05fr);
  min-height: 29rem;
  padding-top: 0;
  margin-top: 0;
}

.works-v5-page .publication-hero__copy > p {
  max-width: 31rem;
}

.contact-v5-hero__copy {
  padding: 3.6rem var(--publication-gutter);
}

.contact-v5-hero > div:last-child {
  position: relative;
}

.contact-v5-hero > div:last-child::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--ink), transparent 35%);
  pointer-events: none;
}

.press-resources {
  grid-template-columns: minmax(19rem, 1.05fr) repeat(3, minmax(0, 0.95fr));
  padding: 2rem var(--publication-gutter) 0;
}

.press-resources > div,
.press-resource {
  position: relative;
  padding: 2.3rem clamp(1.5rem, 2.4vw, 2.4rem);
  border-top: 1px solid rgba(184, 121, 82, 0.5);
}

.press-resource {
  counter-increment: press-item;
  transition: background-color 220ms ease;
}

.press-resources {
  counter-reset: press-item;
}

.press-resource::before {
  display: block;
  margin-bottom: 1.5rem;
  color: #a35f3c;
  content: "0" counter(press-item);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.press-resource:hover {
  background: rgba(184, 121, 82, 0.07);
}

.press-resource svg {
  display: none;
}

.press-resource p {
  min-height: 4.5rem;
}

.press-resource .button {
  min-height: auto;
  padding: 0.55rem 0;
  border: 0;
  border-bottom: 1px solid var(--copper);
  color: #8e4f2d;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form-v5 {
  padding-top: clamp(4.5rem, 7vw, 7rem);
  color: var(--ink);
  background: var(--paper);
}

.contact-form-v5 h2,
.contact-form-v5 label,
.contact-form-v5 .form-topic legend {
  color: var(--ink);
}

.contact-form-v5__intro p {
  color: rgba(11, 20, 27, 0.7);
}

.contact-form-v5 .text-link {
  color: #8e4f2d;
}

.contact-form-v5 input[type="text"],
.contact-form-v5 input[type="email"],
.contact-form-v5 textarea {
  border-color: rgba(11, 20, 27, 0.28);
  color: var(--ink);
  background: rgba(255, 250, 242, 0.24);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.contact-form-v5 input:focus,
.contact-form-v5 textarea:focus {
  outline: 0;
  border-color: var(--copper);
  background: rgba(255, 250, 242, 0.7);
  box-shadow: 0 0 0 3px rgba(184, 121, 82, 0.12);
}

.form-topic__choices label {
  border-color: rgba(11, 20, 27, 0.26);
}

.form-topic__choices label:has(input:checked) {
  border-color: var(--copper);
  background: rgba(184, 121, 82, 0.11);
}

.contact-form-v5 .button--filled:hover {
  color: var(--white);
}

.form-status {
  color: #8e4f2d;
}

/* Footer cadence */
.v5-footer {
  border-top-color: rgba(240, 231, 218, 0.2);
  background: #071118;
}

.v5-footer__links a {
  transition: color 180ms ease;
}

.v5-footer__links a:hover {
  color: var(--copper-light);
}

.site-footer .footer-credit {
  margin-top: 1rem;
  color: rgba(240, 231, 218, 0.58);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.025em;
  line-height: 1.7;
}

.footer-credit a {
  color: rgba(240, 231, 218, 0.86);
  text-decoration-color: rgba(209, 151, 112, 0.52);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: var(--copper-light);
  text-decoration-color: currentColor;
}

@media (max-width: 1100px) {
  .home-v6-hero h1 {
    font-size: clamp(4.5rem, 8.5vw, 6.7rem);
  }

  .works-journal__header {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .works-toolbar {
    justify-self: start;
  }

  .press-resources {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .v5-page .site-header {
    min-height: 5rem;
    backdrop-filter: none;
  }

  .language-switcher {
    right: 8.1rem;
  }

  .v5-page .main-nav {
    margin-right: 0;
  }

  .language-switcher__trigger {
    grid-template-columns: 0.95rem auto;
    min-width: 3.7rem;
    padding-inline: 0.55rem;
  }

  .language-switcher__chevron {
    display: none;
  }

  .home-v6-hero {
    min-height: 54rem;
    padding-top: 9rem;
  }

  .home-v6-hero__media::after {
    background: linear-gradient(180deg, rgba(7, 17, 24, 0.7) 0%, rgba(7, 17, 24, 0.9) 52%, rgba(7, 17, 24, 0.98) 100%);
  }

  .home-v6-hero__scroll {
    display: none;
  }

  .publication-hero,
  .contact-v5-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    margin-top: 0;
    padding-top: 0;
  }

  .publication-hero__copy,
  .contact-v5-hero__copy {
    min-height: auto;
    padding: 7rem var(--publication-gutter) 4rem;
  }

  .publication-hero__media {
    min-height: 26rem;
  }

  .contact-v5-hero > div:last-child {
    min-width: 0;
  }

  .contact-v5-hero img {
    width: 100%;
    max-height: 26rem;
  }

  .press-resources {
    grid-template-columns: 1fr 1fr;
  }

  .press-resources > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .language-switcher {
    right: 7.8rem;
  }

  .language-switcher__menu {
    position: fixed;
    top: 4.45rem;
    right: 1rem;
    width: min(14.25rem, calc(100vw - 2rem));
  }

  .home-v6-hero {
    min-height: 53rem;
    padding: 8rem 1.25rem 7rem;
  }

  .home-v6-hero h1,
  .publication-hero h1,
  .contact-v5-hero h1 {
    width: 100%;
    font-size: clamp(3.45rem, 17vw, 4.85rem);
  }

  .home-v6-hero__copy > p,
  .publication-hero__copy > p,
  .contact-v5-hero p {
    font-size: 1.25rem;
  }

  .home-v6-hero__latest {
    right: 1.25rem;
    left: 1.25rem;
    width: auto;
  }

  .home-v6-portal a {
    min-height: 8.5rem;
  }

  .works-journal__header {
    padding-inline: 0;
  }

  .works-toolbar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 0.35rem;
  }

  .works-toolbar button {
    border: 1px solid rgba(184, 121, 82, 0.35);
  }

  .works-row:hover {
    padding-inline: 0;
  }

  .press-resources {
    grid-template-columns: 1fr;
    padding-inline: 1.25rem;
  }

  .press-resources > div:first-child {
    grid-column: auto;
  }

  .press-resource {
    border-left: 0;
  }

  .contact-form-v5__inner {
    gap: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-v6-portal a::after,
  .home-v6-news__item,
  .works-row,
  .works-row::after,
  .press-resource {
    transition: none;
  }
}
