/* Shared by every page. Layout: a plain white header, the page content, then a black footer with the social icons.
   On the home page the active view fills the screen: a big photo of Reid, or Blog and Contact on a dark background.
   Blog posts are their own pages with a white reading area (see "blog post page" below). */
:root {
  --navy: #14213D;
  --ink: #0E1118;
  --white: #FFFFFF;
  --line: rgba(20, 33, 61, 0.14);
  --font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
p { margin: 0; max-width: 56ch; }
img { display: block; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--navy); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* header */
.hdr { position: relative; z-index: 20; background: var(--white); color: var(--navy); border-bottom: 1px solid var(--line); }
.hdr .in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px 28px; padding: 12px var(--gutter-r) 12px var(--gutter-l); }
.logo { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; text-decoration: none; }
.hdr nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.hdr nav > a { text-decoration: none; font-weight: 700; font-size: 1rem; }
.hdr nav > a:hover, .hdr nav > a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* hamburger: on narrow screens the links fold into a drop-down panel under the header */
.burger { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; background: none; border: 0; color: inherit; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; margin: 5px auto; background: currentColor; border-radius: 2px; }
@media (max-width: 760px) {
  .burger { display: block; }
  .js .hdr nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
  .js .hdr.open nav { display: flex; }
  .hdr nav > a { padding: 14px var(--gutter-r) 14px var(--gutter-l); font-size: 1.125rem; border-top: 1px solid var(--line); }
  .hdr.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hdr.open .burger span:nth-child(2) { opacity: 0; }
  .hdr.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* footer */
.ftr { background: #000; color: var(--white); }
.ftr .in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 18px var(--gutter-r) max(18px, env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
.ftr p { font-size: 0.9375rem; }
.icons { display: inline-flex; align-items: center; gap: 12px; }
.ico { display: inline-flex; width: 28px; height: 28px; }
.ico svg { width: 100%; height: 100%; fill: currentColor; }
.ico:hover { opacity: 0.8; }

main { flex: 1; display: flex; flex-direction: column; }
main > div { flex: 1; display: flex; flex-direction: column; }

/* home: the photo fills the screen below the header, with a soft blurred copy behind it on wide screens */
.stage { position: relative; flex: 1; min-height: 420px; overflow: hidden; display: flex; justify-content: center; background: var(--ink) url("/img/reid-bg.jpg") center / cover no-repeat; }
.stage::before { content: ""; position: absolute; inset: -40px; background: inherit; filter: blur(28px) brightness(0.55); }
.stage .photo { position: absolute; inset: 0; margin: 0 auto; height: 100%; width: auto; max-width: 100%; aspect-ratio: 1 / 1; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
@media (max-width: 700px) { .stage .photo { -webkit-mask-image: none; mask-image: none; } }

.cap { position: absolute; top: 18px; left: var(--gutter-l); z-index: 2; display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.2rem; letter-spacing: 0.04em; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.ring { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--white); flex: none; }
.ring::before, .ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--white); opacity: 0; }

/* blog and contact share a centered panel */
.panel { flex: 1; display: grid; place-items: center; padding: clamp(24px, 5vw, 56px) var(--gutter-r) clamp(24px, 5vw, 56px) var(--gutter-l); }
.label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.big { font-size: 1.25rem; }

.blog { width: 100%; max-width: 760px; display: grid; gap: 22px; }
.posts { display: grid; gap: 18px; margin-top: 10px; }
.post { position: relative; border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 16px; padding: 24px; display: grid; gap: 8px; }
.post:hover { border-color: var(--white); }
.post h3 { font-size: 1.6rem; line-height: 1.15; }
.post h3 a { text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; } /* the whole card is clickable */
.post .thumb { width: 100%; height: auto; border-radius: 10px; margin-bottom: 8px; }
.post .more { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }

/* blog post page: a white reading column */
.article { flex: 1; background: var(--white); color: var(--navy); padding: clamp(28px, 6vw, 64px) var(--gutter-r) clamp(40px, 8vw, 80px) var(--gutter-l); }
.article .in { max-width: 680px; margin: 0 auto; }
.article .back { font-weight: 700; font-size: 1rem; text-decoration: none; }
.article .back:hover { text-decoration: underline; text-underline-offset: 5px; }
.article h1 { font-size: clamp(2rem, 5.5vw, 3rem); margin: 18px 0 12px; }
.article .meta { color: #4A5568; font-size: 1rem; margin-bottom: 28px; }
.article .cover { width: 100%; height: auto; border-radius: 12px; margin: 0 0 32px; }
.article h2 { font-size: clamp(1.5rem, 4vw, 1.9rem); line-height: 1.2; margin: 44px 0 14px; }
.article p { max-width: none; margin: 0 0 18px; }
.article a:not(.back) { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article a:not(.back):hover { text-decoration-thickness: 2px; }
.article .closing { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }

.contact { width: 100%; max-width: 1000px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; align-items: center; }
.face { width: min(100%, 460px); height: auto; aspect-ratio: 1 / 1; margin: 0 auto; border-radius: 14px; }
.info { display: grid; gap: 20px; align-content: start; }
.lines { display: grid; gap: 16px; }
.line { display: grid; gap: 2px; }
.valrow { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.val { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 4vw, 2rem); overflow-wrap: anywhere; text-decoration: none; }
.val:hover { text-decoration: underline; text-underline-offset: 5px; }
.copy-btn { background: none; border: 0; border-bottom: 2px solid currentColor; color: inherit; font: inherit; font-weight: 700; font-size: 0.9375rem; padding: 0; cursor: pointer; }
.find { display: grid; gap: 10px; }
.find .icons { gap: 14px; }
.find .ico { width: 38px; height: 38px; }
@media (max-width: 820px) { .contact { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: no-preference) {
  .ring::before, .ring::after { animation: ping 3.2s ease-out infinite; }
  .ring::after { animation-delay: 1.6s; }
  @keyframes ping { from { transform: scale(1); opacity: 0.8; } to { transform: scale(4.5); opacity: 0; } }
  .ico { transition: transform 0.15s, opacity 0.15s; }
  .burger span { transition: transform 0.2s, opacity 0.2s; }
  .ico:hover { transform: translateY(-2px); }
}
