/* ==========================================================================
   Eureka T'ai Chi — shared stylesheet for every page
   Everything you are likely to want to change lives in :root below.
   ========================================================================== */

:root {
  /* --- Colors (taken from the live WordPress site) --- */
  --color-page-bg:    #FFFFFF;  /* page background                       */
  --color-header-bg:  #000000;  /* black bar behind the logo             */
  --color-footer-bg:  #1F1F1F;  /* dark grey footer                      */
  --color-footer-txt: #CCCCCC;  /* footer text                           */
  --color-text:       #6B6B6B;  /* general text                          */
  --color-body-text:  #000000;  /* article body copy                     */
  --color-title:      #444444;  /* post titles                           */
  --color-link:       #C0392B;  /* links (the site's brick red)          */
  --color-rule:       #E8E8E8;  /* dividers and button borders           */

  /* --- Type --- */
  --font-ui:   "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: Verdana, Geneva, sans-serif;

  --size-title: 32px;
  --size-body:  14px;   /* the live site used 12px. 14px is easier to read;
                           set this back to 12px for a pixel-exact match.   */

  /* --- Layout --- */
  --content-max: 820px;  /* the centred column. The original was 780px of
                            content plus a 390px sidebar; with the sidebar
                            gone the column is centred instead.             */
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-page-bg);
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-link); }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* -------------------------------------------------------------- header -- */
/* The "Contact Us" link has been removed. If you ever want a nav back,
   drop a <nav> in beside .site-header__brand and give it margin-left:auto. */

.site-header {
  background: var(--color-header-bg);
  padding: 12px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
}

.site-header__brand img {
  width: 300px;          /* the logo's natural size on the live site */
  max-width: 70vw;
}

/* ---------------------------------------------------- intro (EDIT ME) --- */
/* The editable introduction block on the home page. */

.intro {
  margin: 50px 0 10px;
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.8;
  color: var(--color-body-text);
}

.intro__heading {
  font-family: var(--font-ui);
  font-size: var(--size-title);
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-title);
  margin: 0 0 20px;
}

.intro p { margin: 0 0 1.2em; }
.intro p:last-child { margin-bottom: 0; }

/* --------------------------------------------------- home page: posts -- */

main.container { padding-bottom: 40px; }

.post { margin: 50px 0; }

.post__thumb { display: block; margin-bottom: 20px; }
.post__thumb img { max-width: 500px; }

.post__title {
  font-family: var(--font-ui);
  font-size: var(--size-title);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 12px;
}
.post__title a { color: var(--color-title); text-decoration: none; }
.post__title a:hover { color: var(--color-link); }

.post__meta,
.entry__meta {
  font-size: 14px;
  color: var(--color-text);
  margin: 0 0 16px;
}
.post__meta span + span::before,
.entry__meta span + span::before { content: "\00a0\00a0·\00a0\00a0"; }

.post__excerpt {
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.8;
  color: var(--color-body-text);
  margin: 0 0 20px;
}

/* "Continue reading" button — matches the original bordered pill. */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-body-text);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--color-rule);
  border-radius: 4px;
  padding: 6px 12px;
}
.btn:hover { background: #F7F7F7; color: var(--color-link); }

.divider {
  border: 0;
  border-top: 1px solid var(--color-rule);
  margin: 50px 0;
}

/* ------------------------------------------------ single post pages ----- */

.entry { margin: 50px 0; }

.entry__title {
  font-family: var(--font-ui);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-title);
  margin: 0 0 12px;
}

.entry p,
.entry ul,
.entry ol,
.entry blockquote {
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.8;
  color: var(--color-body-text);
}

.entry p { margin: 0 0 1.3em; }

.entry h2, .entry h3, .entry h4 {
  font-family: var(--font-ui);
  color: var(--color-title);
  line-height: 1.25;
  margin: 1.6em 0 .6em;
}
.entry h2 { font-size: 26px; font-weight: 500; }
.entry h3 { font-size: 21px; font-weight: 500; }
.entry h4 { font-size: 17px; font-weight: 600; }

.entry blockquote {
  margin: 1.5em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--color-rule);
  color: var(--color-text);
}

.entry img { margin: 1.5em 0; }
.entry figure { margin: 1.5em 0; }
.entry figcaption { font-size: 12px; color: var(--color-text); margin-top: .5em; }

.post__lead { margin: 0 0 1.8em; }

/* Responsive 16:9 wrapper for the YouTube embed. */
.video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 1.8em 0;
  background: #000;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.back { margin: 40px 0 0; font-size: 14px; }
.back a { text-decoration: none; }
.back a:hover { text-decoration: underline; }

/* -------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-txt);
  padding: 24px 0;
  margin-top: 50px;
  font-size: 13px;
}
.site-footer p { margin: 0; }

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 700px) {
  :root { --size-title: 26px; }
  .entry__title { font-size: 28px; }
  .post { margin: 36px 0; }
  .divider { margin: 36px 0; }
  .intro { margin-top: 36px; }
}
