:root {
  --paper: #e5dfd2;
  --ink: #22231f;
  --muted: #6c6c64;
  --green: #46594b;
  --line: rgba(34, 35, 31, 0.26);
  --night: #22241f;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

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

.skip-link:focus {
  top: 12px;
  left: 12px;
  z-index: 200;
  width: auto;
  height: auto;
  margin: 0;
  padding: 9px 12px;
  clip: auto;
  color: var(--paper);
  background: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 12px;
  text-decoration: none;
}

.paper-shell {
  position: fixed;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
  animation: paper-in 620ms 760ms cubic-bezier(0.22, 0.8, 0.26, 1) both;
}

.newspaper-opening {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  animation: opening-away 1.72s linear forwards;
}

.opening-panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  background:
    repeating-radial-gradient(circle at 21% 29%, rgba(34, 35, 31, 0.055) 0 0.35px, transparent 0.6px 6px),
    var(--paper);
  will-change: transform;
}

.opening-panel-top {
  top: 0;
  transform-origin: center bottom;
  animation: open-top 1.08s 560ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.opening-panel-bottom {
  bottom: 0;
  transform-origin: center top;
  animation: open-bottom 1.08s 560ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.opening-seam {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: min(78vw, 980px);
  height: 40px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}

.opening-seam strong {
  position: relative;
  padding: 0 24px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(8px, 0.75vw, 11px);
  font-weight: 600;
  letter-spacing: 0.42em;
  white-space: nowrap;
  animation: seam-name 920ms 80ms ease both;
}

.paper-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    repeating-radial-gradient(circle at 18% 27%, rgba(34, 35, 31, 0.08) 0 0.4px, transparent 0.65px 5px),
    repeating-radial-gradient(circle at 74% 62%, rgba(255, 255, 255, 0.7) 0 0.45px, transparent 0.7px 7px);
  background-size: 6px 8px, 9px 11px;
  mix-blend-mode: multiply;
}

.newspaper {
  width: min(100%, 1540px);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 0 clamp(28px, 4.2vw, 68px) max(8px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

.site-header,
.header-actions,
.social-nav,
.language-switcher {
  display: flex;
  align-items: center;
}

.site-header {
  min-height: clamp(62px, 8vh, 76px);
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.quiet-wordmark {
  font-family: "Inter", Arial, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.32em;
  white-space: nowrap;
}

.header-actions {
  gap: clamp(24px, 3.5vw, 52px);
}

.social-nav {
  gap: 18px;
  font-size: 14px;
}

.social-nav a,
.language-switcher button {
  position: relative;
  text-decoration: none;
}

.social-nav a::after,
.language-switcher button::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -6px;
  height: 1px;
  background: var(--green);
  transition: left 240ms ease, right 240ms ease;
}

.social-nav a:hover::after,
.social-nav a:focus-visible::after,
.language-switcher button:hover::after,
.language-switcher button:focus-visible::after,
.language-switcher button.active::after {
  left: 0;
  right: 0;
}

.social-nav i {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.language-switcher {
  gap: 12px;
}

.language-switcher button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font-family: "Inter", Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.language-switcher button.active {
  color: var(--ink);
}

.author {
  align-self: center;
  width: 100%;
  min-height: 0;
  padding: clamp(38px, 6.4vh, 62px) 20px clamp(40px, 6.8vh, 66px);
  overflow: hidden;
}

.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.masthead img {
  display: block;
  width: min(68vw, 720px);
  height: auto;
  user-select: none;
  filter: contrast(1.2);
}

.masthead p {
  margin: clamp(17px, 2.2vh, 22px) 0 0;
  color: var(--green);
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(7px, 0.64vw, 9px);
  font-weight: 500;
  letter-spacing: clamp(0.26em, 0.48vw, 0.5em);
  text-transform: uppercase;
  text-align: center;
  animation: language-change 380ms ease both;
}

.manifesto {
  display: grid;
  place-items: center;
  padding-top: clamp(34px, 5.2vh, 50px);
}

.manifesto p {
  max-width: 620px;
  margin: 0;
  color: #30312c;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-align: center;
  text-wrap: balance;
  animation: language-change 380ms ease both;
}

.destinations {
  width: min(100%, 960px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.destination {
  position: relative;
  min-height: 104px;
  padding: 16px clamp(16px, 2.6vw, 34px);
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: clamp(16px, 2vw, 26px);
  text-decoration: none;
}

.destination + .destination {
  border-left: 1px solid var(--line);
}

.destination::after {
  content: "";
  position: absolute;
  left: clamp(16px, 2.6vw, 34px);
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--green);
  transition: right 420ms cubic-bezier(0.22, 0.8, 0.26, 1);
}

.destination:hover::after,
.destination:focus-visible::after {
  right: clamp(16px, 2.6vw, 34px);
}

.brand-mark {
  height: 52px;
  display: grid;
  place-items: center;
}

.brand-mark img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  opacity: 0.84;
  filter: contrast(1.18);
  transition: opacity 300ms ease, transform 420ms cubic-bezier(0.22, 0.8, 0.26, 1);
}

.studio-mark img {
  max-width: 34px;
}

.destination:hover .brand-mark img,
.destination:focus-visible .brand-mark img {
  opacity: 1;
  transform: translateY(-2px);
}

.destination-copy h2 {
  margin: 0;
  font-size: clamp(20px, 1.55vw, 24px);
  font-weight: 500;
  line-height: 1;
}

.destination-copy p {
  margin: 5px 0 9px;
  color: var(--muted);
  font-size: clamp(12px, 0.98vw, 14px);
  line-height: 1.15;
  animation: language-change 380ms ease both;
}

.destination-copy span {
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.site-footer {
  width: min(100%, 960px);
  min-height: 30px;
  margin: 0 auto;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 5px;
  color: var(--muted);
  font-family: "Inter", Arial, sans-serif;
  font-size: 7px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
  text-decoration-color: rgba(34, 35, 31, 0.34);
}

.destination-copy b {
  display: inline-block;
  margin-left: 6px;
  color: var(--green);
  transition: transform 240ms ease;
}

.destination:hover .destination-copy b,
.destination:focus-visible .destination-copy b {
  transform: translate(4px, -4px);
}

a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: 5px;
}

.reveal {
  animation: reveal 750ms cubic-bezier(0.22, 0.8, 0.26, 1) both;
}

.reveal-one { animation-delay: 180ms; }
.reveal-two { animation-delay: 330ms; }
.reveal-three { animation-delay: 560ms; }

@keyframes opening-away {
  0%, 98% {
    visibility: visible;
  }
  100% {
    visibility: hidden;
  }
}

@keyframes open-top {
  from { transform: translateY(0); }
  to { transform: translateY(-102%); }
}

@keyframes open-bottom {
  from { transform: translateY(0); }
  to { transform: translateY(102%); }
}

@keyframes seam-name {
  0% {
    opacity: 0;
    letter-spacing: 0.55em;
  }
  32%, 58% {
    opacity: 1;
    letter-spacing: 0.42em;
  }
  100% {
    opacity: 0;
    letter-spacing: 0.48em;
  }
}

@keyframes paper-in {
  from {
    opacity: 0;
    transform: scale(1.008);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes language-change {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .newspaper {
    height: 100%;
    min-height: 0;
    padding: 0 18px max(6px, env(safe-area-inset-bottom));
  }

  .site-header {
    min-height: 62px;
    gap: 14px;
  }

  .quiet-wordmark {
    font-size: 8px;
    letter-spacing: 0.22em;
  }

  .header-actions {
    gap: 18px;
  }

  .social-nav {
    gap: 10px;
    font-size: 13px;
  }

  .social-nav i {
    height: 14px;
  }

  .language-switcher {
    gap: 8px;
  }

  .language-switcher button {
    font-size: 8px;
  }

  .author {
    padding: clamp(42px, 7vh, 58px) 4px clamp(44px, 7vh, 62px);
  }

  .masthead img {
    width: min(88%, 540px);
  }

  .masthead p {
    max-width: 290px;
    margin-top: 15px;
    line-height: 1.5;
    letter-spacing: 0.28em;
  }

  .manifesto {
    padding-top: clamp(30px, 4.6vh, 42px);
  }

  .manifesto p {
    max-width: 520px;
    font-size: clamp(22px, 5.6vw, 28px);
    line-height: 1.18;
  }

  .destination {
    min-height: 96px;
    padding: 14px 12px;
    grid-template-columns: 46px 1fr;
    gap: 14px;
  }

  .destination::after {
    left: 8px;
  }

  .destination:hover::after,
  .destination:focus-visible::after {
    right: 8px;
  }

  .brand-mark {
    height: 46px;
  }

  .studio-mark img {
    max-width: 30px;
  }

  .destination-copy h2 {
    font-size: 20px;
  }

  .destination-copy p {
    margin: 4px 0 8px;
    font-size: 12px;
  }
}

@media (max-width: 620px) {
  .newspaper {
    padding: 0 16px max(3px, env(safe-area-inset-bottom));
    grid-template-rows: 54px auto auto 22px;
    align-content: space-between;
  }

  .site-header {
    min-height: 0;
    gap: 0;
  }

  .quiet-wordmark {
    display: none;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }

  .social-nav {
    gap: 9px;
    font-size: 12px;
  }

  .language-switcher {
    gap: 9px;
  }

  .language-switcher button {
    font-size: 7px;
  }

  .author {
    align-self: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .masthead img {
    width: min(88vw, 460px);
  }

  .masthead p {
    max-width: none;
    margin-top: 11px;
    font-size: 6px;
    line-height: 1.35;
    letter-spacing: 0.24em;
  }

  .manifesto {
    padding-top: clamp(18px, 3.5vh, 28px);
  }

  .manifesto p {
    max-width: 360px;
    font-size: clamp(17px, 4.65vw, 21px);
    line-height: 1.16;
  }

  .destinations {
    grid-template-columns: 1fr;
    border-top-color: rgba(34, 35, 31, 0.18);
  }

  .destination + .destination {
    border-left: 0;
    border-top: 0;
  }

  .destination + .destination::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8px;
    right: 8px;
    height: 1px;
    background: rgba(34, 35, 31, 0.16);
  }

  .destination {
    min-height: 76px;
    padding: 9px 8px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }

  .destination::after {
    display: none;
  }

  .brand-mark {
    height: 38px;
  }

  .studio-mark img {
    max-width: 25px;
  }

  .destination-copy {
    min-width: 0;
  }

  .destination-copy h2 {
    font-size: 17px;
    line-height: 1.05;
  }

  .destination-copy p {
    margin: 3px 0 5px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .destination-copy span {
    font-size: 6px;
  }

  .site-footer {
    min-height: 0;
    align-items: center;
    justify-content: center;
    font-size: 5.5px;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 620px) and (max-height: 720px) {
  .newspaper {
    grid-template-rows: 48px auto auto 20px;
  }

  .author {
    padding: 0;
  }

  .masthead img {
    width: min(80vw, 360px);
  }

  .masthead p {
    margin-top: 7px;
    font-size: 5.5px;
  }

  .manifesto {
    padding-top: 12px;
  }

  .manifesto p {
    max-width: 330px;
    font-size: clamp(15px, 4.25vw, 18px);
    line-height: 1.12;
  }

  .destination {
    min-height: 70px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .brand-mark {
    height: 32px;
  }

  .destination-copy p {
    margin: 2px 0 4px;
  }

  .site-footer {
    min-height: 0;
  }
}

@media (max-width: 350px) {
  .newspaper {
    padding-left: 12px;
    padding-right: 12px;
  }

  .social-nav {
    font-size: 11px;
  }

  .language-switcher {
    gap: 7px;
  }

  .manifesto p {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .newspaper-opening {
    display: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
