@font-face {
  font-family: Riviera;
  src: url("/artworks/alexander-timofeev/temptation/media/riviera.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;
  --royal: #163362;
  --gold: #edc87a;
  --gold-text: #775522;
  --ink: #17243b;
  --rule: #e7decd;
  --gutter: clamp(18px, 5vw, 76px);
  font-family: Riviera, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
img { display: block; }
h1, h2, p { margin: 0; }

.page {
  width: min(1190px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: var(--gutter);
  padding: 8px 12px;
  background: #fff;
  transform: translateY(calc(-100% - 16px));
}
.skip:focus { transform: none; }

.masthead {
  background: var(--royal);
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}
.masthead-inner {
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand img { width: clamp(104px, 13vw, 134px); height: auto; }
.masthead-link { font-size: .9rem; text-decoration: none; }
.masthead-link:hover { text-decoration: underline; }

.intro {
  padding-block: clamp(34px, 5.3vw, 66px) clamp(27px, 4vw, 48px);
  border-bottom: 1px solid var(--rule);
}
.intro h1 {
  color: var(--royal);
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: .99;
  letter-spacing: -.06em;
}
.intro p { margin-top: 15px; color: #4a5669; font-size: 1.05rem; line-height: 1.5; }

.artworks {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr);
  gap: clamp(20px, 3vw, 38px);
  margin-top: clamp(22px, 3vw, 36px);
}
.artwork-link { display: block; text-decoration: none; }
.artwork-image { width: 100%; height: auto; background: #f5f1e9; }
.artwork-caption {
  min-height: 95px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-block: 16px;
  border-bottom: 1px solid var(--rule);
}
.artist { color: var(--gold-text); font-size: .95rem; line-height: 1.4; }
.artwork-caption h2 {
  margin-top: 3px;
  color: var(--royal);
  font-size: clamp(1.55rem, 2.7vw, 2.65rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.045em;
}
.artwork-step {
  padding-bottom: 2px;
  color: var(--royal);
  font-size: .9rem;
  text-decoration: underline;
  text-decoration-color: var(--gold-text);
  text-underline-offset: .27em;
}
.artwork-link:hover .artwork-step { color: var(--gold-text); }

.archive-footer {
  margin-top: clamp(36px, 6vw, 70px);
  border-top: 1px solid var(--rule);
  padding-block: 20px 32px;
  color: #4a5669;
  font-size: .9rem;
}

@media (max-width: 700px) {
  .masthead-inner { min-height: 68px; }
  .artworks { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .artwork-caption { min-height: 0; }
}
