/* Culzean Castle — heritage editorial theme */
:root {
  --ink: #1e2a3a;
  --ink-soft: #3a4a5f;
  --paper: #faf7f1;
  --surface: #ffffff;
  --line: #e6dfd2;
  --gold: #a67c2e;
  --gold-soft: #c9a45a;
  --teal: #2f6b62;
  --teal-soft: #e8f1ef;
  --red: #9c3b2e;
  --shadow: 0 14px 40px rgba(30, 42, 58, .10);
  --radius: 14px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; color: var(--ink); }
h1 { font-size: 2.4rem; margin: .2em 0 .4em; }
h2 { font-size: 1.7rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.25rem; margin: 1.3em 0 .4em; }

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46em; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.branding { display: flex; align-items: center; gap: 12px; }
.branding .mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink);
  color: var(--gold-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 22px; font-weight: 700;
}
.branding .name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.branding .sub { display: block; font-size: .72rem; color: var(--ink-soft); letter-spacing: .08em; text-transform: uppercase; }

.main-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink); padding: 8px 12px; border-radius: 8px; font-size: .92rem; font-weight: 600;
}
.main-nav a:hover { background: var(--teal-soft); color: var(--teal); text-decoration: none; }
.main-nav a[aria-current="page"] { background: var(--teal); color: #fff; }

.lang-switch { display: flex; align-items: center; gap: 4px; font-size: .85rem; }
.lang-switch a { color: var(--ink-soft); padding: 5px 8px; border-radius: 6px; }
.lang-switch a.active { background: var(--gold); color: #fff; font-weight: 700; }
.lang-switch a:hover { background: var(--gold-soft); color: #fff; text-decoration: none; }

/* Hero */
.hero { position: relative; }
.hero img { width: 100%; height: 420px; object-fit: cover; border-radius: 0; }
.hero .overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(30,42,58,0) 30%, rgba(30,42,58,.78) 100%);
}
.hero .overlay .inner { color: #fff; padding: 40px 24px; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero .kicker { letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--gold-soft); margin: 0 0 6px; }
.hero h1 { color: #fff; margin: 0; font-size: 2.7rem; }
.hero .tagline { color: #e9e4da; max-width: 44em; margin: 10px 0 0; font-size: 1.05rem; }

/* Layout */
.page { padding: 34px 0 60px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 2px 8px rgba(30,42,58,.04); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card img { height: 200px; width: 100%; object-fit: cover; border-radius: 0; }
.card .card-body { padding: 16px 18px 20px; }
.card h3 { margin: .2em 0 .3em; font-size: 1.18rem; }
.card h3 a { color: var(--ink); }
.card p { margin: .3em 0; color: var(--ink-soft); font-size: .95rem; }
.card .tag { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); font-weight: 700; }

.btn {
  display: inline-block; background: var(--gold); color: #fff; padding: 12px 22px;
  border-radius: 8px; font-weight: 700; font-size: .95rem; text-decoration: none;
}
.btn:hover { background: var(--gold-soft); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }

/* Author/editor conversation */
.conversation { margin: 26px 0; }
.voice {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 16px 20px; margin: 14px 0;
}
.voice.editor { border-left-color: var(--teal); }
.voice .who { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.voice.editor .who { color: var(--teal); }
.voice p { margin: .4em 0; }

.people { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.person .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--gold-soft); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.person h3 { margin: 0 0 2px; }
.person .cred { font-size: .82rem; color: var(--teal); font-weight: 600; margin-bottom: 8px; }
.person p { font-size: .92rem; color: var(--ink-soft); margin: .4em 0; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .94rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--ink); color: #fff; font-weight: 600; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #fcfaf5; }

/* Breadcrumb */
.breadcrumbs { font-size: .85rem; color: var(--ink-soft); margin: 18px 0 4px; }
.breadcrumbs a { color: var(--teal); }

/* Notes */
.note {
  background: var(--teal-soft); border: 1px solid #cfe0dc; border-radius: 10px;
  padding: 14px 18px; margin: 18px 0; font-size: .93rem; color: var(--ink-soft);
}
.note strong { color: var(--teal); }

/* Footer */
.site-footer { background: var(--ink); color: #cbd4e0; padding: 46px 0 24px; margin-top: 40px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #cbd4e0; font-size: .92rem; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .84rem; color: #93a0b2; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-contact { margin-top: 26px; font-size: .92rem; color: #cbd4e0; }
.footer-contact a { color: var(--gold-soft); }

/* Responsive */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .people { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero img { height: 300px; }
}
