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

@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f6f7f5;
  --ink: #10231f;
  --muted: #4d5d57;
  --line: #d5ddd9;
  --deep: #0b3d33;
  --deep-2: #0f4a3e;
  --emerald: #00a07a;
  --bronze: #8a6436;
  /* Every rounded corner keeps the sharp top-right tip of the logo frame. */
  --leaf: 14px 0 14px 14px;
  --leaf-l: 28px 0 28px 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Jost", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
p,
figure,
ul {
  margin: 0;
  padding: 0;
}

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

a:focus-visible {
  outline: 2px dashed var(--bronze);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--deep);
  color: #fff;
  border-radius: var(--leaf);
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 56px);
}

.top {
  padding-block: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.wordmark {
  height: 24px;
  width: auto;
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-block: 24px clamp(32px, 5vw, 64px);
}

.tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-bottom: 24px;
}

.tag-en {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
}

h1 {
  font-family: "Marcellus", Georgia, serif;
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.1;
  text-wrap: balance;
}

.lede {
  margin-top: 22px;
  max-width: 42ch;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--leaf);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-primary {
  background: var(--deep);
  color: #fff;
}

.btn-primary:hover {
  background: var(--deep-2);
}

.btn-ghost {
  border: 1px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.note {
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted);
}

.stitch {
  padding-bottom: 2px;
  background-image: repeating-linear-gradient(90deg, var(--bronze) 0 5px, transparent 5px 9px);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
}

.social {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--leaf);
  background: #fff;
  transition: border-color 0.25s var(--ease);
}

.social a:hover {
  border-color: var(--deep);
}

.social svg {
  width: 22px;
  height: 22px;
  fill: var(--deep);
}

.photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--leaf-l);
  background: #e8e4dc;
}

.foot {
  display: flex;
  gap: 24px;
  padding-block: 24px 32px;
  font-size: 14px;
  color: var(--muted);
}

/* Privacy and 404 pages */
.doc {
  flex: 1;
  max-width: 720px;
  padding-block: 32px 64px;
}

.doc h1 {
  font-size: clamp(32px, 3.4vw, 44px);
}

.doc h2 {
  margin: 36px 0 8px;
  font-family: "Marcellus", Georgia, serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
}

.doc p {
  margin-top: 12px;
  color: var(--muted);
}

.doc .updated {
  margin-top: 8px;
  font-size: 14px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .photo {
    order: -1;
  }

  .photo img {
    aspect-ratio: 4 / 3.6;
  }
}

@media (max-width: 480px) {
  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

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