@font-face {
  font-family: Outfit;
  src: url("assets/fonts/outfit-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("assets/fonts/outfit-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --navy: #1e427b;
  --deep: #16335f;
  --sky: #a9d6e7;
  --paper: #eaf4f8;
  --muted: #4a6780;
  --line: rgba(30, 66, 123, .18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--deep);
  font-family: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--navy);
  color: #fff;
  z-index: 5;
}
.skip:focus { transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.top,
.page,
.foot {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.logo img {
  display: block;
  height: 52px;
  width: auto;
}

.place,
.mag,
.note,
.foot {
  font-size: 14px;
  color: var(--muted);
}

.mag { text-underline-offset: 4px; }

.page {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
  padding: 24px 0 40px;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--navy);
}

.copy p {
  margin: 16px 0 0;
  max-width: 28em;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

form {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  max-width: 420px;
}

input[type="email"] {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--deep);
}

button[type="submit"] {
  flex-shrink: 0;
  border: 0;
  padding: 12px 18px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
}
button[type="submit"]:hover { background: var(--deep); }
button[type="submit"]:active { transform: translateY(1px); }
button[type="submit"]:disabled { opacity: .65; cursor: wait; }

.note { margin: 10px 0 0; }
.error {
  display: none;
  margin: 10px 0 0;
  font-size: 14px;
  color: #9b2c2c;
}
.success {
  display: none;
  margin-top: 28px;
  max-width: 28em;
}

.photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

.more {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 56px;
}

.more figure { margin: 0; }
.more img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.more figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
}
.foot a { color: var(--navy); }

@media (max-width: 800px) {
  .place { display: none; }
  .logo img { height: 44px; }
  .page {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 8px 0 32px;
  }
  .photo { max-height: 280px; }
  form { max-width: none; }
  .more { grid-template-columns: 1fr; margin-top: 40px; gap: 28px; }
  .more img { height: auto; aspect-ratio: 3 / 2; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
