/* ==============================
   ZAPOT.E.K — Neocities
   ============================== */

:root {
  --paper: #f1ede5;
  --paper-deep: #e9e1d5;
  --ink: #181817;
  --muted: #5f5a52;
  --rust: #9a3f20;
  --rust-deep: #7d2f18;
  --line: rgba(24, 24, 23, 0.18);
  --dark: #151614;
  --white: #f7f4ee;
  --max: 1540px;
}

/* RESET */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  color: var(--ink);

  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(255, 255, 255, 0.55),
      transparent 28rem
    ),
    linear-gradient(
      180deg,
      #f6f1e9 0%,
      var(--paper) 100%
    );

  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

/* ==============================
   HEADER
   ============================== */

.site-header {
  position: relative;
  z-index: 10;

  min-height: 84px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  gap: 24px;

  padding: 0 4vw;

  background: rgba(246, 241, 233, 0.94);

  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brand {
  justify-self: start;

  font-family: "Cormorant Garamond", Georgia, serif;

  font-size: clamp(
    1.55rem,
    2vw,
    2.1rem
  );

  letter-spacing: 0.18em;

  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-nav {
  display: flex;

  gap: clamp(
    20px,
    3vw,
    52px
  );

  font-size: 0.9rem;
}

.site-nav a,
.footer-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.footer-nav a:hover {
  color: var(--rust);
}

.sun-mark {
  width: 65px;
  height: 65px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
}

/* ==============================
   HERO
   ============================== */

.hero {
  position: relative;

  min-height: 1000px;

  overflow: hidden;

  border-bottom: 1px solid var(--line);

  /* Centers the entire hero composition */
  display: flex;
  align-items: center;
  justify-content: center;
}


/* HERO BACKGROUND IMAGE */

.hero-image {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}


/* SOFT PAPER / LANDSCAPE WASH */

.hero-wash {
  position: absolute;

  inset: 0;

  z-index: 1;

  background:
    linear-gradient(
      90deg,
      rgba(247, 241, 231, 0.66) 0%,
      rgba(247, 241, 231, 0.22) 42%,
      rgba(247, 241, 231, 0.02) 70%
    ),
    linear-gradient(
      180deg,
      rgba(245, 238, 227, 0.10) 0%,
      rgba(245, 238, 227, 0.05) 68%,
      rgba(18, 18, 17, 0.14) 100%
    );
}


/* CENTERED HERO TEXT */

.hero-content {
  position: relative;

  z-index: 2;

  width: min(
    900px,
    88vw
  );

  margin: 0 auto;

  padding:
    90px
    0;

  text-align: center;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;
}


/* SMALL UPPER LABEL */

.kicker,
.section-label {
  color: var(--rust);

  font-size: 0.95rem;

  font-weight: 600;

  letter-spacing: 0.24em;
}

.hero .kicker {
  margin:
    0
    0
    28px;
}


/* ZAPOT.E.K */

.hero h1 {
  margin: 0;

  text-align: center;

  font-size: clamp(
    5rem,
    10vw,
    10rem
  );

  line-height: 0.85;

  letter-spacing: 0.06em;

  font-weight: 500;
}


/* DIVIDING LINE */

.hero-divider {
  width: 100%;
  margin: 18px auto 22px;

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

  gap: 0;
  overflow: visible;
}

.hero-divider img {
  width: 80px;
  height: auto;
  max-width: 80px;
  flex: 0 0 80px;
  display: block;
}

/* Overlap the images so the stairs form one continuous border */
.hero-divider img + img {
  margin-left: -15px;
}


/* CENTRAL QUESTION */

.hero-question {
  max-width: 700px;

  margin:
    0
    auto;

  text-align: center;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: clamp(
    1.7rem,
    3vw,
    2.6rem
  );

  line-height: 1.18;

  font-style: italic;
}


/* ENTER LINK */

.enter-link {
  display: inline-flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 4px;

  margin-top: 28px;

  color: var(--rust);

  font-size: 0.9rem;

  font-weight: 600;

  letter-spacing: 0.25em;

  text-align: center;
}

.enter-link span {
  font-size: 1.35rem;
}


/* BOTANICAL DETAIL */

.botanical-left {
  position: absolute;

  z-index: 2;

  left: 1.25vw;

  top: 95px;

  color: rgba(
    84,
    66,
    48,
    0.65
  );

  writing-mode: vertical-rl;

  font-size: 4.2rem;
}

/* ==============================
   ABOUT / WHAT IS ZAPOT.E.K?
   ============================== */

.split-section {
  max-width: var(--max);

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    0.95fr
    1.3fr;

  height: 700px;

  align-items: stretch;

  overflow: hidden;
}


/* TEXT SIDE */

.section-copy {
  padding:
    44px
    6vw
    38px
    5vw;
}

.lead-copy {
  max-width: 560px;

  font-size: clamp(
    1.05rem,
    1.3vw,
    1.3rem
  );
}

.text-link {
  display: inline-block;

  margin-top: 20px;

  color: var(--rust);

  font-size: 0.95rem;
}


/* IMAGE SIDE */

.ink-image {
  position: relative;

  height: 100%;

  overflow: hidden;
}

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

  position: absolute;

  z-index: 2;

  inset:
    0
    auto
    0
    0;

  width: 12%;

  background:
    linear-gradient(
      90deg,
      var(--paper) 0%,
      rgba(241, 237, 229, 0) 100%
    );
}

.ink-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;
}

/* ==============================
   PRINCIPLES
   ============================== */

.principles {
  display: grid;

  grid-template-columns:
    0.8fr
    4.2fr;

  gap: 18px;

  padding:
    34px
    4vw
    30px;

  border-top:
    1px solid
    var(--line);

  border-bottom:
    1px solid
    var(--line);

  background:
    linear-gradient(
      rgba(255, 255, 255, 0.22),
      rgba(255, 255, 255, 0.22)
    ),
    var(--paper-deep);
}


/* LEFT INTRO */

.principles-intro {
  padding-right: 30px;
}

.principles-intro h2,
.work-intro h2,
.closing-copy h2,
.questions-heading h2 {
  margin-bottom: 10px;

  color: var(--rust);

  font-size: clamp(
    2rem,
    3vw,
    3.5rem
  );

  line-height: 0.95;
}

.short-rule {
  width: 64px;

  height: 1px;

  margin:
    14px
    0
    16px;

  background: var(--rust);
}

.principles-intro p {
  max-width: 220px;

  margin-bottom: 0;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 1.12rem;

  line-height: 1.4;
}


/* FIVE PRINCIPLES */

.principle-list {
  display: grid;

  grid-template-columns:
    repeat(
      5,
      minmax(0, 1fr)
    );
}

.principle {
  position: relative;

  padding:
    0
    28px;

  border-left:
    1px solid
    var(--line);
}

.principle:first-child {
  border-left: none;
}


/* SYMBOL */

.principle-mark {
  min-height: 38px;

  margin-bottom: 2px;

  color: var(--rust-deep);

  text-align: center;

  font-size: 1.8rem;

  line-height: 1;
}


/* PRINCIPLE TITLE */

.principle h3 {
  min-height: 54px;

  margin-bottom: 8px;

  color: var(--rust-deep);

  text-align: center;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 1.02rem;

  line-height: 1.08;

  letter-spacing: 0.03em;
}


/* BODY COPY */

.principle p {
  margin-bottom: 0;

  font-size: 0.91rem;

  line-height: 1.48;
}


/* TRANSLATION */

.principle-translation {
  min-height: 32px;

  margin-bottom: 8px !important;

  text-align: center;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-style: italic;

  font-size: 1rem !important;

  line-height: 1.25;
}

/* ==============================
   THE WORK
   ============================== */

.work-section {
  display: grid;

  grid-template-columns:
    0.95fr
    4.05fr;

  border-bottom:
    1px solid
    var(--line);
}

.work-intro {
  padding:
    48px
    42px
    36px
    5vw;
}

.work-intro p {
  max-width: 220px;
}

.work-grid {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      1fr
    );
}

.work-card {
  position: relative;

  min-height: 390px;

  overflow: hidden;

  border-left:
    4px solid
    var(--paper);

  color: white;
}

.work-card img {
  position: absolute;

  inset: 0;

  height: 100%;

  object-fit: cover;

  transition:
    transform
    500ms
    ease;
}

.work-card:hover img {
  transform: scale(1.035);
}

.card-overlay {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.10) 0%,
      rgba(10, 10, 10, 0.72) 88%
    );
}

.card-copy {
  position: absolute;
  z-index: 2;

  left: 28px;
  right: 24px;
  bottom: 26px;
}

.card-copy h3 {
  margin-bottom: 7px;

  font-size: 1.55rem;

  line-height: 1;
}

.card-copy p {
  margin-bottom: 0;

  font-size: 0.92rem;

  line-height: 1.45;
}

/* ==============================
   QUESTIONS
   ============================== */

.questions-section {
  display: grid;

  /*
     Matches THE WORK:
     left intro area = 0.95
     everything else = 4.05
  */
  grid-template-columns:
    0.95fr
    3.03fr
    1.02fr;

  min-height: 280px;

  background: var(--dark);

  color: var(--white);
}


/*
   This allows the heading and question list
   to participate directly in the main grid.
*/
.questions-copy {
  display: contents;
}


/* LEFT COLUMN — aligns with THE WORK intro */

.questions-heading {
  display: flex;

  align-items: center;

  padding:
    34px
    42px
    34px
    5vw;
}

.questions-heading h2 {
  margin: 0;

  color: var(--white);

  font-size: clamp(
    2rem,
    3vw,
    3.2rem
  );

  line-height: 0.95;
}


/* MIDDLE AREA — the four questions */

.question-list {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      1fr
    );

  align-items: center;

  padding:
    34px
    0;
}

.question-list p {
  margin: 0;

  padding:
    10px
    26px;

  border-left:
    1px solid
    rgba(
      154,
      63,
      32,
      0.75
    );

  font-size: 0.96rem;
}

.question-list p:first-child {
  border-left: none;
}


/* RIGHT IMAGE */

.questions-image {
  width: 100%;

  height: 100%;

  object-fit: cover;
}

/* ==============================
   CLOSING PANELS
   ============================== */

.closing-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      1fr
    );

  border-bottom:
    1px solid
    var(--line);
}

.closing-panel {
  min-height: 300px;

  display: flex;

  align-items: center;

  border-right:
    1px solid
    var(--line);

  background: var(--paper);
}

.closing-panel:last-child {
  border-right: none;
}

.closing-copy {
  width: 100%;

  padding:
    48px
    4vw;
}

.closing-copy h2 {
  margin-bottom: 14px;

  font-size: 2.2rem;

  line-height: 1;
}

.closing-copy p {
  max-width: 360px;

  margin-bottom: 0;

  font-size: 0.95rem;

  line-height: 1.55;
}
/* ==============================
   FOOTER
   ============================== */

.site-footer {
  min-height: 100px;

  display: grid;

  grid-template-columns:
    1.5fr
    1fr
    0.8fr;

  align-items: center;

  gap: 28px;

  padding:
    22px
    4vw;
}

.footer-message {
  display: flex;

  align-items: center;

  gap: 18px;
}

.footer-message p {
  margin: 0;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 1.08rem;
}

.footer-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.footer-nav {
  display: flex;

  justify-content: center;

  gap: 26px;

  font-size: 0.85rem;
}

.copyright {
  justify-self: end;

  margin: 0;

  font-size: 0.78rem;

  letter-spacing: 0.12em;
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 1180px) {

  .principles {
    grid-template-columns: 1fr;

    padding:
      26px
      4vw
      24px;
  }

  .principle-list {
    grid-template-columns:
      repeat(
        2,
        1fr
      );
  }

  .principle {
    padding:
      14px
      24px;

    border-left: 0;

    border-top:
      1px solid
      var(--line);
  }

  .principle-mark {
    min-height: 32px;

    margin-bottom: 0;
  }

  .principle h3 {
    min-height: 48px;

    margin-bottom: 5px;
  }

  .principle-translation {
    min-height: 28px;

    margin-bottom: 5px !important;
  }

  .principle p {
    margin-bottom: 0;
  }


  /* KEEP YOUR EXISTING WORK / QUESTIONS RULES BELOW */

  .work-section {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns:
      repeat(
        2,
        1fr
      );
  }

  .work-card {
    border-left: 0;

    border-top:
      4px solid
      var(--paper);
  }

  .questions-section {
    grid-template-columns: 1fr;
  }

  .questions-image {
    max-height: 320px;
  }

  .closing-grid {
    grid-template-columns: 1fr;
  }

  .closing-panel {
    border-right: none;
  }

}

@media (max-width: 820px) {

  .site-header {
    grid-template-columns:
      1fr
      auto;
  }

  .sun-mark {
    display: none;
  }

  .menu-toggle {
    display: block;

    justify-self: end;

    border: 0;

    background: transparent;

    color: var(--ink);

    font: inherit;
  }

  .site-nav {
    display: none;

    position: absolute;

    top: 84px;
    left: 0;
    right: 0;

    flex-direction: column;

    gap: 0;

    padding:
      16px
      4vw
      22px;

    background: var(--paper);

    border-bottom:
      1px solid
      var(--line);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .hero {
    min-height: 1000px;
  }

  .hero-content {
    width: auto;

    padding:
      100px
      8vw
      80px;
  }

  .hero h1 {
    font-size: clamp(
      4.1rem,
      18vw,
      7rem
    );
  }

  .hero-question {
    max-width: 580px;
  }

  .botanical-left {
    display: none;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .ink-image {
    min-height: 360px;
  }

  .principle-list {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: 340px;
  }

  .questions-copy {
    grid-template-columns: 1fr;

    gap: 10px;
  }

  .question-list {
    grid-template-columns: 1fr;
  }

  .question-list p {
    border-left: 0;

    border-top:
      1px solid
      rgba(
        154,
        63,
        32,
        0.75
      );

    padding: 16px 0;
  }

  .question-list p:first-child {
    border-top: 0;
  }

  .closing-panel {
    grid-template-columns: 1fr;
  }

  .closing-panel img {
    max-height: 300px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;

    flex-wrap: wrap;
  }

  .copyright {
    justify-self: start;
  }