:root{
  --bg:#efe9dd;
  --paper:#f8f3ea;
  --ink:#173026;
  --muted:#5d675c;
  --line:rgba(23,48,38,.14);
  --accent:#9a6b2f;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.55;
}

/* GLAVA */

.site-header{
  position:fixed;
  inset:0 0 auto 0;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:20;
  background:rgba(248,243,234,.88);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(23,48,38,.08);
}

.nav{
  width:min(1160px,calc(100vw - 44px));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:260px;
  color:var(--ink);
  text-decoration:none;
}

.brand-logo{
  width:28px;
  height:28px;
  object-fit:contain;
  display:block;
  flex:0 0 28px;
}

.brand-text strong{
  display:block;
  font-family:Georgia,"Times New Roman",serif;
  font-size:15px;
  letter-spacing:.01em;
  font-weight:700;
}

.brand-text span{
  display:block;
  font-size:10px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted);
  margin-top:1px;
}

.links{
  display:flex;
  gap:28px;
  font-size:12px;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.links a{
  color:var(--ink);
  text-decoration:none;
  opacity:.72;
  position:relative;
  padding-bottom:4px;
}

.links a:hover,
.links a.active{
  opacity:1;
}

.links a.active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background:rgba(23,48,38,.42);
}

/* HERO */

.hero{
  min-height:700px;
  position:relative;
  display:flex;
  align-items:flex-start;
  overflow:hidden;
  padding-top:58px;
  padding-bottom:24px;
  border-bottom:none;
}

.hero::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:150px;
  background:linear-gradient(
    180deg,
    rgba(248,243,234,0) 0%,
    rgba(248,243,234,.42) 52%,
    rgba(248,243,234,.82) 78%,
    var(--paper) 100%
  );
  z-index:1;
  pointer-events:none;
}

.hero-image{
  position:absolute;
  inset:0;
  z-index:0;
  background-image:
    linear-gradient(90deg,
      rgba(239,233,221,.98) 0%,
      rgba(239,233,221,.96) 10%,
      rgba(239,233,221,.92) 18%,
      rgba(239,233,221,.82) 28%,
      rgba(239,233,221,.64) 40%,
      rgba(239,233,221,.38) 54%,
      rgba(239,233,221,.16) 68%,
      rgba(239,233,221,.06) 100%
    ),
    linear-gradient(180deg,
      rgba(239,233,221,.02) 0%,
      rgba(239,233,221,0) 42%,
      rgba(239,233,221,.30) 100%
    ),
    url("../images/trilogija-hero.png");
  background-repeat:no-repeat;
  background-size:cover, cover, cover;
  background-position:
    center center,
    center center,
    110px 38%;
}

.hero-content{
  position:relative;
  z-index:2;
  width:min(1500px,calc(100vw - 64px));
  margin-left:34px;
  margin-right:auto;
  padding-top:132px;
  display:block;
}

.hero-card{
  max-width:520px;
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
  margin:0;
}

.back-link{
  display:none;
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(23,48,38,.68);
  text-decoration:none;
  margin-bottom:18px;
}

.hero-card .kicker{
  color:var(--accent);
  font-family:Georgia,"Times New Roman",serif;
  font-size:20px;
  letter-spacing:.34em;
  text-transform:uppercase;
  font-weight:400;
  margin-bottom:20px;
}

.hero-card h1{
  font-family:Georgia,"Times New Roman",serif;
  font-size:88px;
  line-height:.88;
  letter-spacing:-.04em;
  color:var(--ink);
  margin:0 0 26px;
}

.hero-card h1::after{
  content:"";
  display:block;
  width:86px;
  height:2px;
  background:rgba(154,107,47,.62);
  margin-top:20px;
}

.hero-lead{
  font-family:Georgia,"Times New Roman",serif;
  font-size:23px;
  line-height:1.28;
  color:#1f3028;
  margin:0 0 24px;
  max-width:430px;
}

.hero-card p{
  font-family:Georgia,"Times New Roman",serif;
  font-size:17px;
  line-height:1.66;
  color:#24342c;
  margin:0;
  max-width:455px;
}

/* OSNOVNI RAZDELKI */

.section{
  padding:88px 0;
}

.wrap{
  width:min(1120px,calc(100vw - 44px));
  margin:0 auto;
}

/* TRILOGIJA */

.trilogy-section{
  padding:92px 0 92px;
  background:var(--paper);
  border-top:1px solid rgba(23,48,38,.04);
  border-bottom:1px solid var(--line);
  scroll-margin-top:110px;
}

.trilogy-section .wrap{
  width:min(1180px,calc(100vw - 60px));
}

.trilogy-layout{
  display:grid;
  grid-template-columns:360px 1fr;
  gap:52px;
  align-items:start;
}

.book-cover{
  display:flex;
  justify-content:center;
  align-items:center;
  width:390px;
  margin-left:-30px;
  margin-top:64px;
  padding:22px 22px 24px;
  background:linear-gradient(180deg,#f5efe6 0%, #f1ebdf 100%);
  border:1px solid rgba(23,48,38,.04);
  box-shadow:0 10px 20px rgba(23,48,38,.03);
  position:sticky;
  top:104px;
}

.book-cover img{
  width:345px;
  max-width:none;
  height:auto;
  display:block;
  background:transparent;
  mix-blend-mode:normal;
  filter:drop-shadow(0 13px 17px rgba(23,48,38,.12));
}

.trilogy-content h2{
  font-family:Georgia,"Times New Roman",serif;
  font-size:40px;
  line-height:1.08;
  letter-spacing:-.03em;
  color:var(--ink);
  margin:0 0 18px;
}

.trilogy-intro{
  max-width:700px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:17px;
  line-height:1.68;
  color:#25362e;
  margin:0 0 54px;
}

.book-list{
  display:block;
  max-width:690px;
}

.book-entry{
  padding:0 0 38px;
  margin:0 0 38px;
  border-bottom:1px solid rgba(23,48,38,.12);
}

.book-entry:last-child{
  margin-bottom:0;
  padding-bottom:0;
  border-bottom:none;
}

.book-label{
  font-size:11px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--accent);
  font-weight:700;
  margin-bottom:12px;
}

.book-entry h3{
  font-family:Georgia,"Times New Roman",serif;
  font-size:31px;
  line-height:1.12;
  letter-spacing:-.02em;
  color:var(--ink);
  margin:0 0 14px;
}

.book-quote{
  display:block;
  max-width:560px;
  padding-left:16px;
  border-left:2px solid rgba(142,31,27,.18);
  font-family:Georgia,"Times New Roman",serif;
  font-size:17px;
  line-height:1.52;
  font-style:italic;
  color:#4d3420;
  margin:0 0 24px;
}

.book-entry p{
  font-family:Georgia,"Times New Roman",serif;
  font-size:16px;
  line-height:1.78;
  color:#223129;
  margin:0;
}

.book-entry p + p{
  margin-top:14px;
}

/* IZDAJANJE */

.release-section{
  padding:68px 0 62px;
  background:var(--bg);
  border-bottom:1px solid rgba(23,48,38,.10);
  text-align:center;
}

.release-section h2{
  font-family:Georgia,"Times New Roman",serif;
  font-size:34px;
  line-height:1.08;
  letter-spacing:-.025em;
  color:var(--ink);
  margin:0 0 22px;
}

.release-section h2::after{
  content:"";
  display:block;
  width:58px;
  height:1px;
  background:rgba(154,107,47,.55);
  margin:15px auto 0;
}

.release-section p{
  max-width:760px;
  margin:0 auto;
  font-family:Georgia,"Times New Roman",serif;
  font-size:16px;
  line-height:1.58;
  color:#223129;
}

/* ZANIMANJE */

.interest-section{
  padding:44px 0 50px;
  background:#e8decd;
  text-align:center;
  border-bottom:none;
}

.interest-section h2{
  display:inline-block;
  position:relative;
  margin:0 0 22px;
  color:var(--ink);
  font-family:Georgia,"Times New Roman",serif;
  font-size:15px;
  line-height:1;
  letter-spacing:.34em;
  text-transform:uppercase;
  font-weight:700;
}

.interest-section h2::after{
  content:"";
  display:block;
  width:58px;
  height:1px;
  background:rgba(154,107,47,.55);
  margin:15px auto 0;
}

.email{
  font-family:Georgia,"Times New Roman",serif;
  font-size:17px;
  line-height:1.4;
  color:#223129;
  font-weight:400;
  margin:0;
}

/* MOBILNI POGLED */

@media (max-width:900px){

  html,
  body{
    max-width:100%;
    overflow-x:hidden;
  }

  .site-header{
    height:58px;
  }

  .nav{
    width:calc(100vw - 28px);
    justify-content:center;
  }

  .links{
    display:none;
  }

  .brand{
    min-width:0;
  }

  .brand-text strong{
    font-size:14px;
  }

  .brand-text span{
    font-size:9px;
    letter-spacing:.14em;
  }

  .hero{
    min-height:680px;
    padding-top:58px;
  }

  .hero-image{
    background-image:
      linear-gradient(90deg,
        rgba(239,233,221,.88) 0%,
        rgba(239,233,221,.76) 42%,
        rgba(239,233,221,.38) 70%,
        rgba(239,233,221,.16) 100%
      ),
      linear-gradient(180deg,
        rgba(239,233,221,.04) 0%,
        rgba(239,233,221,.12) 55%,
        rgba(239,233,221,.42) 100%
      ),
      url("../images/trilogija-hero.png");
    background-repeat:no-repeat;
    background-size:cover;
    background-position:center center;
  }

  .hero-content{
    width:calc(100vw - 44px);
    margin:0 auto;
    padding-top:84px;
  }

  .hero-card{
    max-width:100%;
  }

  .back-link{
    display:inline-block;
  }

  .hero-card .kicker{
    font-size:14px;
    letter-spacing:.30em;
    margin-bottom:12px;
  }

  .hero-card h1{
    font-size:58px;
    line-height:.9;
    letter-spacing:-.045em;
    margin:0 0 20px;
  }

  .hero-lead{
    font-size:22px;
    line-height:1.16;
    max-width:315px;
    margin:0 0 20px;
  }

  .hero-card p{
    font-size:15.5px;
    line-height:1.52;
    max-width:330px;
  }

  .trilogy-section{
    padding:58px 0 62px;
  }

  .trilogy-section .wrap{
    width:calc(100vw - 44px);
  }

  .trilogy-layout{
    display:block;
  }

  .book-cover{
    width:100%;
    margin-left:0;
    margin-top:0;
    margin-bottom:38px;
    padding:18px 18px 20px;
    justify-content:center;
    position:static;
    top:auto;
  }

  .book-cover img{
    width:210px;
    max-width:100%;
  }

  .trilogy-content h2{
    font-size:36px;
    line-height:1.08;
    margin:0 0 18px;
  }

  .trilogy-intro{
    font-size:16px;
    line-height:1.55;
    max-width:100%;
    margin:0 0 32px;
  }

  .book-list{
    max-width:100%;
  }

  .book-entry{
    padding-bottom:28px;
    margin-bottom:28px;
  }

  .book-entry h3{
    font-size:29px;
  }

  .book-quote{
    font-size:16px;
  }

  .book-entry p{
    font-size:15px;
    line-height:1.58;
  }

  .release-section{
    padding:56px 22px 52px;
  }

  .release-section h2{
    font-size:30px;
  }

  .release-section p{
    max-width:100%;
    font-size:15px;
    line-height:1.58;
  }

  .interest-section{
    padding:38px 22px 46px;
  }

  .interest-section h2{
    font-size:12px;
    letter-spacing:.26em;
  }

  .email{
    font-size:16px;
  }
}