/* =========================
   ROOT VARIABLES
========================= */
:root {
  --bg: #f8f7f3;
  --surface: #ffffff;
  --surface-soft: #f3efe8;
  --text: #171717;
  --muted: #66635f;
  --line: #d8d3ca;
  --accent: #6e5d4b;
  --accent-dark: #564738;
  --max: 1120px;
  --reading: 760px;
  --wide-reading: 900px;
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.06);
}

/* =========================
   BASE
========================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  color: var(--accent);
}

/* =========================
   LAYOUT
========================= */
.container {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.reading-width {
  width: min(100%, var(--reading));
}

/* =========================
   HEADER
========================= */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(248, 247, 243, 0.92);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
}

/* =========================
   HERO
========================= */
.page-hero {
  padding: 84px 0 36px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.hero-text {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

/* =========================
   SECTIONS
========================= */
.section {
  padding: 36px 0 56px;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin: 0 0 18px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* =========================
   LIST PAGE
========================= */
.list-stack {
  display: grid;
  gap: 16px;
}

.list-item {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px 22px;
}

.list-item-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.list-item h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
}

.tagline {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.list-copy {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.96rem;
  color: var(--muted);
}

/* =========================
   ENTRY / ARTICLE SYSTEM
========================= */

.entry-shell {
  border-top: 1px solid var(--line);
  padding: 40px 0 64px;
}

.entry-layout {
  width: min(calc(100% - 48px), var(--wide-reading));
  margin: 0 auto;
}

.entry-content {
  font-size: 1.12rem;
  line-height: 1.82;
}

.entry-content p {
  margin: 0 0 1.35em;
}

.entry-content h2 {
  margin: 2.3em 0 0.7em;
  font-size: 1.75rem;
  font-weight: 500;
}

.entry-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

/* =========================
   IMAGE SYSTEM (KEY ADDITIONS)
========================= */

/* Base image block */
.entry-image {
  margin: 2.4rem 0;
}

/* Placeholder (used until real images) */
.entry-placeholder {
  min-height: 260px;
  width: 100%;
  padding: 24px;
  border: 1px dashed var(--accent);
  background:
    linear-gradient(rgba(110, 93, 75, 0.04), rgba(110, 93, 75, 0.04)),
    var(--surface-soft);
  display: grid;
  place-items: center;
  text-align: center;
}

.entry-placeholder span {
  max-width: 280px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Caption */
.entry-image figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
}

/* Layout variations */
.entry-image-full {
  width: min(100%, 900px);
  margin-left: auto;
  margin-right: auto;
}

.entry-image-narrow {
  width: min(100%, 560px);
  margin-left: auto;
  margin-right: auto;
}

.entry-image-left,
.entry-image-right {
  width: min(46%, 360px);
  margin-top: 0.5rem;
  margin-bottom: 1.6rem;
}

.entry-image-left {
  float: left;
  margin-right: 28px;
}

.entry-image-right {
  float: right;
  margin-left: 28px;
}

/* Clear floats */
.entry-content::after {
  content: "";
  display: table;
  clear: both;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 42px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .entry-image-left,
  .entry-image-right {
    float: none;
    width: 100%;
    margin: 24px 0;
  }

  .entry-layout {
    width: min(calc(100% - 48px), var(--reading));
  }
}

@media (max-width: 640px) {
  .container,
  .entry-layout {
    width: min(calc(100% - 32px), var(--max));
  }

  h1 {
    font-size: 2.5rem;
  }

  .entry-content {
    font-size: 1.04rem;
    line-height: 1.75;
  }

  .entry-placeholder {
    min-height: 220px;
  }
}

/* =========================
   Socials sizing
========================= */

.social-item img {
  width: 1.75rem;
  height: 1.75rem;
}

.social-links {
  display: flex;
  gap: 24px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.contact-info,
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
}

.contact-note {
  margin-top: 14px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.96rem;
  line-height: 1.5;
  border-radius: 0;
  appearance: none;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row textarea {
  resize: vertical;
  min-height: 160px;
}

.form-button {
  justify-self: start;
  margin-top: 4px;
}
