@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --bg: #0e0e0c;
  --surface: #16150f;
  --text: #e9e4d6;
  --muted: #9c9787;
  --faint: #6d6a5f;
  --line: #2c2b24;
  --accent: #c7a86a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "EB Garamond", serif;
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* HEADER */
.site-header {
  max-width: 1080px;
  margin: auto;
  padding: 34px 34px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: "EB Garamond", serif;
  font-size: 22px;
  letter-spacing: .16em;
  color: var(--text);
}
nav { display: flex; gap: 30px; font-size: 15px; letter-spacing: .04em; color: var(--muted); }
nav a:hover, .text-link:hover { color: var(--accent); }

/* HERO */
.hero {
  max-width: 1080px;
  margin: auto;
  padding: 150px 34px 160px;
}
.eyebrow, .section-label {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .28em;
  font-weight: 500;
  text-transform: uppercase;
  font-family: "EB Garamond", serif;
}
.hero h1 {
  font-family: "EB Garamond", serif;
  font-weight: 500;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 1.06;
  margin: 26px 0 34px;
  letter-spacing: -.01em;
  color: var(--text);
}
.hero .lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 21px;
  font-style: italic;
}
.hero .writ {
  margin-top: 46px;
  color: var(--faint);
  font-style: italic;
  font-size: 18px;
  letter-spacing: .02em;
}

/* SECTIONS */
.section {
  border-top: 1px solid var(--line);
  max-width: 1080px;
  margin: auto;
  padding: 100px 34px;
}
.section.alt {
  max-width: none;
  background: var(--surface);
  padding-left: max(34px, calc((100vw - 1012px)/2));
  padding-right: max(34px, calc((100vw - 1012px)/2));
}
.section-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 70px;
  margin-top: 30px;
}
h2 {
  font-family: "EB Garamond", serif;
  font-weight: 500;
  font-size: 40px;
  margin: 0;
  color: var(--text);
}

/* BOOKS */
.book {
  padding: 0 0 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.book:last-child { margin-bottom: 0; }
.book-number {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.book h3 {
  font-family: "EB Garamond", serif;
  font-weight: 500;
  font-size: 30px;
  margin: 0 0 4px;
  color: var(--text);
}
.book .subtitle {
  color: var(--accent);
  font-style: italic;
  font-size: 17px;
  margin: 0 0 16px;
}
.book p { color: var(--muted); margin: 0 0 14px; }
.book .quote {
  color: var(--faint);
  font-style: italic;
  border-left: 1px solid var(--line);
  padding-left: 18px;
  margin: 18px 0 0;
}

/* O MENI */
.large { font-size: 23px; color: var(--text); max-width: 680px; font-style: italic; }
.section p { color: var(--muted); }

/* KONTAKT */
.contact h2 { margin: 18px 0; font-size: clamp(32px, 5vw, 54px); }
.email { color: var(--accent); font-size: 20px; letter-spacing: .02em; }
.email:hover { color: var(--text); }

/* FOOTER */
footer {
  max-width: 1080px;
  margin: auto;
  padding: 30px 34px 46px;
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-size: 13px;
  letter-spacing: .04em;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  body { font-size: 18px; }
  .site-header { flex-direction: column; gap: 18px; padding: 26px 22px; }
  nav { gap: 18px; flex-wrap: wrap; }
  .hero { padding: 90px 22px 100px; }
  .section { padding: 70px 22px; }
  .section.alt { padding-left: 22px; padding-right: 22px; }
  .section-grid { grid-template-columns: 1fr; gap: 26px; }
  footer { flex-direction: column; gap: 8px; padding: 26px 22px 36px; }
}
