@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
  src: url("fonts/Outfit-Variable.woff2") format("woff2");
}

@font-face {
  font-family: "Prata";
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
  src: url("fonts/Prata.woff2") format("woff2");
}

@font-face {
  font-family: "Hedvig Letters Serif";
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
  src: url("fonts/HedvigLettersSerif.woff2") format("woff2");
}

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
  src: url("fonts/Raleway.woff2") format("woff2");
}

:root {
  --base: #ffffff;
  --contrast: #111111;
  --dark: #403c3c;
  --muted: #898989;
  --link: #07277c;
  --line: #edecec;
  --content: 960px;
  --wide: 1660px;
  --nav-width: 1120px;
  --header-height: 92px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--contrast);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--contrast);
  color: var(--contrast);
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(18px, 1.4vw, 20px);
  font-weight: 300;
  line-height: 1.75;
}

main {
  background: var(--base);
}

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  background: var(--contrast);
  color: var(--base);
  padding: 30px;
}

.header-inner {
  width: min(100%, var(--nav-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(22px, 4vw, 58px);
}

.site-title {
  margin: 0;
  font-family: "Prata", Georgia, serif;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.2;
  flex: 0 0 auto;
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  font-weight: 400;
}

.nav-list a {
  color: var(--base);
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--base);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--base);
  text-align: center;
  padding: 110px 24px;
}

.hero.short {
  min-height: calc(100vh - var(--header-height));
}

.hero.top {
  place-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -12%;
  right: 0;
  bottom: -12%;
  left: 0;
  z-index: -2;
  background-image: var(--hero-image);
  background-size: var(--hero-size, cover);
  background-position: var(--hero-position, 50% 50%);
  background-repeat: no-repeat;
  transform: translate3d(0, var(--hero-shift, 0px), 0) scale(var(--hero-zoom, 1));
  will-change: transform;
}

@media (pointer: coarse) {
  .hero::before {
    top: -7%;
    bottom: -7%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    top: 0;
    bottom: 0;
    transform: none;
    will-change: auto;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #000;
  opacity: var(--hero-opacity, 0.55);
}

.hero-content {
  width: min(100%, var(--content));
  margin: 0 auto;
}

.hero-title,
.hero h1 {
  margin: 0;
  font-family: "Prata", Georgia, serif;
  font-size: clamp(33px, 5vw, 59px);
  font-weight: 400;
  line-height: 1.08;
}

.hero-subtitle {
  margin: 22px auto 0;
  max-width: 980px;
  font-family: "Hedvig Letters Serif", Georgia, serif;
  font-size: clamp(17px, 2vw, 26px);
  line-height: 1.35;
}

.home-hero .hero-subtitle {
  max-width: 1320px;
  white-space: nowrap;
}

.home-hero .hero-content {
  width: min(100%, 1600px);
  text-align: center;
}

.section {
  padding: 80px 30px;
}

.section.tight {
  padding-top: 50px;
  padding-bottom: 50px;
}

.section.dark {
  background: var(--dark);
  color: var(--base);
}

.section-inner {
  width: min(100%, var(--content));
  margin: 0 auto;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  margin-bottom: 64px;
}

.feature:last-child {
  margin-bottom: 0;
}

.feature h2 {
  margin: 0 0 20px;
  color: var(--base);
  font-family: "Raleway", sans-serif;
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 400;
  line-height: 1.1;
}

.feature p {
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-weight: 400;
}

.feature img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.bio-text {
  margin: 0;
  font-size: clamp(14px, 1.2vw, 15px);
}

.center-copy {
  max-width: 820px;
  margin: 0 auto;
  color: var(--base);
  text-align: center;
}

.watch-copy {
  max-width: 960px;
  margin: 0 auto;
  color: var(--base);
  text-align: center;
}

.watch-copy h2,
.center-copy h2 {
  margin: 0 0 22px;
  font-family: "Raleway", sans-serif;
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 400;
  line-height: 1.1;
}

.watch-copy p,
.center-copy p {
  margin: 0 auto 28px;
  font-family: "Raleway", sans-serif;
  font-weight: 400;
}

.watch-copy p {
  margin-left: auto;
  margin-right: auto;
  max-width: 660px;
  text-align: left;
}

.watch-copy .button {
  margin: 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 28px;
  background: var(--muted);
  color: var(--base);
  border: 0;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

.blog-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f6f3 44%, #ffffff 100%);
  color: var(--contrast);
  padding: 96px 30px;
}

.blog-inner {
  width: min(100%, 1180px);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-card {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.07);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 55px rgba(17, 17, 17, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.post-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--link), rgba(137, 137, 137, 0.22));
  opacity: 0;
  transition: opacity 180ms ease;
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(7, 39, 124, 0.18);
  box-shadow: 0 28px 70px rgba(17, 17, 17, 0.13);
}

.post-card:hover::before {
  opacity: 1;
}

.latest-post-card {
  grid-column: 1 / -1;
  min-height: 360px;
  padding: clamp(32px, 5vw, 54px);
  background: #ffffff;
}

.latest-post-card::before {
  opacity: 1;
}

.latest-label {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 5px 10px;
  border: 1px solid rgba(7, 39, 124, 0.2);
  color: var(--link);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.post-card time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.post-card h2 {
  margin: 16px 0 18px;
  font-family: "Prata", Georgia, serif;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.14;
}

.latest-post-card h2 {
  max-width: 860px;
  font-size: clamp(34px, 4.8vw, 58px);
}

.post-card p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.latest-post-card p {
  max-width: 760px;
  font-size: 18px;
}

.read-more {
  margin-top: auto;
  color: var(--link);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 42px;
}

.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination-link,
.pagination-page {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: var(--contrast);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.pagination-link {
  padding: 0 16px;
}

.pagination-page.is-current {
  border-color: var(--link);
  background: var(--link);
  color: var(--base);
}

.pagination-link.is-disabled {
  opacity: .42;
  pointer-events: none;
}

.divider {
  display: none;
}

.post-layout {
  width: min(100% - 40px, 820px);
  margin: 0 auto;
  padding: 80px 0;
}

.post-layout h1 {
  margin: 0 0 8px;
  font-family: "Prata", Georgia, serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.12;
}

.post-meta {
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 15px;
}

.post-body {
  font-size: 18px;
}

.post-body p {
  margin: 0 0 1.4em;
}

.post-recommendations {
  margin-top: 72px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.post-recommendations h2 {
  margin: 0 0 20px;
  font-family: "Raleway", sans-serif;
  font-size: 22px;
  font-weight: 400;
}

.recommendation-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.recommendation-card {
  display: flex;
  flex-direction: column;
  min-height: 170px;
  padding: 22px;
  border: 1px solid rgba(17, 17, 17, 0.07);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 55px rgba(17, 17, 17, 0.08);
}

.recommendation-card time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.recommendation-card h3 {
  margin: 12px 0 0;
  font-family: "Prata", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.18;
}

.recommendation-card span {
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.contact-form {
  width: min(100%, 640px);
  margin: 0 auto;
  color: var(--base);
  text-align: left;
}

.contact-form label {
  display: block;
  margin-bottom: 18px;
}

.contact-form .contact-trap {
  position: absolute;
  left: -9999px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .92);
  color: var(--contrast);
  font: inherit;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.form-success {
  margin: 18px 0 0;
  color: var(--base);
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.footer {
  padding: 22px 20px 30px;
  background: var(--contrast);
  color: var(--base);
  text-align: center;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(14px, 1.2vw, 15px);
  font-weight: 300;
  line-height: 1.75;
}

.footer p {
  margin: 0;
}

.loading,
.empty {
  color: var(--muted);
  text-align: center;
}

.sheet-note {
  width: min(100% - 40px, 840px);
  margin: 0 auto;
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 760px) {
  .site-header {
    padding: 22px 20px;
  }

  .header-inner {
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
  }

  .site-title {
    white-space: normal;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    margin-left: 0;
    background: var(--base);
    color: var(--contrast);
    padding: 92px 28px 28px;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav .nav-list {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    font-size: 24px;
  }

  .site-nav .nav-list a {
    color: var(--contrast);
  }

  .nav-toggle.is-open {
    position: relative;
    z-index: 30;
    color: var(--contrast);
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 54px;
  }

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

  .blog-section {
    padding: 58px 18px;
  }

  .post-card {
    min-height: 0;
    padding: 26px;
  }

  .pagination {
    flex-direction: column;
    gap: 12px;
  }

  .pagination-pages {
    order: -1;
  }

  .hero {
    min-height: calc(100vh - 111px);
  }

  .home-hero {
    min-height: calc(100svh - 84px);
  }

  .home-hero::before {
    background-size: cover;
    background-position: 55% 45%;
  }

  .home-hero .hero-subtitle {
    white-space: normal;
  }

  .recommendation-row {
    grid-template-columns: 1fr;
  }

}

@media (min-width: 761px) and (max-width: 980px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
