/* ============================== */
/* APK LAW – COMPLETE STYLE SHEET */
/* ============================== */

:root {
  color-scheme: light only;
}

/* ---------- Base ---------- */

body {
  margin: 0;
  padding: 0;

  background: #f4f2ec;
  background-image: url("../assets/paper-grain.png");
  background-size: 1400px;
  background-repeat: repeat;

  color: #2b2b2b;
  font-family: "EB Garamond", serif;
  line-height: 1.25;
}

/* reading column */

main {
  max-width: 735px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

header {
  text-align: center;
  padding-top: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #ded8cc;
}

/* logo */

.logo-wrap img {
  width: 100px;
  display: block;
  margin: 0 auto -16px auto;
  filter: contrast(1);
}

/* site title (APK Law) */

.site-title {
  font-family: "Playfair Display", serif;
  font-size: 1.375rem;
  font-weight: 950;
  letter-spacing: 0.10em;
  margin: 0.4rem 0 0.3rem 0;
  text-align: center;
  position: relative;
  display: inline-block;
  padding: 0 22px;
}

/* ---------- Sections ---------- */

.section-block {
  margin-top: 1.3rem;
  margin-bottom: 1.3rem;
}

/* section headings */

.section-block h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.125rem;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}

/* elegant gold divider under headings */

.section-block h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    #c8a46b,
    transparent
  );
  margin: 0.35rem auto 0.6rem auto;
}

/* paragraphs */

.section-block p {
  margin-top: 0.3rem;
  margin-bottom: 0.6rem;
  text-align: justify;
  font-size: 1rem;
}

/* email styling – black text with gold underline */

.section-block a {
  color: #2b2b2b;
  text-decoration: none;
  border-bottom: 1px solid #c8a46b;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.section-block a:hover {
  color: #c8a46b;
  border-bottom: 1px solid #c8a46b;
}

/* divider between sections */

.section-sep {
  max-width: 750px;
  margin: 1rem auto;
  border: none;
  border-top: 1px solid #ddd8ce;
}

/* ---------- Browse Button ---------- */

.btn-browse {
  display: block;
  width: fit-content;
  margin: 0.9rem auto;
  padding: 10px 26px;

  border: 1px solid #c8a46b;
  background: transparent;

  font-family: "EB Garamond", serif;
  letter-spacing: 2px;
  font-size: 0.889rem;
  text-transform: none;

  color: #2a2621;
  text-decoration: none;

  transition: color 0.25s ease;
}

/* hover – text turns gold */

.btn-browse:hover {
  color: #c8a46b;
}

/* ---------- Footer ---------- */

footer {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid #ded8cc;
  font-size: 0.875rem;
  color: #666;
}

/* ================================================= */
/* ---------- ARTICLE ARCHIVE (INDEX PAGE) ---------- */
/* ================================================= */

/* back link */

.back-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0.4rem;

  font-family: "EB Garamond", serif;
  font-size: 1rem;
  letter-spacing: 1px;

  color: #777;
  text-decoration: none;
}

.back-link:hover {
  color: #c8a46b;
}

/* archive heading */

.section-heading {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 0.25rem;
}

/* elegant divider under archive heading */

.section-heading::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    #c8a46b,
    transparent
  );
  margin: 0.35rem auto 0.7rem auto;
}

/* archive container */

.archive-list {
  max-width: 735px;
  margin: 1.75rem auto 0 auto;
}

/* article rows */

.archive-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #ddd8ce;
}

.archive-list li {
  border-bottom: 1px solid #ddd8ce;
}

/* row layout */

.archive-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0;
  text-decoration: none;
  color: #2b2b2b;
  font-family: "EB Garamond", serif;
  transition: color 0.2s ease;
}

.archive-list a:hover {
  color: #c8a46b;
}

/* year follows title colour on hover */

.archive-list a:hover .art-year {
  color: #c8a46b;
}

/* article title */

.art-title {
  font-size: 1.0625rem;
  line-height: 1.4;
}

/* publication year */

.art-year {
  font-size: 0.875rem;
  color: #888;
  transition: color 0.2s ease;
}

/* ===================================== */
/* ---------- ARTICLE PAGE -------------- */
/* ===================================== */

/* Article title layout */

.article-title {
  max-width: 700px;
  margin: 40px auto 10px auto;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 1.375rem;
  line-height: 1.3;
}

.article-date {
  text-align: center;
  font-size: 15px;
  color: #777;
  margin: 0 auto 22px auto;
}

/* Article body container */

.article-body {
  max-width: 735px;
  margin: 60px auto;
  padding: 0 20px;
  font-family: "EB Garamond", serif;
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* Article headings inside body */

.article-body h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 14px;
}

/* Paragraph formatting */

.article-body p {
  margin-bottom: 1.25rem;
  text-align: justify;
  hyphens: auto;
}

/* case law / citations */

.case-law {
  font-style: italic;
  line-height: inherit;
}

/* statutory or contractual quotation blocks */

blockquote {
  font-style: italic;
  margin: 20px 40px;
  color: #444;
}

/* Disclaimer */

.article-disclaimer {
  max-width: 720px;
  margin: 80px auto 40px auto;
  padding-top: 20px;

  border-top: 1px solid #ddd8ce;

  font-size: 0.8125rem;
  font-style: italic;
  color: #666;
  line-height: 1.5;
}

.article-disclaimer p {
  margin: 0;
}
