@font-face {
  font-family: "Geist";
  src: url("/assets/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #17211c;
  --paper: #f2eee4;
  --paper-deep: #e7dfcf;
  --moss: #4b6653;
  --rust: #b55236;
  --white: #fffdf7;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

a {
  color: inherit;
}

.links-page {
  background: #17211c;
}

.links-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 48px 20px;
  color: var(--white);
  background-image: url("/assets/norway-journalling.jpg");
  background-position: center 48%;
  background-size: cover;
}

.links-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 17, 0.56);
}

.links-inner {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  text-align: center;
}

.links-avatar {
  width: 76px;
  height: 76px;
  border: 2px solid rgba(255, 253, 247, 0.75);
  border-radius: 50%;
  object-fit: cover;
}

.links-kicker {
  margin: 18px 0 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.links-title {
  margin: 0;
  font-size: 56px;
  font-weight: 780;
  line-height: 0.98;
}

.link-list {
  display: grid;
  margin-top: 34px;
  gap: 12px;
}

.link-button {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  color: #0f172a;
  font-size: 16px;
  font-weight: 680;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.link-button:hover,
.link-button:focus-visible {
  border-color: #2563eb;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
  transform: translateY(-2px);
}

.links-socials {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  gap: 24px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.links-socials a {
  text-underline-offset: 5px;
}

.hero {
  position: relative;
  display: flex;
  min-height: 90svh;
  overflow: hidden;
  color: var(--white);
  background-image: url("/assets/norway-journalling.jpg");
  background-position: center 52%;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(12, 20, 17, 0.49);
}

.nav,
.hero-inner {
  position: relative;
  z-index: 1;
}

.nav {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 28px 42px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
}

.nav-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
  text-transform: none;
}

.hero-inner {
  width: min(1120px, calc(100% - 84px));
  margin: auto auto 46px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: 104px;
  font-weight: 780;
  line-height: 0.91;
}

.intro {
  max-width: 660px;
  margin: 25px 0 12px;
  font-size: 25px;
  line-height: 1.42;
}

.form-wrap {
  width: min(400px, 100%);
  min-height: 47px;
  margin-top: 14px;
  overflow: hidden;
}

.beehiiv-embed {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 47px;
  margin: 0;
  border: 0;
  border-radius: 4px !important;
  background: transparent;
  box-shadow: none;
}

.privacy-note {
  margin: -17px 0 0;
  font-size: 11px;
  color: rgba(255, 253, 247, 0.74);
}

.letter-note {
  padding: 104px 42px 112px;
  background: var(--paper);
}

.letter-note-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.letter-note h2 {
  max-width: 820px;
  margin: 0;
  font-size: 58px;
  font-weight: 760;
  line-height: 1.05;
}

.author {
  display: grid;
  padding: 44px 42px;
  border-top: 1px solid rgba(23, 33, 28, 0.15);
  background: var(--paper-deep);
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.author-person {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-person img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name,
.author-detail {
  margin: 0;
}

.author-name {
  font-size: 20px;
  font-weight: 680;
}

.author-detail {
  margin-top: 4px;
  font-size: 12px;
  color: #566159;
}

.socials {
  display: flex;
  gap: 26px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.socials a {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.socials a:hover,
.socials a:focus-visible {
  color: var(--rust);
}

@media (max-width: 760px) {
  .links-hero {
    align-items: start;
    padding: 34px 20px 48px;
    color: var(--ink);
    background-image: url("/assets/dolomites-mobile.jpg");
    background-position: center top;
  }

  .links-overlay {
    display: none;
  }

  .links-avatar,
  .links-kicker {
    display: none;
  }

  .links-title {
    font-size: 44px;
  }

  .link-list {
    margin-top: 20px;
  }

  .link-button {
    min-height: 52px;
  }

  .links-socials {
    margin-top: 20px;
  }

  .hero {
    min-height: max(100svh, 840px);
    background-image: url("/assets/dolomites-mobile.jpg");
    background-position: center top;
  }

  .hero::before {
    display: none;
  }

  .nav {
    padding: 22px 20px;
    color: var(--ink);
  }

  .hero-inner {
    position: absolute;
    top: 64px;
    left: 20px;
    width: calc(100% - 40px);
    margin: 0;
    color: var(--ink);
    text-shadow: none;
  }

  .eyebrow {
    margin-bottom: 8px;
  }

  h1 {
    font-size: 48px;
    line-height: 0.96;
  }

  .intro {
    max-width: 520px;
    margin: 10px 0 4px;
    font-size: 14px;
    line-height: 1.3;
  }

  .form-wrap {
    width: min(400px, 100%);
    min-height: 0;
    height: 47px;
    margin: 4px 0 0;
  }

  .beehiiv-embed {
    width: 100% !important;
    max-width: 100%;
    height: 47px;
    transform: none;
  }

  .privacy-note {
    margin-top: 4px;
    color: rgba(23, 33, 28, 0.76);
  }

  .letter-note {
    padding: 72px 20px 78px;
  }

  .letter-note-inner {
    display: block;
  }

  .letter-note h2 {
    font-size: 40px;
    line-height: 1.08;
  }

  .author {
    padding: 30px 20px;
    grid-template-columns: 1fr;
  }

  .socials {
    padding-left: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
