
*, *::before, *::after { box-sizing: border-box; }

:root {
  --brown-dark: rgb(64, 44, 36);
  --brown-text: rgb(51, 0, 0);
  --taupe: rgb(201, 187, 182);
  --cream: rgb(227, 222, 220);
  --sand: rgb(223, 213, 198);
  --accent: #b08968;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, Palatino, "Times New Roman", Times, serif;
  color: var(--brown-text);
  background: linear-gradient(180deg, var(--cream) 0%, var(--taupe) 100%);
  background-attachment: fixed;
  line-height: 1.75;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  background: var(--brown-dark);
  background-image: linear-gradient(135deg, rgb(64, 44, 36) 0%, rgb(96, 68, 56) 100%);
  color: var(--sand);
  padding: 72px 20px 64px;
  text-align: center;
  border-bottom: 4px solid var(--accent);
  position: relative;
}

.site-header::after {
  content: "";
  display: block;
  width: 90px;
  height: 2px;
  background: var(--sand);
  margin: 28px auto 0;
  opacity: .7;
}

.site-header h1 {
  margin: 0 auto;
  max-width: 900px;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: normal;
  letter-spacing: .03em;
  line-height: 1.25;
  text-decoration: none;
  color: var(--sand);
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

/* Layout */
main {
  max-width: 960px;
  margin: -34px auto 0;
  padding: 0 18px 60px;
  position: relative;
}

article {
  background: #fff;
  background: rgba(255,255,255,.94);
  border-radius: 10px;
  padding: clamp(24px, 5vw, 56px);
  box-shadow: 0 10px 35px rgba(64,44,36,.18);
  border-top: 4px solid var(--accent);
  overflow-wrap: break-word;
}

article h2, article h3, article h4 {
  color: var(--brown-dark);
  line-height: 1.3;
  margin: 1.6em 0 .6em;
}
article h2 { font-size: 1.7rem; padding-bottom: .3em; border-bottom: 1px solid var(--taupe); }
article h3 { font-size: 1.35rem; }
article h4 { font-size: 1.15rem; }
article > :first-child { margin-top: 0; }
article p { margin: 0 0 1.2em; text-align: justify; hyphens: auto; }
article ul, article ol { padding-left: 1.4em; margin: 0 0 1.2em; }
article li { margin-bottom: .4em; }
article img { max-width: 100%; height: auto; border-radius: 6px; }
article table { width: 100%; border-collapse: collapse; margin: 1.4em 0; display: block; overflow-x: auto; }
article th, article td { padding: 10px 14px; border: 1px solid var(--taupe); text-align: left; }
article th { background: var(--cream); }
article blockquote {
  margin: 1.5em 0;
  padding: 12px 22px;
  border-left: 4px solid var(--accent);
  background: var(--cream);
  font-style: italic;
}
article a { color: #7a4e2d; }

/* Transition paragraphs */
.transition {
  margin: 32px 0 0;
  padding: clamp(20px, 4vw, 36px);
  background: var(--cream);
  border-left: 5px solid var(--brown-dark);
  border-radius: 8px;
  overflow-wrap: break-word;
}
.transition p { margin: 0 0 1em; }
.transition > :last-child { margin-bottom: 0; }

/* Links */
.links-block {
  margin: 32px 0 0;
  padding: clamp(22px, 4vw, 40px);
  background: var(--brown-dark);
  color: var(--sand);
  border-radius: 10px;
  border: 1px solid rgba(223,213,198,.25);
  box-shadow: 0 10px 30px rgba(64,44,36,.3);
  overflow: hidden;
}
.links-block h3 {
  margin: 1.6em 0 .7em;
  padding-bottom: .4em;
  font-size: 1.3rem;
  font-weight: normal;
  letter-spacing: .04em;
  color: #fff;
  border-bottom: 1px solid rgba(223,213,198,.35);
}
.links-block h3:first-child { margin-top: 0; }
.links-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 2;
  column-gap: 40px;
}
.links-block li {
  break-inside: avoid;
  padding: 7px 0 7px 18px;
  position: relative;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.links-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.links-block a {
  color: var(--sand);
  text-decoration: none;
  border-bottom: 1px dotted rgba(223,213,198,.5);
  transition: color .2s, border-color .2s;
}
.links-block a:hover, .links-block a:focus {
  color: #fff;
  border-bottom-color: #fff;
}

/* Responsive */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .site-header { padding: 52px 16px 46px; }
  main { margin-top: -24px; padding: 0 12px 40px; }
  article p { text-align: left; }
  .links-block ul { column-count: 1; }
}
