/* Bridewell Place Notes — mirror of the Wix design language.
   Playfair Display (serif) for titles, clean sans for body,
   white / ink / grey palette with a restrained red accent. */

:root {
  --ink: #1a1a1a;
  --body: #333333;
  --muted: #6b6b6b;
  --line: #e6e4e2;
  --bg: #ffffff;
  --bg-soft: #faf9f8;
  --accent: #d1362f;
  --accent-dark: #a52822;
  --maxw: 1080px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 18px;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ---------- Header ---------- */
.topbar {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 16px;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.brand {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.nav {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav a.active { color: var(--accent); }

/* ---------- Section labels ---------- */
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 22px;
}

/* ---------- Hero / featured latest ---------- */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }

.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.featured .cover {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-soft);
}
.featured .cover img { width: 100%; height: 100%; object-fit: cover; }
.featured h2 {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.2;
  color: var(--ink);
  margin: 8px 0 14px;
}
.featured h2 a { color: var(--ink); }
.featured h2 a:hover { color: var(--accent); text-decoration: none; }
.meta { color: var(--muted); font-size: 14px; letter-spacing: 0.03em; }
.excerpt { color: var(--body); margin: 14px 0 20px; }

/* ---------- Notes grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.card { display: flex; flex-direction: column; }
.card .cover {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-soft);
  margin-bottom: 16px;
}
.card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .cover img { transform: scale(1.03); }
.card h3 {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 10px;
}
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); text-decoration: none; }
.card .excerpt { font-size: 15px; margin: 0 0 12px; }

.center { text-align: center; }
.btn {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 12px 28px;
  border-radius: 2px;
  transition: all .2s ease;
}
.btn:hover { background: var(--ink); color: #fff; text-decoration: none; }

/* ---------- About blurb ---------- */
.about-blurb { max-width: 720px; margin: 0 auto; text-align: center; }
.about-blurb h2 { font-family: var(--serif); font-size: 30px; color: var(--ink); margin-bottom: 18px; }
.email-img { display: inline-block; margin: 0 auto; max-height: 34px; width: auto; }

/* ---------- Post page ---------- */
.post-header { text-align: center; padding: 60px 0 30px; }
.post-header h1 {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.15;
  color: var(--ink);
  margin: 14px auto 16px;
  max-width: 820px;
}
.post-hero {
  max-width: var(--maxw);
  margin: 0 auto 12px;
  padding: 0 24px;
}
.post-hero img { width: 100%; border-radius: 4px; }
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 30px 24px 70px;
}
.article p { margin: 0 0 22px; }
.article h2 {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--ink);
  margin: 40px 0 14px;
}
.article h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  margin: 32px 0 12px;
}
.article ul, .article ol { margin: 0 0 22px; padding-left: 24px; }
.article li { margin: 0 0 10px; }
.article img { margin: 26px auto; border-radius: 4px; }
.article a { text-decoration: underline; }
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 15px;
}
.article th, .article td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.article th { background: var(--bg-soft); font-weight: 600; color: var(--ink); }
.article iframe { width: 100%; min-height: 420px; border: 0; margin: 26px 0; border-radius: 4px; }

.backlink { display: inline-block; margin-top: 10px; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 44px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .brand-sm {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 8px;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .featured { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .post-header h1 { font-size: 34px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .grid { grid-template-columns: 1fr; }
  .site-header .wrap { justify-content: center; text-align: center; }
  .nav { gap: 18px; }
  .brand { font-size: 26px; }
}
