/* richardbrash.net -- dark theme matched to a screenshot of the live site
   (near-black header, dark maroon hero/sections, brick-red accent, rounded display font). */
:root {
  --bg: #1b1210;
  --text: #f2e9e4;
  --muted: #b7a299;
  --header-bg: #120c0b;
  --header-text: #ffffff;
  --hero-bg: #2a1a17;
  --accent: #ed1c24;
  --accent-dark: #b30e15;
  --panel: #241714;
  --card-bg: #251815;
  --input-bg: #2b1c18;
  --line: #40302a;
  --link: #e2795f;
  --radius: 4px;
  --font: "Avenir Next", Avenir, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, Arial, sans-serif;
  --font-display: "Quicksand", var(--font);
  --measure: 46rem;
  --wide: 68rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; font-weight: 600; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-top: 0; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
p, ul, ol, blockquote { margin: 0 0 1.1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; color: #111; padding: .5rem 1rem; z-index: 100; }

.wrap { width: min(100% - 2rem, var(--wide)); margin-inline: auto; }
.wrap.narrow, .page { max-width: var(--measure); }
.page { width: min(100% - 2rem, var(--measure)); margin: 3rem auto 4rem; }
.wide-page .page { --measure: var(--wide); }

/* ---- header / nav */
.site-header { background: var(--header-bg); color: var(--header-text); position: sticky; top: 0; z-index: 50; }
.bar { width: min(100% - 2rem, var(--wide)); margin-inline: auto; display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.logo { display: flex; flex: none; align-items: center; gap: .6rem; text-decoration: none; color: #fff; }
.logo-mark { width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.1) inset; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text .name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.logo-text .tagline { font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-top: .15rem; }
@media (max-width: 30rem) { .logo-text .tagline { display: none; } }
.site-nav { margin-left: auto; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .15rem; justify-content: flex-end; align-items: center; }
.menu a, .menu .more > button {
  display: block; color: var(--header-text); text-decoration: none; font: inherit; font-size: .9rem;
  background: none; border: 0; padding: .45rem .6rem; cursor: pointer; border-radius: var(--radius); line-height: 1.3;
}
.menu a:hover, .menu .more > button:hover, .menu a[aria-current="page"] { background: rgba(255,255,255,.14); color: #fff; }
.menu .more { position: relative; }
.menu .more > button::after { content: " \25BE"; font-size: .75em; }
.dropdown { display: none; position: absolute; right: 0; top: 100%; min-width: 17rem; background: var(--header-bg); list-style: none; margin: 0; padding: .4rem; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.more.open .dropdown { display: block; }
.dropdown a { padding: .55rem .7rem; }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: .6rem; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

@media (max-width: 62rem) {
  .burger { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--header-bg); padding: .5rem 1rem 1rem; margin: 0; max-height: calc(100vh - 4.25rem); overflow: auto; }
  .site-nav.open { display: block; }
  .menu { flex-direction: column; align-items: stretch; }
  .menu a, .menu .more > button { padding: .7rem .5rem; font-size: 1rem; text-align: left; width: 100%; }
  .menu .more > button { display: none; }
  .dropdown { display: block; position: static; box-shadow: none; padding: 0; min-width: 0; }
}

/* ---- home */
.hero { background: var(--hero-bg); color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; padding: 0; }
.hero-photo { align-self: stretch; }
.hero-photo img { width: 100%; height: 100%; min-height: 24rem; object-fit: cover; display: block; }
.hero-text { padding: 3.5rem 0; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4rem); margin: 0; }
.hero .role { font-size: clamp(1.1rem, 2.2vw, 1.5rem); letter-spacing: .02em; color: #d9c2b8; margin: .4rem 0 1.4rem; font-family: var(--font-display); }
.hero .welcome { margin: 0 0 .6rem; opacity: .8; }
.hero .mission { font-size: 1.15rem; max-width: 34rem; color: #e9ddd8; }
@media (max-width: 52rem) { .hero-inner { grid-template-columns: 1fr; gap: 0; } .hero-photo img { min-height: 18rem; } .hero-text { padding: 1.75rem 0 2.25rem; } }

.section { padding: 3.5rem 0; }
.section.alt { background: var(--panel); }
.section h2 { margin-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: 2.5rem; align-items: start; }
.split.reverse { grid-template-columns: 1fr minmax(0, 15rem); }
.split.reverse > :first-child { order: 2; }
.split img { display: block; width: 100%; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
@media (max-width: 40rem) { .split, .split.reverse { grid-template-columns: 1fr; gap: 1.25rem; } .split.reverse > :first-child { order: 0; } .split img { max-width: 13rem; } }
.subtitle { color: var(--muted); font-size: 1.15rem; margin-top: -.3rem; }
.btn, .subscribe button {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  padding: .65rem 1.4rem; border-radius: var(--radius);
}
.btn:hover, .subscribe button:hover { background: var(--accent-dark); color: #fff; }
.btn.ghost { background: none; color: var(--accent-dark); border: 2px solid var(--accent); padding: .5rem 1.2rem; }
.btn.ghost:hover { background: var(--accent); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.2rem 0; }

.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.books a { text-decoration: none; color: inherit; display: block; }
.books img { width: 100%; max-width: 14rem; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.books strong { display: block; margin-top: .9rem; }
.books span { color: var(--muted); font-size: .95rem; }
@media (max-width: 40rem) { .books { grid-template-columns: 1fr; } }

.testimonial { text-align: center; }
.testimonial blockquote { font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.4; max-width: 44rem; margin: 0 auto 1rem; font-weight: 300; }
.testimonial img { width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; }
.testimonial cite { color: var(--muted); font-style: normal; }
.top-link { text-align: center; margin: 0; padding: 1.2rem; }

/* ---- generic content */
.video { margin: 1.6rem 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { font-size: .95rem; color: var(--muted); margin-top: .5rem; }
.post-img { margin: 1.8rem 0; }
.post-img img, .post-img video { display: block; margin-inline: auto; border-radius: var(--radius); }
.round { border-radius: 50%; }
.lead-img { display: block; width: 100%; border-radius: var(--radius); margin-bottom: 1.5rem; }
.float-right { float: right; margin: 0 0 1rem 1.5rem; max-width: 40%; }
.reviews { margin: 1.5rem 0 2.5rem; }
.reviews blockquote { margin: 0 0 1.6rem; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--accent); }
.reviews blockquote p:last-child { margin-bottom: 0; }
.reviews .who { display: block; margin-top: .5rem; color: var(--muted); font-size: .95rem; }
.eyebrow-h { text-transform: uppercase; letter-spacing: .12em; font-size: .95rem; color: var(--muted); }
.cv-link { margin-top: 1.5rem; }
blockquote { margin-left: 0; padding-left: 1.2rem; border-left: 3px solid var(--line); color: var(--text); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.footnote { font-size: .92rem; color: var(--muted); }
.footnote hr { margin: 2rem 0 1rem; }
.ja { line-height: 1.95; }
.ja h2, .ja h3 { letter-spacing: .02em; }
.about-head { display: flex; gap: 1.2rem; align-items: center; margin-bottom: 1.5rem; }
.about-head img { width: 6rem; height: 6rem; border-radius: 50%; object-fit: cover; flex: none; }
.about-head h1 { margin: 0; }
.about-head p { margin: 0; color: var(--muted); font-size: 1.2rem; }
.resume-list { list-style: none; padding: 0; }
.resume-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }

/* ---- blog */
.blog-index { --measure: var(--wide); width: min(100% - 2rem, var(--wide)); max-width: var(--wide); }
.cats { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 2rem; }
.cats a { text-decoration: none; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--text); }
.cats a:hover, .cats a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 2rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card-bg); display: flex; flex-direction: column; }
.card-img { display: block; aspect-ratio: 3 / 2; background: var(--panel); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 1.1rem 1.25rem 1.3rem; }
.card h2 { font-size: 1.25rem; margin: 0 0 .4rem; }
.card h2 a { color: var(--text); text-decoration: none; }
.card h2 a:hover { color: var(--accent-dark); }
.meta { color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }
.excerpt { margin: 0; font-size: .98rem; }
.post .crumbs { margin-bottom: 1.5rem; font-size: .95rem; }
.post h1 { margin-bottom: .4rem; }
.post-body { margin-top: 1.5rem; }
.post-body p { margin-bottom: 1.2em; }
.tags { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags a { text-decoration: none; padding: .25rem .75rem; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; color: var(--muted); }
.related { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.2rem; margin-top: 0; }
.related ul { padding-left: 1.2rem; }
.comments { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.comments h2 { font-size: 1.2rem; margin-top: 0; }
.comment { margin: 0 0 1.4rem; padding: 1rem 1.2rem; background: var(--panel); border-radius: var(--radius); }
.comment .who { font-weight: 600; }
.comment .when { color: var(--muted); font-size: .88rem; margin-left: .5rem; }
.comment p { margin: .4rem 0 0; }

/* ---- subscribe + footer */
.subscribe { background: var(--panel); padding: 3rem 0; text-align: center; border-top: 1px solid var(--line); }
.subscribe h2 { margin: 0 0 .3rem; font-size: 1.5rem; }
.subscribe form { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1rem; }
.subscribe input { flex: 1 1 15rem; max-width: 22rem; font: inherit; padding: .65rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--input-bg); color: var(--text); }
.subscribe input::placeholder { color: var(--muted); }
.site-footer { background: var(--header-bg); color: #cfd6de; text-align: center; padding: 2rem 0 2.4rem; }
.social { display: flex; gap: 1rem; justify-content: center; margin: 0 0 .8rem; }
.social a { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(255,255,255,.12); }
.social a:hover { background: var(--accent); }
.social svg { width: 1.15rem; height: 1.15rem; fill: #fff; }
.copyright { margin: 0; font-size: .9rem; }

::selection { background: var(--accent); color: #fff; }

@media print { .site-header, .subscribe, .site-footer { display: none; } }
