/* Copperplate Interactive: the studio's page, in the seal's own colours (logo/copperplate-interactive/README.txt) and its lettering, Old Standard TT */
:root {
  --ink: #0e2421;        /* patina ink, the page */
  --ink-deep: #0a1b19;
  --paper: #eef3f0;      /* light ground: headings */
  --text: #d5e2dd;
  --muted: #9cb8ae;
  --verdigris: #5fb3a1;
  --copper: #e09461;     /* the seal's copper, a shade lighter to read on the ink */
  --line: rgba(95, 179, 161, .38);
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 19px/1.65 "Old Standard TT", Georgia, serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--paper); }
h2, h3 { font-weight: 400; color: var(--paper); text-wrap: balance; }
p { margin: 0 0 1em; }

/* the bar over the hero */
.bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  background: linear-gradient(rgba(10, 27, 25, .72), rgba(10, 27, 25, 0));
}
.bar a { color: var(--paper); text-decoration: none; }
.bar a:hover { color: var(--copper); }
.studio { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.studio img { width: 46px; }
.bar nav { display: flex; gap: clamp(16px, 3vw, 36px); font-size: 17px; }

/* the key art, full screen, the name over the sky */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; max-height: 1350px; overflow: hidden; background: #e7c39d; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%;
  background: linear-gradient(rgba(14, 36, 33, 0), var(--ink));
}
.hero-title { position: absolute; left: 0; right: 0; top: 9%; z-index: 1; padding: 0 16px; text-align: center; }
.hero-title h1 { margin: 0; }
.hero-title h1 img { width: min(820px, 84vw, 66vh); margin: 0 auto; }
.hero-title p { margin: 14px 0 0; font-style: italic; font-size: 22px; color: var(--ink); }

/* a hairline with the seal's small diamond in the middle */
.card::after {
  content: ""; display: block; width: 9px; height: 9px; margin: 48px auto 0;
  background: var(--copper); transform: rotate(45deg);
  box-shadow: 0 0 0 7px var(--ink), 0 0 0 8px var(--line);
}

/* the title card and the story */
.story, .island { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.card { max-width: 900px; margin: 0 auto; padding: 72px 0 80px; text-align: center; }
.card h2 { margin: 0; font-size: clamp(38px, 6.2vw, 78px); line-height: 1.08; }
.card > p { margin: 18px auto 0; font-style: italic; font-size: clamp(22px, 2.6vw, 30px); color: var(--copper); }

.chapter { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); align-items: center; margin: 0 0 clamp(72px, 9vw, 120px); }
.chapter.flip { grid-template-columns: 5fr 7fr; }
.chapter.flip .plate { order: 2; }
.words { max-width: 34em; }
.words h3 { margin: 0 0 18px; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; }
.first::first-letter { float: left; margin: 8px 3px 0 0; font-size: 82px; line-height: .78; color: var(--copper); }

.plate { display: block; border: 1px solid var(--line); background: var(--ink-deep); cursor: zoom-in; }
.plate:hover { border-color: var(--copper); }
.plate img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.chapter.solo { display: block; }
.chapter.solo .words { margin: 0 auto; max-width: 38em; text-align: center; font-size: 21px; }
.chapter.solo .words p:last-child { font-style: italic; color: var(--copper); }

.pair { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 clamp(72px, 9vw, 120px); }
.pair .chapter { display: block; margin: 0; padding: 0 clamp(24px, 4vw, 56px); }
.pair .chapter + .chapter { border-left: 1px solid var(--line); }
.pair .words { margin: 0 auto; }
.pair .chapter:last-child .words p:last-child { font-style: italic; font-size: 22px; color: var(--copper); }

/* life on the island */
.island .card { padding-top: 24px; }
.island .card > p { max-width: 36em; font-size: 20px; line-height: 1.65; color: var(--text); font-style: normal; }
.feature h3 { margin: 22px 0 10px; font-size: 28px; line-height: 1.15; }
.feature.lead { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); align-items: center; margin-bottom: 64px; }
.feature.lead h3 { margin-top: 0; font-size: clamp(30px, 3.4vw, 42px); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 56px clamp(28px, 4vw, 56px); }
.features p { max-width: 32em; }
.letters { margin: 72px auto 0; max-width: 30em; text-align: center; font-style: italic; font-size: 22px; color: var(--copper); }

/* what you build stays: the island at golden hour, the words in its sky */
.stays { position: relative; margin-top: clamp(96px, 12vw, 160px); overflow: hidden; }
.stays > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e7c39d; }
.stays::before, .stays::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.stays::before { top: 0; height: 7%; background: linear-gradient(var(--ink), rgba(14, 36, 33, 0)); }
.stays::after { bottom: 0; height: 24%; background: linear-gradient(rgba(14, 36, 33, 0), var(--ink)); }
.stays-words { position: absolute; z-index: 2; top: 11%; left: 0; right: 0; max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; color: var(--ink); }
.stays-words h2 { margin: 0 0 16px; font-size: clamp(40px, 5.4vw, 84px); line-height: 1.05; color: var(--ink); }
.stays-words p { max-width: 36em; margin: 0 auto; font-size: clamp(18px, 1.5vw, 22px); }

/* the studio */
.studio-card { padding: 40px 16px 0; text-align: center; }
.studio-card .seal { width: 220px; margin: 0 auto; }
.studio-card dl { margin: 32px 0 0; }
.studio-card dt { margin-top: 18px; font-size: 16px; color: var(--muted); }
.studio-card dd { margin: 2px 0 0; font-size: 20px; overflow-wrap: anywhere; }

footer { padding: 72px 16px 40px; text-align: center; font-size: 15px; color: var(--muted); }

/* a picture opened full size: a close button at the top, arrows to the next and the last, its words underneath */
.viewer { max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); cursor: zoom-out; }
.viewer::backdrop { background: rgba(6, 16, 15, .94); }
.viewer[open] { display: flex; align-items: center; justify-content: center; }
.viewer figure { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; padding: 0 76px; }
.viewer img { max-width: calc(100vw - 152px); max-height: calc(100vh - 120px); width: auto; border: 1px solid var(--line); }
.viewer figcaption { max-width: 40em; font-style: italic; font-size: 17px; color: var(--muted); text-align: center; }
.v-btn {
  position: fixed; z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0 0 4px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--ink); color: var(--paper); font: 400 34px/1 Georgia, serif; cursor: pointer;
}
.v-btn:hover, .v-btn:focus-visible { border-color: var(--copper); color: var(--copper); outline: none; }
.v-close { top: 16px; right: 16px; font-size: 30px; }
.v-prev, .v-next { top: calc(50% - 24px); font-size: 40px; }
.v-prev { left: 16px; }
.v-next { right: 16px; }
body:has(.viewer[open]) { overflow: hidden; }

/* past the last bridge: Syracuse */
.beyond { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.beyond .card { padding-top: clamp(96px, 12vw, 160px); }
.plates { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.feature.lead.flip { grid-template-columns: 5fr 7fr; margin: 72px 0 0; }
.feature.lead.flip .plate { order: 2; }

@media (max-width: 1000px) {
  .stays { display: flex; flex-direction: column; }
  .stays::before { display: none; }
  .stays-words { position: static; order: -1; margin-bottom: 40px; color: var(--text); }
  .stays-words h2 { color: var(--paper); }
}
@media (max-width: 900px) {
  .chapter, .chapter.flip, .feature.lead { grid-template-columns: 1fr; }
  .chapter.flip .plate { order: 0; }
  .words { max-width: none; }
  .pair { grid-template-columns: 1fr; gap: clamp(72px, 9vw, 120px); }
  .pair .chapter { padding: 0; }
  .pair .chapter + .chapter { border-left: 0; }
  .features { grid-template-columns: 1fr; }
  .feature.lead.flip { grid-template-columns: 1fr; margin-top: 56px; }
  .feature.lead.flip .plate { order: 0; }
  .plates { grid-template-columns: 1fr; }
  .viewer figure { padding: 0 16px; }
  .viewer img { max-width: calc(100vw - 32px); max-height: calc(100vh - 200px); }
  .v-prev, .v-next { top: auto; bottom: 20px; }
  .v-prev { left: calc(50% - 64px); }
  .v-next { right: calc(50% - 64px); }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .studio span { display: none; }
  .bar nav { font-size: 16px; }
  .hero { max-height: 860px; }
  .hero-title { top: 11%; }
  .hero-title p { font-size: 19px; }
  .card { padding: 48px 0 56px; }
  .card::after { margin-top: 36px; }
  .chapter.solo .words { font-size: 19px; text-align: left; }
  .first::first-letter { font-size: 66px; }
  .stays > img { aspect-ratio: 4 / 3; object-position: 60% 50%; }
  .studio-card .seal { width: 170px; }
}
