:root {
  --paper: #f3eee2;
  --paper-soft: #ebe5d6;
  --ink: #1a1a1a;
  --ink-soft: #5a544a;
  --ink-faint: #9a9387;
  --rule: rgba(26, 26, 26, 0.12);
  --max: 880px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(rgba(26, 26, 26, 0.025) 1px, transparent 1px);
  background-size: 4px 4px;
  background-position: 0 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", "Iowan Old Style", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
}

p {
  margin: 0;
}

/* ---------- nav ---------- */
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 32px 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand__mark {
  color: var(--ink);
  display: block;
}

.brand__name {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.005em;
}

.nav__link {
  font-size: 13.5px;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav__link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------- main ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 96px;
  text-align: center;
}

.ship {
  margin: 0 auto 56px;
  max-width: 560px;
}

.ship img {
  width: 100%;
  height: auto;
  animation: drift 14s ease-in-out infinite;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero__title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 300;
  max-width: 14ch;
  margin: 0 auto 22px;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
}

.hero__sub {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 42ch;
  margin: 0 auto;
}

/* ---------- meta strip ---------- */
.meta {
  border-top: 1px solid var(--rule);
  padding: 28px 0 64px;
}

.meta dl {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin: 0;
}

.meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta div:nth-child(2) {
  align-items: center;
  text-align: center;
}

.meta div:nth-child(3) {
  align-items: flex-end;
  text-align: right;
}

.meta dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  font-weight: 500;
}

.meta dd {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 15px;
  color: var(--ink);
}

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--rule);
  width: 100%;
}

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 32px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

.foot__note em {
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--ink-soft);
}

.foot__links a,
.foot__note a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.foot__links a:hover,
.foot__note a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------- legal pages ---------- */
.legal {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 32px 96px;
}

.legal__head {
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  font-weight: 500;
  margin: 0;
}

.legal h1 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

.legal__meta {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0;
}

.legal__body {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.legal__body h2 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 48px 0 12px;
}

.legal__body h3 {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink);
  letter-spacing: 0;
  margin: 24px 0 8px;
}

.legal__body p,
.legal__body ul {
  margin: 0 0 16px;
}

.legal__body ul {
  padding-left: 22px;
}

.legal__body li {
  margin-bottom: 8px;
}

.legal__body strong {
  color: var(--ink);
  font-weight: 500;
}

.legal__body em {
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--ink);
}

.legal__body a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}

.legal__body a:hover {
  border-bottom-color: var(--ink);
}

.legal__back {
  margin: 64px 0 0;
  font-size: 13.5px;
}

.legal__back a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.legal__back a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .nav,
  main,
  .foot {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero {
    padding: 48px 0 72px;
  }

  .ship {
    margin-bottom: 40px;
  }

  .meta dl {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .foot {
    flex-direction: column;
    text-align: center;
  }

  .nav__link {
    font-size: 12.5px;
  }

  .legal {
    padding: 40px 22px 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ship img {
    animation: none;
  }
}
