* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #ece7df;
  color: #1f1f1f;
  overflow-x: hidden;
}

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

/* ---------------- TOP BAR ---------------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  padding: 34px 42px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  z-index: 100;
}

.logo a {
  font-size: 20px;
  font-weight: 400;

  letter-spacing: -0.02em;

  transition: opacity 0.25s ease;
}

.logo a:hover {
  opacity: 0.5;
}

nav {
  display: flex;
  gap: 42px;
}

nav a {
  font-size: 15px;

  color: rgba(0,0,0,0.74);

  transition:
    opacity 0.25s ease,
    color 0.25s ease;
}

nav a:hover {
  opacity: 0.48;
}

/* ---------------- HOME PAGE ---------------- */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;

  background: #ece7df;
}

.hero::before {
  content: "";

  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(
      to right,
      rgba(236,231,223,0.86) 0%,
      rgba(236,231,223,0.34) 46%,
      rgba(236,231,223,0.10) 100%
    ),
    url('background.jpg');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;

  padding-left: 64px;
  padding-top: 240px;

  max-width: 680px;
}

.hero .line {
  width: 56px;
  height: 1px;

  background: rgba(0,0,0,0.18);

  margin-bottom: 58px;
}

.hero .intro {
  font-size: 19px;
  line-height: 1.7;

  font-weight: 400;

  letter-spacing: -0.02em;

  margin-bottom: 56px;

  color: rgba(0,0,0,0.86);
}

.hero .statement {
  font-size: 22px;
  line-height: 2.08;

  font-weight: 300;

  max-width: 560px;

  color: rgba(0,0,0,0.68);

  letter-spacing: -0.018em;
}

/* ---------------- ESSAY PAGE ---------------- */

.essay-page {
  background: #ece7df;
}

.essay-layout {
  display: grid;
  grid-template-columns: 58% 42%;

  min-height: 100vh;

  position: relative;
  overflow: hidden;
}

.essay-content {
  position: relative;
  z-index: 2;

  padding-top: 170px;
  padding-left: 72px;
  padding-right: 72px;
  padding-bottom: 140px;

  background:
    linear-gradient(
      to right,
      rgba(236,231,223,0.97) 0%,
      rgba(236,231,223,0.86) 62%,
      rgba(236,231,223,0.22) 100%
    );
}

.meta {
  font-size: 13px;

  letter-spacing: 0.18em;

  color: rgba(0,0,0,0.5);

  margin-bottom: 38px;
}

.essay-content h1 {
  font-size: 82px;
  line-height: 0.96;

  font-weight: 300;

  letter-spacing: -0.055em;

  max-width: 760px;

  margin-bottom: 42px;
}

.essay-content .line {
  width: 56px;
  height: 1px;

  background: rgba(0,0,0,0.18);

  margin-bottom: 58px;
}

.intro {
  font-size: 19px;
  line-height: 1.7;

  font-weight: 400;

  letter-spacing: -0.02em;

  margin-bottom: 56px;

  color: rgba(0,0,0,0.86);
}

.statement {
  font-size: 22px;
  line-height: 2.08;

  font-weight: 300;

  max-width: 560px;

  color: rgba(0,0,0,0.68);

  letter-spacing: -0.018em;
}

.essay-content p {
  font-size: 21px;
  line-height: 1.95;

  color: rgba(0,0,0,0.84);

  max-width: 680px;

  margin-bottom: 38px;

  font-weight: 300;
}

.essay-image {
  position: relative;
  overflow: hidden;
}

.essay-image::before {
  content: "";

  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(
      to right,
      rgba(236,231,223,0.72) 0%,
      rgba(236,231,223,0.18) 22%,
      rgba(236,231,223,0.04) 100%
    ),
    url('background.jpg');

  background-size: cover;
  background-position: center;
}

/* ---------------- ESSAY INDEX PAGE ---------------- */

.essay-index-page {
  background: #ece7df;
}

.essay-index-layout {
  display: grid;
  grid-template-columns: 58% 42%;

  min-height: 100vh;

  position: relative;
  overflow: hidden;
}

.essay-index-content {
  position: relative;
  z-index: 2;

  padding-top: 170px;
  padding-left: 72px;
  padding-right: 72px;
  padding-bottom: 140px;

  background:
    linear-gradient(
      to right,
      rgba(236,231,223,0.97) 0%,
      rgba(236,231,223,0.86) 62%,
      rgba(236,231,223,0.22) 100%
    );
}

.essay-index-content h1 {
  font-size: 64px;
  line-height: 1;

  font-weight: 300;

  letter-spacing: -0.05em;

  margin-bottom: 90px;
}

.essay-list {
  max-width: 700px;
}

.essay-item {
  margin-bottom: 74px;
}

.essay-link {
  display: block;
}

.essay-link h2 {
  font-size: 34px;
  line-height: 1.18;

  font-weight: 300;

  letter-spacing: -0.04em;

  margin-bottom: 18px;

  transition: opacity 0.25s ease;
}

.essay-description {
  font-size: 19px;
  line-height: 1.9;

  color: rgba(0,0,0,0.66);

  max-width: 540px;

  margin-bottom: 16px;

  font-weight: 300;
}

.essay-date {
  font-size: 13px;

  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: rgba(0,0,0,0.42);
}

.essay-link:hover h2,
.essay-link:hover .essay-description {
  opacity: 0.5;
}

/* ---------------- TABLET ---------------- */

@media (max-width: 1100px) {

  .essay-layout,
  .essay-index-layout {
    grid-template-columns: 100%;
  }

  .essay-image {
    display: none;
  }

  .hero-content,
  .essay-content,
  .essay-index-content {
    padding-left: 42px;
    padding-right: 42px;
  }

  .hero-content {
    padding-top: 220px;
  }

  .essay-content,
  .essay-index-content {
    padding-top: 190px;
  }

  .essay-content h1 {
    font-size: 58px;
  }
}

/* ---------------- MOBILE ---------------- */

@media (max-width: 700px) {

  .topbar {
    padding: 26px 24px;
  }

  .logo a {
    font-size: 18px;
  }

  nav {
    gap: 18px;
  }

  nav a {
    font-size: 14px;
  }

  .hero-content,
  .essay-content,
  .essay-index-content {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero-content {
    padding-top: 160px;
    max-width: 100%;
  }

  .essay-content,
  .essay-index-content {
    padding-top: 150px;
  }

  .hero::before,
  .essay-image::before {
    background-position: 68% center;
  }

  .hero .line,
  .essay-content .line {
    margin-bottom: 42px;
  }

  .hero .intro,
  .intro {
    font-size: 16px;
    line-height: 1.7;
  }

  .hero .statement,
  .statement {
    font-size: 17px;
    line-height: 1.85;
  }

  .essay-content h1,
  .essay-index-content h1 {
    font-size: 38px;
    line-height: 1.04;

    letter-spacing: -0.045em;
  }

  .essay-link h2 {
    font-size: 24px;
    line-height: 1.2;
  }

  .essay-description {
    font-size: 17px;
    line-height: 1.75;
  }

  .essay-item {
    margin-bottom: 54px;
  }
}