@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
  --bg: #fafaf8;
  --text: #1a1a18;
  --muted: #5a5854;
  --faint: #a8a49d;
  --border: #e8e5e0;
  --surface: #f3f1ed;
  --accent: #1a7a40;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* two container widths per guideline section 2: reading pages 680px, home/index up to 1040px */
.container { max-width: 680px; margin: 0 auto; padding: 72px 24px 120px; }
.container-wide { max-width: 1040px; margin: 0 auto; padding: 72px 24px 120px; }

/* global nav — sitemap section 4: Home · Notes · Thinking · Journeys · About · [Subscribe] */
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 56px; font-size: 14.5px; }
.site-nav a { color: var(--muted); border-bottom: none; }
.site-nav a:hover, .site-nav a.current { color: var(--accent); }
.site-nav a.subscribe { color: var(--accent); font-weight: 500; }

.meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.meta span {
  font-size: 12.5px; letter-spacing: 0.4px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 100px; padding: 4px 13px;
}

h1 {
  font-family: 'Lora', serif; font-size: 38px; font-weight: 600;
  line-height: 1.3; letter-spacing: -0.5px; margin-bottom: 18px;
}
h1.hero { font-size: 44px; }

.deck { font-size: 19px; font-weight: 300; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }

h2 {
  font-family: 'Lora', serif; font-size: 25px; font-weight: 600;
  line-height: 1.4; margin-top: 56px; margin-bottom: 18px;
}

h3 { font-family: 'Lora', serif; font-size: 20px; font-weight: 600; line-height: 1.4; margin-top: 40px; margin-bottom: 14px; }

p { margin-bottom: 22px; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(26,122,64,0.25); }
a:hover { border-bottom-color: var(--accent); }
strong { font-weight: 700; }
em { font-style: italic; }

ul.clean { list-style: none; margin: 0 0 22px; }
ul.clean li { padding-left: 22px; position: relative; margin-bottom: 10px; }
ul.clean li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

blockquote {
  border-left: 2px solid var(--accent); padding: 4px 0 4px 24px; margin: 34px 0;
  font-family: 'Lora', serif; font-style: italic; font-size: 21px; line-height: 1.65; color: var(--text);
}

/* post body components — for future /notes /thinking /journeys posts, per wr-learning-notes skill */
ol.principles { list-style: none; counter-reset: principle; margin: 0 0 22px 0; }
ol.principles > li { counter-increment: principle; margin-bottom: 30px; padding-left: 44px; position: relative; }
ol.principles > li::before {
  content: counter(principle); position: absolute; left: 0; top: 2px;
  font-family: 'Lora', serif; font-weight: 700; font-size: 19px; color: var(--accent);
  width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--surface);
}
ol.principles > li strong.principle-title { display: block; font-family: 'Lora', serif; font-size: 18.5px; margin-bottom: 8px; }
.commentary { color: var(--muted); font-style: italic; }

/* fig box — used for post appendices AND empty states on this site */
.fig { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 24px 28px; margin: 34px 0; }
.fig .fig-label { font-family: 'Lora', serif; font-style: italic; font-size: 14px; color: var(--muted); margin-bottom: 12px; display: block; }

hr { border: none; border-top: 1px solid var(--border); margin: 64px 0 40px; }

.related { font-size: 15.5px; color: var(--muted); }
.related .related-title { font-family: 'Lora', serif; font-weight: 600; font-size: 17px; color: var(--text); margin-bottom: 14px; }
.related ol { margin-left: 20px; }
.related li { margin-bottom: 8px; }

.footer-note { font-style: italic; color: var(--faint); font-size: 15px; line-height: 1.75; margin-top: 40px; }

/* post card — component 3 of the guideline, exact spec */
.card { display: block; border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; transition: transform .15s; }
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card .c-meta { font-size: 12px; color: var(--faint); margin-bottom: 8px; }
.card .c-title { font-family: 'Lora', serif; font-size: 21px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; color: var(--text); }
.card .c-deck { color: var(--muted); font-size: 15px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 8px 0 40px; }
.card-list { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 40px; }

/* subscribe strip — bottom of home, per Page specs */
.subscribe-strip { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px 28px; margin-top: 64px; }
.subscribe-strip h3 { margin-top: 0; }
.subscribe-strip form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.subscribe-strip input[type="email"] {
  flex: 1; min-width: 200px; font-family: 'DM Sans', sans-serif; font-size: 15px;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text);
}
.subscribe-strip button {
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; color: #fff;
  background: var(--accent); border: none; border-radius: 6px; padding: 10px 20px; cursor: pointer;
}
.reassurance { font-size: 13.5px; color: var(--faint); margin-top: 10px; }

site-footer, .site-footer { margin-top: 80px; border-top: 1px solid var(--border); padding-top: 24px; font-size: 14px; color: var(--faint); display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--faint); }
