/* ============================================================
   Wil Randolph — Brand & Marketing Strategist
   Static replica of the former wilrandolph.com (teal-gecko)
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-latin-300-normal.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-latin-300-italic.woff2') format('woff2');
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-latin-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}

/* The original site served Adelle Sans via Squarespace's Adobe Fonts
   license, which cannot be self-hosted. If you have your own Adobe Fonts
   (Typekit) kit with adelle-sans, add its <link> in the <head> of each
   page and the stack below will pick it up automatically. */

:root {
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: adelle-sans, 'Source Sans 3', 'Helvetica Neue', sans-serif;
  --text: #000;
  --bg: #fff;
  --pad-x: 50px;
  --site-max: 1500px;
  --content-wide: 1235px;
  --gutter: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 25px var(--pad-x);
  max-width: var(--site-max);
  margin: 0 auto;
}
.site-header .title-block { flex: 1 1 auto; min-width: 0; }
.site-title {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.05;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
.site-subtitle {
  display: block;
  margin-top: 7px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6b6b6b;
}
.site-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: baseline;
  column-gap: 26px;
  padding-top: 16px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
}
.site-nav a { text-decoration: none; white-space: nowrap; }
.site-nav a:hover { opacity: .65; }
.site-nav a.active { text-decoration: underline; text-underline-offset: 7px; }
.header-icons {
  display: flex;
  gap: 28px;
  padding-top: 18px;
  margin-left: 12px;
}
.header-icons a { line-height: 0; }
.header-icons svg { width: 19px; height: 19px; fill: currentColor; }

/* Burger (mobile) */
.burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 30px; height: 24px; position: relative; margin-top: 16px;
}
.burger span {
  position: absolute; left: 0; width: 100%; height: 2px; background: #000;
  transition: transform .25s, opacity .25s;
}
.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { top: 11px; }
.burger span:nth-child(3) { top: 20px; }

.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 90;
  background: #fff;
  padding: 110px 32px 32px;
  flex-direction: column;
  gap: 10px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
}
.mobile-nav a { text-decoration: none; }
body.nav-open .mobile-nav { display: flex; }
body.nav-open .burger { z-index: 95; }
body.nav-open .burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero (homepage video section) ---------- */
.hero {
  padding: 30px var(--pad-x) 0;
  max-width: var(--site-max);
  margin: 0 auto;
}
.hero-media {
  position: relative;
  background: #000;
  height: clamp(220px, 33.7vw, 433px);
  overflow: hidden;
}
.hero-media video,
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media .overlay {
  position: absolute; inset: 0;
  background: #000;
  opacity: .15;
}

/* ---------- Masonry gallery ---------- */
.gallery-section { padding: var(--pad-x); max-width: var(--site-max); margin: 0 auto; }
.masonry { position: relative; }
.masonry .m-item { width: calc((100% - 2 * var(--gutter)) / 3); }
.masonry.js .m-item { position: absolute; top: 0; left: 0; }
.masonry:not(.js) { column-count: 3; column-gap: var(--gutter); }
.masonry:not(.js) .m-item { break-inside: avoid; margin-bottom: var(--gutter); }
.m-item img { width: 100%; cursor: pointer; }
.m-item figcaption {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  padding: 8px 0 2px;
}
@media (max-width: 1000px) {
  .masonry .m-item { width: calc((100% - var(--gutter)) / 2); }
  .masonry:not(.js) { column-count: 2; }
}
@media (max-width: 640px) {
  .masonry .m-item { width: 100%; }
  .masonry:not(.js) { column-count: 1; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.92);
  align-items: center; justify-content: center;
  flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 84vh;
  width: auto; height: auto;
  object-fit: contain;
}
.lightbox .lb-caption {
  color: #fff; font-size: 14px; font-weight: 300;
  padding-top: 14px; max-width: 80vw; text-align: center;
}
.lightbox button {
  position: absolute;
  background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 34px; line-height: 1; padding: 12px;
  opacity: .8;
}
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 18px; right: 26px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); font-size: 44px; }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); font-size: 44px; }

/* ---------- About ---------- */
.about-section {
  max-width: 1135px;
  margin: 0 auto;
  padding: 70px var(--pad-x) 90px;
  display: grid;
  grid-template-columns: 419fr 514fr;
  gap: 90px;
  align-items: start;
}
.about-section .headshot img { width: 100%; object-fit: cover; }
.about-section h3 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 18px;
}
.about-section p { margin-bottom: 24px; }
@media (max-width: 820px) {
  .about-section { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Contact ---------- */
.contact-section {
  position: relative;
  color: #fff;
  padding: 120px var(--pad-x) 140px;
  overflow: hidden;
}
.contact-section .bg {
  position: absolute; inset: 0;
  background-image: url('../images/forest.jpg');
  background-size: cover;
  background-position: center;
}
.contact-section .bg::after {
  content: "";
  position: absolute; inset: 0;
  background: #171717;
  opacity: .37;
}
.contact-inner {
  position: relative;
  max-width: 1135px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 276px 467px;
  justify-content: center;
  gap: 60px;
  align-items: center;
}
.contact-map { background: #e8e5df; height: 453px; overflow: hidden; }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.15); }
.form-status { margin-top: 14px; font-size: 15px; min-height: 1.2em; }
.form-status.ok { color: #cfe9d4; }
.form-status.err { color: #f2c8c0; }
.contact-form label, .contact-form .field-title {
  display: block;
  font-size: 16px; font-weight: 300;
  padding-bottom: 4px;
}
.contact-form .req { font-size: 13px; opacity: .8; padding-left: 6px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-form .field { margin-bottom: 22px; }
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form textarea {
  width: 100%;
  background: #fafafa;
  border: 1px solid #000;
  border-radius: 0;
  color: #000;
  font-family: var(--sans);
  font-size: 16px; font-weight: 300;
  padding: 10px;
}
.contact-form textarea { min-height: 96px; resize: vertical; }
.contact-form .check { display: flex; align-items: center; gap: 10px; margin: -8px 0 22px; font-size: 15px; }
.contact-form .check input { width: 15px; height: 15px; accent-color: #fafafa; }
.btn-outline {
  display: inline-block;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: 16px; font-weight: 500;
  padding: 20px 35px;
  cursor: pointer;
}
.btn-outline:hover { background: #fff; color: #000; }
@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; }
  .contact-map { max-width: 320px; }
}

/* ---------- Blog list ---------- */
.blog-list {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 30px var(--pad-x) 90px;
}
.subscribe-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 40px 0 70px;
}
.subscribe-block h2 {
  font-family: var(--serif);
  font-size: 34px; font-weight: 500; line-height: 1.4;
}
.subscribe-block p { margin: 6px 0 18px; font-size: 14.4px; }
.subscribe-block form { display: flex; gap: 14px; flex-wrap: wrap; }
.subscribe-block input[type=email] {
  flex: 1 1 220px;
  background: #fafafa; border: 1px solid #000; border-radius: 0;
  font-family: var(--sans); font-size: 16px; font-weight: 300;
  padding: 14px 12px;
}
.btn-solid {
  background: #000; color: #fff; border: 2px solid #000; border-radius: 0;
  font-family: var(--sans); font-size: 16px; font-weight: 500;
  padding: 14px 30px; cursor: pointer;
}
.btn-solid:hover { opacity: .8; }

.blog-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
  padding: 45px 0;
}
.blog-item .thumb { aspect-ratio: 1 / 1; overflow: hidden; }
.blog-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-item.alt .thumb { order: 2; }
.blog-item .meta {
  font-size: 16px; font-weight: 400; letter-spacing: .01em;
  margin-bottom: 14px;
}
.blog-item h2 {
  font-family: var(--serif);
  font-size: 34px; font-weight: 500; line-height: 1.4;
  margin-bottom: 14px;
}
.blog-item h2 a { text-decoration: none; }
.blog-item h2 a:hover { opacity: .7; }
.blog-item .excerpt { font-size: 14.4px; line-height: 1.8; margin-bottom: 12px; }
.read-more { font-size: 14.4px; color: #171717; text-underline-offset: 4px; }
@media (max-width: 820px) {
  .blog-item { grid-template-columns: 1fr; gap: 26px; }
  .blog-item.alt .thumb { order: 0; }
  .subscribe-block { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Blog post ---------- */
.post {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 40px var(--pad-x) 80px;
}
.post-header { max-width: 900px; margin-bottom: 40px; }
.post-header h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 4.75vw, 61px);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 20px;
}
.post-meta { font-size: 16px; font-weight: 400; letter-spacing: .01em; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.post-meta .cats { font-weight: 300; opacity: .85; }
.post-body { max-width: 900px; }
.post-body h3, .post-body h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.4;
  margin: 38px 0 14px;
}
.post-body h3 { font-size: 30px; }
.post-body h4 { font-size: 24px; }
.post-body p { margin-bottom: 24px; }
.post-body img { margin: 34px 0; }
.post-body ul, .post-body ol { margin: 0 0 24px 22px; }
.post-body li { margin-bottom: 10px; }
.post-body a { text-underline-offset: 3px; }
.post-body .video-embed {
  position: relative; padding-top: 56.25%; margin: 34px 0;
}
.post-body .video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.post-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 900px;
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid #e5e5e5;
}
.post-share .share-label {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid #d8d8d8;
  border-radius: 50%;
  background: none;
  color: #171717;
  cursor: pointer;
  padding: 0;
  transition: background .2s, color .2s, border-color .2s;
}
.share-btn:hover { background: #171717; color: #fff; border-color: #171717; }
.share-btn svg { width: 16px; height: 16px; fill: currentColor; }
.share-copied { font-size: 13px; color: #5f8a6b; }
.post-nav {
  max-width: 900px;
  display: flex; justify-content: space-between; gap: 30px;
  padding-top: 34px; margin-top: 34px;
  font-size: 15px;
}
.post-nav a { text-decoration: none; max-width: 46%; }
.post-nav a:hover { opacity: .7; }
.post-nav .label { font-weight: 400; display: block; }
.post-nav .pn-title { font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.4; }
.post-nav .next { text-align: right; margin-left: auto; }

/* ---------- Footer ---------- */
.site-footer { padding: 34px var(--pad-x) 54px; border-top: 1px solid #ececec; margin-top: 46px; }
.site-footer .footer-inner { text-align: center; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #6b6b6b; }

/* ---------- Responsive header ---------- */
@media (max-width: 1040px) {
  :root { --pad-x: 24px; }
  .site-nav, .site-header .header-icons { display: none; }
  .burger { display: block; }
  .site-title { font-size: 28px; }
  .site-subtitle { font-size: 10px; letter-spacing: .14em; }
  .mobile-nav .mn-icons { display: flex; gap: 26px; margin-top: 26px; }
  .mobile-nav .mn-icons svg { width: 21px; height: 21px; fill: #000; }
}
