/*
 * Shared by the three news article pages, which carried three identical
 * copies of it inline. Colors and fonts come from /tokens.css.
 */

:root {
  --ombra: #000000;
  --notte: #0b0b0b;
  --grafite: #1c1c1c;
  --cenere: #6e6e6e;
  --nebbia: #c9c9c9;
  --luce: #fafafa;
  --sp: clamp(48px, 8vw, 96px);
  --mx: clamp(16px, 3vw, 56px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --display: "Archivo Black", "Archivo", system-ui, sans-serif;
  --text: "Archivo", system-ui, sans-serif;
  --mono: "Archivo Medium", sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--ombra);
  color: var(--luce);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 860px;
  margin: 0 auto;
}
a {
  color: inherit;
}
main.wrap {
  flex: 1 0 auto;
  padding: var(--sp) var(--mx);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oro);
}
h1.article-title {
  font-family: var(--display-xl);
  text-transform: uppercase;
  overflow-wrap: anywhere;
  hyphens: auto;
  font-weight: 700;
  font-size: clamp(16.8px, 2.7vw, 28.8px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-top: 12px;
}
/* 2026-11-11: cover photo shows whole, at its own shape, full width */
.hero-img {
  margin-top: clamp(28px, 4vw, 44px);
}
.hero-img img {
  display: block;
  width: 100%;
  height: auto;
}
.article-body {
  margin-top: clamp(28px, 4vw, 44px);
  font-size: 17px;
  line-height: 1.7;
  color: var(--nebbia);
}
.article-body p + p {
  margin-top: 18px;
}
footer {
  flex-shrink: 0;
}

/* Big titles are wide capitals: on phones keep them to ~8% of the
   screen width so long words (MONTERIGGIONI, COLLABORAZIONI) still fit. */
@media (max-width: 600px) {
  h1.article-title {
    font-size: min(16.8px, 4.8vw);
  }
}

/* photos inside articles written in /admin */
.article-body h2 {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 26px);
  margin: 1.6em 0 0.6em;
}
.article-figure,
.article-photos {
  margin: 28px 0;
}
.article-figure img,
.article-photos img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.article-photos {
  display: grid;
  gap: 12px;
}
.article-photos--2 {
  grid-template-columns: 1fr 1fr;
}
.article-photos--3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 600px) {
  .article-photos--2,
  .article-photos--3 {
    grid-template-columns: 1fr;
  }
}

/* 2026-10-29: room for the fixed main site header */
body {
  padding-top: 80px;
}

/* 2026-11-09: photos in a row line up. Every photo in a row has the same
   height and is never cropped; widths follow each photo's own shape
   (entry-render.js sets flex-grow to width / height). */
.article-photos {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 12px;
}
.article-photos .fit-row {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 12px;
}
.article-photos .fit-row img {
  flex: 1 1 0%;
  min-width: 0;
  width: auto;
  height: auto;
}
@media (max-width: 600px) {
  .article-photos .fit-row {
    flex-direction: column;
  }
  .article-photos .fit-row img {
    flex: none !important;
    width: 100%;
  }
}

/* press: link to the magazine's own page */
.article-source {
  margin-top: 32px;
}
.article-source a {
  color: var(--oro);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}

/* 2026-11-11: "Back to News / Press" with arrows to the previous / next item */
.article-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px var(--mx) 0;
  max-width: 860px;
  margin: 0 auto;
}
.article-topbar.in-header {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0;
  margin: 0;
  z-index: 2;
}
.article-back,
.article-arrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--luce);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--grafite);
  border-radius: 999px;
  padding: 8px 18px;
  white-space: nowrap;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.article-arrow {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  letter-spacing: 0;
}
.article-arrow.is-off {
  opacity: 0.25;
}
@media (hover: hover) {
  a.article-back:hover,
  a.article-arrow:hover {
    background: var(--oro);
    border-color: var(--oro);
    color: #000;
  }
}
.article-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--mx) var(--sp);
}
.article-pager:empty {
  display: none;
}
.article-pager-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  border: 1px solid var(--grafite);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s;
}
.article-pager-link.is-next {
  text-align: right;
  grid-column: 2;
}
.article-pager-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oro);
}
.article-pager-title {
  font-family: var(--display);
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--luce);
}
@media (hover: hover) {
  .article-pager-link:hover {
    border-color: var(--oro);
  }
}
@media (max-width: 600px) {
  .article-pager {
    grid-template-columns: 1fr;
  }
  .article-pager-link.is-next {
    grid-column: 1;
  }
}
