@font-face { font-family: "ABC Otto"; src: url("fonts/ABCOtto-Regular.woff2") format("woff2"), url("fonts/ABCOtto-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "ABC Otto"; src: url("fonts/ABCOtto-RegularItalic.woff2") format("woff2"), url("fonts/ABCOtto-RegularItalic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }

@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk-Variable.woff2") format("woff2"), url("fonts/HankenGrotesk-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Founders Grotesk Condensed"; src: url("fonts/founders-grotesk-condensed-semibold.woff2") format("woff2"); font-weight: 600; font-display: block; }

@font-face { font-family: "Masthead Fallback"; src: local("HelveticaNeue-CondensedBold"), local("Helvetica Neue Condensed Bold"), local("Arial Narrow Bold"), local("ArialNarrow-Bold"); font-weight: 600; size-adjust: 92%; }

:root {
  --orange: #ef7a00;
  --slate: #303d40;
  --slate-deep: #26323a;
  --light-orange: #fdf1e3;
  --cream: #eed9ab;
  --rose: #f7e3de;
  --vienna-red: #c8102e;
  --catfish: #36b066;
  --ice: #f1f4fa;
  --danube: #d9e5e8;
  --paper: #ffffff;
  --night: #141d2c;

  --serif: "ABC Otto", "Charter", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --g-regular: 425; --g-medium: 700;
  --condensed: "Founders Grotesk Condensed", "Masthead Fallback", "Arial Narrow", sans-serif;

  --small: 12.5px; --small-leading: 17px;
  --text: 20px;   --text-leading: 29px;
  --title: clamp(38px, 3.8vw, 55px);  --title-leading: 1.06;
  --sans-text: 18px;

  --unit: 29px;
  --margin: 72px;
  --head: 30px;
  --top: 90px;
  --bottom: 60px;
  --page: min(44.444vw, 711px);
  --max: 1600px;
}
@media (max-width: 1100px) { :root { --margin: 48px; } }
@media (max-width: 759px) {
  :root {

    --small: clamp(11px, 3.08vw, 14px);  --small-leading: clamp(15px, 4.1vw, 19px);
    --text: clamp(15px, 4.36vw, 20px);   --text-leading: clamp(22px, 6.41vw, 29px);
    --title: clamp(29px, 8.46vw, 40px);  --title-leading: 1.06;
    --sans-text: clamp(13.5px, 3.97vw, 18px);
    --unit: clamp(22px, 6.41vw, 29px); --margin: clamp(16px, 5.13vw, 24px);
    --head: 20px; --top: 52px; --bottom: 52px;
    --page: auto;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--light-orange);
  color: var(--slate);
  font: 400 var(--text)/var(--text-leading) var(--serif);
  font-kerning: normal;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
.text-page, .issues { max-width: var(--max); margin-inline: auto; }
h1, h2, h3, p, ul, dl, dt, dd { margin: 0; padding: 0; font-weight: inherit; font-size: inherit; }
ul { list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.masthead, .title, .running-head, .credit, .small, .cta, .text, .standfirst, .subtitle,
.cover__subtitle, .section__line, .issues__line {
  text-box: trim-both cap alphabetic;
}

.small, .running-head, .kicker, .credit {
  font-family: var(--sans);
  font-size: var(--small);
  line-height: var(--small-leading);
  font-weight: var(--g-regular);
  letter-spacing: 0.01em;
}
.kicker { font-weight: var(--g-medium); letter-spacing: 0.005em; }
.italic { font-style: italic; }

.caps { letter-spacing: 0.02em; }
.title {
  font: 300 var(--title)/var(--title-leading) var(--sans);
  text-wrap: balance;
}
.text p, .text dd { hyphens: manual; -webkit-hyphens: manual; text-wrap: pretty; }
.text p + p { text-indent: var(--unit); }
.text p.cta { text-indent: 0; }
.text p.spaced { margin-top: var(--unit); text-indent: 0; }

.startnext {
  font: var(--g-medium) var(--sans-text)/var(--text-leading) var(--sans);
  letter-spacing: 0;
  color: inherit;
  text-decoration: none;
  --line: 1.5px;
}
.startnext:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.line-link { position: relative; text-decoration: none; }
.line-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: var(--line-offset, -0.1em);
  height: var(--line, 1px); background: currentColor;
  transform: scaleX(1); transform-origin: left;
}
.line-link:hover::after { animation: line 480ms cubic-bezier(.55,0,.2,1); }
.line-link--empty::after { transform: scaleX(0); transition: transform 320ms cubic-bezier(.55,0,.2,1); }
.line-link--empty:hover::after { animation: none; transform: scaleX(1); }
@keyframes line {
  0%      { transform: scaleX(1); transform-origin: right; }
  48%     { transform: scaleX(0); transform-origin: right; }
  52%     { transform: scaleX(0); transform-origin: left; }
  100%    { transform: scaleX(1); transform-origin: left; }
}
@media (prefers-reduced-motion: reduce) {
  .line-link:hover::after, .line-link--empty::after { animation: none; transition: none; }
}
.cta { margin-top: var(--unit); }

.bg-orange    { background: var(--orange); color: var(--slate-deep); }
.bg-catfish     { background: var(--catfish); color: var(--slate-deep); }

.bg-orange .credit, .bg-orange .running-head, .bg-orange .small, .bg-catfish .credit, .bg-catfish .running-head, .bg-catfish .section-label { font-weight: var(--g-medium); }
.bg-light-orange{ background: var(--light-orange); }
.bg-ice       { background: var(--ice); }
.bg-cream     { background: var(--cream); }
.bg-rose      { background: var(--rose); }
.bg-danube     { background: var(--danube); }
.bg-paper    { background: var(--paper); }

.cover { background: var(--orange); color: var(--slate-deep); }

.cover { display: grid; grid-template-rows: 1fr 1fr; min-height: max(100svh, 720px); }
.cover__field {
  display: flex; flex-direction: column;
  min-height: 0;
  padding: calc(var(--unit) * 1.5) var(--margin) calc(var(--unit) * 1.5);
}

.masthead {
  font: 600 clamp(96px, 8.3vw, 150px)/1 var(--condensed);
  letter-spacing: -0.004em;
  text-align: center;
  white-space: nowrap;
}
.cover__subtitle { margin-top: calc(var(--unit) * 1.5); text-align: center; }

.cover__subtitle a { --line: 1px; }

.cover__field nav { margin-top: auto; padding-top: calc(var(--unit) * 2); }
.menu {
  display: grid; grid-template-columns: 1fr auto 1fr; column-gap: calc(var(--unit) * 1.5);
  align-items: end;
  font-style: italic;
  white-space: nowrap;
}
.menu li { text-box: trim-both cap alphabetic; }
.menu li:nth-child(2) { text-align: center; }
.menu li:nth-child(3) { text-align: right; }

.menu a { --line: 1px; }
.cover__photo { position: relative; background: var(--night); min-height: 0; }

.logo { position: absolute; width: 0; height: 0; overflow: hidden; }

.cover__photo picture, .cover__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover__photo img { object-fit: cover; object-position: 50% 66%; }

.spread { display: grid; grid-template-columns: 1fr 1fr; }
.page {
  display: flex; flex-direction: column;
  min-width: 0;
  padding: var(--top) var(--margin) var(--bottom);
}
.bottom { margin-top: auto; }

.text-page .text { max-width: 31em; }
.text-page .page--text { padding-left: calc(var(--unit) / 2); }

.text-page .page, .issues { padding-bottom: calc(var(--unit) * 3); }
.text-page .text { margin-top: 0; }

.faq dt { font-family: var(--sans); font-weight: var(--g-medium); font-size: var(--sans-text); letter-spacing: 0; text-wrap: balance; }
.faq dd + dt { margin-top: var(--unit); }

.section-label {
  position: absolute; top: var(--head); left: var(--margin); right: var(--margin);
  font: var(--g-regular) var(--small)/var(--small-leading) var(--sans); letter-spacing: 0.01em;
  text-box: trim-both cap alphabetic; text-wrap: balance;
}
.section-label__title { font-weight: var(--g-medium); }
#catfish .page--story { padding-top: calc(var(--unit) * 4); }

.issues { padding: var(--top) var(--margin) calc(var(--unit) * 3); }
.issues__row {
  display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--unit);
}

.issues__head { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--unit); align-items: start; }
.issues__subscription .cta { margin-top: 0.5em; }
.issues__row { margin-top: calc(var(--unit) * 2); }
.issues__row img { width: 100%; height: auto; }
.issues__row .small { margin-top: calc(var(--unit) * 0.5); }
.topics { display: block; text-wrap: balance; }

.story { min-height: var(--page); }
.story .photo { position: relative; background: var(--night); }
.story .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#catfish .photo img       { object-position: 12% 50%; }
#gulls .photo img  { object-position: 42% 50%; }
#urban-nature .photo img{ object-position: 60% 50%; }
#wienliebe .photo img   { object-position: 44% 50%; }
#danube-canal .photo img  { object-position: 24% 50%; }
.mirrored .photo { order: 2; }
.page--story { position: relative; text-align: center; align-items: center; }
.running-head { position: absolute; top: var(--head); left: var(--margin); right: var(--margin); }
.page--story .title { max-width: 9.5em; line-height: 0.98; }
.subtitle { margin-top: var(--unit); max-width: 20em; text-wrap: balance; }
.page--story .bottom { padding-top: calc(var(--unit) * 1.5); max-width: 22em; }
.standfirst { text-wrap: balance; }
.title--red { color: var(--vienna-red); }
.title .quote-mark { font-family: var(--serif); font-weight: 400; font-size: 0.88em; line-height: 0; position: relative; top: -0.02em; }
.title .quote-mark--close { top: -0.06em; }
.title .quote-mark--open { margin-right: -0.06em; }
h2.title { letter-spacing: -0.01em; }
.nowrap { white-space: nowrap; }
.credit { margin-top: var(--unit); }

.footer {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--unit);
  padding: calc(var(--unit) * 2) var(--margin) var(--bottom);
}
.footer .cta { grid-column: 2; grid-row: 1; margin-top: 0; }

.logo-footer { grid-column: 1; grid-row: 2; align-self: end; width: 116px; height: auto; color: var(--slate); }
.footer__right { margin-top: calc(var(--unit) * 3); }
.footer__right { grid-column: 2; grid-row: 2; }

.floating { display: none; }
html.has-floating .floating {
  display: block;
  position: fixed; right: var(--margin); bottom: var(--unit); z-index: 10;
  padding: 16px 20px 23px;
  background: var(--orange); color: var(--slate-deep);
  font: var(--g-medium) var(--sans-text)/1 var(--sans);
  letter-spacing: 0;
  --line: 1.5px;
  text-box: trim-both cap alphabetic;
  opacity: 0; visibility: hidden;
  transition: opacity 250ms ease, visibility 0s linear 250ms;
}
html.has-floating .floating.visible { opacity: 1; visibility: visible; transition: opacity 250ms ease, visibility 0s; }
html.has-floating .floating.on-orange { background: var(--slate); color: var(--light-orange); }
.footer__right a { --line: 1px; --line-offset: 0.05em; }

html.has-floating .floating.line-link::after { left: 20px; right: 20px; bottom: 17px; }
.floating:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html.has-floating .floating, html.has-floating .floating.visible { transition: none; }
}

@media (min-width: 760px) and (max-width: 1099px) {
  .masthead { font-size: min(96px, 11vw); }
  .menu { column-gap: var(--unit); }
  .issues__head { grid-template-columns: 1fr; row-gap: var(--unit); }
  .issues__row { grid-template-columns: 1fr 1fr; column-gap: calc(var(--margin) * 2); row-gap: calc(var(--unit) * 2); }
}

@media (max-width: 759px) {
  .spread, .text-page { grid-template-columns: 1fr; }

  .cover { display: block; min-height: 0; }
  .cover__field { min-height: 0; padding: calc(var(--unit) * 1.5) var(--margin) var(--unit); }
  .masthead { font-size: 13.9vw; }
  .menu { white-space: normal; }
  .cover__subtitle { margin-top: var(--unit); }
  .menu {
    grid-template-columns: 1fr;
    padding-top: calc(var(--unit) * 1.5);
    text-align: center;
  }
  .menu li { text-box: none; }
  .menu li:nth-child(n) { text-align: center; }

  .menu a { display: inline-block; padding: 5px 0; line-height: var(--text-leading); }
  .menu a.line-link::after { bottom: calc(5px + (var(--text-leading) - var(--text)) / 2 - 0.1em); }
  .cover__subtitle a.line-link::after { display: none; }
  .cover__photo picture, .cover__photo img { position: static; height: auto; }
  .cover__photo img { aspect-ratio: 3 / 2; }

  .text-page .page:first-child { padding-bottom: 0; }
  .text-page .page--text { padding-top: calc(var(--unit) * 1.5); padding-left: var(--margin); }

  #catfish .page--story { padding-top: 104px; }

  .issues__head { grid-template-columns: 1fr; row-gap: var(--unit); }
  .issues__row { margin-top: calc(var(--unit) * 1.5); grid-template-columns: 1fr 1fr; column-gap: var(--margin); row-gap: var(--unit); }

  .mirrored .photo { order: 0; }
  .story .photo { aspect-ratio: 9 / 8; }
  .page--story { aspect-ratio: 9 / 8; padding-top: 64px; padding-bottom: var(--unit); }
  .subtitle { margin-top: 20px; }
  .page--story .bottom { padding-top: var(--unit); }
  .credit { margin-top: 20px; }

  html.has-floating .floating { right: var(--margin); bottom: var(--margin); padding: 16px 18px 22px; }
  html.has-floating .floating.line-link::after { left: 18px; right: 18px; bottom: 16px; }

  .footer { grid-template-columns: 1fr; padding-top: calc(var(--unit) * 1.5); }
  .footer .cta { grid-column: 1; grid-row: 1; margin-top: 0; }
  .logo-footer { grid-column: 1; grid-row: 3; align-self: start; width: 86px; margin-top: calc(var(--unit) * 2); }
  .footer__right { grid-column: 1; grid-row: 2; margin-top: calc(var(--unit) * 2); }
}
