/* Capital Shipping Services, holding page */
/* Fonts, self hosted (SIL Open Font License) */
@font-face { font-family: "Bodoni Moda"; src: url("fonts/bodoni-moda.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("fonts/amiri-arabic.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --deep: #0D2A3D;
  --deeper: #091E2C;
  --brass: #C9A562;
  --brass-soft: #B89556;
  --foam: #EAF0EE;
  --mist: #A3B7C1;
  --sea: #3E7C9C;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --arabic: "Amiri", "Geeza Pro", "Times New Roman", serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--deep);
  background-image:
    radial-gradient(120% 90% at 78% 40%, rgba(62, 124, 156, 0.22), transparent 60%),
    url("chart.svg"),
    linear-gradient(170deg, var(--deep) 0%, var(--deeper) 100%);
  background-size: auto, cover, auto;
  background-position: center, center, center;
  background-attachment: fixed, fixed, fixed;
  color: var(--foam);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
  border-radius: 2px;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 5vw, 3.5rem);
}

/* Header */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--foam);
}

.wordmark span { color: var(--mist); font-weight: 400; }

.coords {
  font-size: 0.8125rem;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  margin: 0;
}

/* Main */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2.5rem, 6vh, 5rem) 0;
}

.copy { max-width: 33rem; }

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.6vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  word-spacing: 0.04em;
  margin: 0 0 1.75rem;
  text-wrap: balance;
}

.lede {
  color: var(--mist);
  margin: 0 0 1.25rem;
  max-width: 31rem;
}

.lede strong { color: var(--foam); font-weight: 500; }

.contact {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.95rem 1.5rem;
  border: 1px solid var(--brass);
  border-radius: 999px;
  color: var(--foam);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.contact svg { width: 1.1rem; height: 1.1rem; flex: none; }

.contact:hover {
  background-color: var(--brass);
  color: var(--deeper);
}

.note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--mist);
}

/* Emblem */
.emblem { margin: 0; justify-self: end; width: 100%; max-width: 40rem; }
.emblem svg { display: block; width: 100%; height: auto; }

.mark { fill: var(--brass); }
.mark-label {
  fill: var(--brass);
  font-family: var(--serif);
  font-weight: 600;
}
.mark-small {
  fill: var(--brass-soft);
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.water {
  transform: translateY(var(--rise, 0));
  animation: settle 2.8s cubic-bezier(0.22, 0.8, 0.24, 1) 0.4s both;
}

.water-body { fill: rgba(30, 86, 118, 0.55); }
.water-line { stroke: var(--foam); stroke-opacity: 0.75; stroke-width: 3; fill: none; }

@keyframes settle {
  from { transform: translateY(330px); }
  70% { transform: translateY(-8px); }
  to { transform: translateY(0); }
}

/* Footer */
.legal {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(163, 183, 193, 0.18);
  font-size: 0.8125rem;
  color: var(--mist);
}

.legal p { margin: 0; }

.arabic {
  font-family: var(--arabic);
  font-size: 1.15rem;
  color: var(--foam);
  opacity: 0.85;
}

/* Small screens */
@media (max-width: 52rem) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 2rem 0 2.5rem;
  }
  .emblem { order: -1; justify-self: start; max-width: 26rem; }
  .coords { display: none; }
  body { background-attachment: scroll, scroll, scroll; }
}

@media (prefers-reduced-motion: reduce) {
  .water { animation: none; }
  .contact { transition: none; }
}

/* 404 page */
.lost h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.lost .copy { max-width: 36rem; }
