/* Patrick Humphrey personal hub
   Warm light page, navy hero, ReadyAtlas orange, teal accents.
*/

@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader.woff") format("woff");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree.woff") format("woff");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f1e6;
  --paper-2: #fffaf2;
  --ink: #16110e;
  --text: #241c17;
  --muted: #4e453c;
  --orange: #f97316;
  --orange-2: #ea580c;
  --teal: #0c8a86;
  --teal-deep: #0a6e6b;
  --teal-soft: #ddf4f2;
  --navy: #132033;
  --navy-2: #1b2d45;
  --cream: #fff7eb;
  --card: #ffffff;
  --line: rgba(22, 17, 14, 0.12);
  --line-strong: rgba(22, 17, 14, 0.22);
  --shadow: 0 18px 40px rgba(19, 32, 51, 0.10);
  --radius: 22px;
  --header-h: 70px;
  --max: 1120px;
  --sans: "Figtree", "IBM Plex Sans", "Segoe UI", sans-serif;
  --serif: "Newsreader", "Georgia", "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(249, 115, 22, 0.16), transparent 55%),
    radial-gradient(700px 380px at 0% 18%, rgba(12, 138, 134, 0.10), transparent 50%),
    var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -44px;
  background: var(--orange-2);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 100;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header
   ================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(255, 250, 242, 0.90);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--orange), var(--orange-2));
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  display: grid;
  place-items: center;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.28);
}

.brand-name { font-size: 16px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  padding: 8px 11px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--orange-2);
  background: rgba(249, 115, 22, 0.10);
  outline: none;
}

/* Hero
   ================================================== */
.hero {
  overflow: hidden;
  padding: 0 0 0;
  background:
    radial-gradient(800px 420px at 90% 20%, rgba(249, 115, 22, 0.28), transparent 58%),
    radial-gradient(700px 380px at 0% 80%, rgba(12, 138, 134, 0.22), transparent 55%),
    linear-gradient(180deg, #0f1b2c 0%, #173049 100%);
  color: #fffaf2;
  padding: 76px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffb26a;
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 550;
  font-size: clamp(50px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: #fffaf2;
}

.hero-role {
  font-family: var(--serif);
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 400;
  color: #fffaf2;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.hero-role span { color: #ff9b4a; font-weight: 600; }

.hero-lead {
  font-size: 20px;
  line-height: 1.55;
  color: #efe3d2;
  max-width: 34em;
  margin: 0 0 32px;
  font-weight: 500;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 10px 24px rgba(234, 88, 12, 0.32);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 14px 28px rgba(234, 88, 12, 0.42);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(19, 32, 51, 0.08);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  background: var(--cream);
}

.hero .btn-ghost {
  background: transparent;
  color: #fffaf2;
  border-color: rgba(255, 247, 235, 0.38);
  box-shadow: none;
}

.hero .btn-ghost:hover {
  background: rgba(255, 247, 235, 0.10);
  border-color: rgba(255, 247, 235, 0.7);
}

.follow-row {
  margin: 22px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: #efe3d2;
}

.follow-row a {
  color: #ffb26a;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(255, 178, 106, 0.55);
  margin: 0 2px;
}

.follow-row a:hover { color: #fff; border-bottom-color: #fff; }

.hero-photo-wrap {
  justify-self: end;
  position: relative;
  width: min(100%, 420px);
}

.hero-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 16% -10% -10% 16%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.45), rgba(12, 138, 134, 0.18) 55%, transparent 70%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 28px;
  border: 3px solid #ffb26a;
  box-shadow:
    0 0 0 8px rgba(249, 115, 22, 0.18),
    0 28px 50px rgba(0, 0, 0, 0.35);
}

/* Sections
   ================================================== */
section { padding: 80px 0; }

.section-kicker {
  margin: 0 0 10px;
  color: var(--orange-2);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--serif);
  font-weight: 550;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 22px;
  color: var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 760px;
}

.about-copy {
  max-width: 42em;
}

.about-copy p {
  margin: 0 0 1em;
  font-size: 19px;
  color: var(--text);
  line-height: 1.7;
}

.about-copy p:last-child { margin-bottom: 0; }

.about-copy a {
  color: var(--teal-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(12, 138, 134, 0.45);
  text-underline-offset: 3px;
}

.about-copy a:hover { color: var(--orange-2); }

/* Featured ReadyAtlas
   ================================================== */
.feature {
  background:
    radial-gradient(600px 280px at 100% 0%, rgba(249, 115, 22, 0.22), transparent 55%),
    linear-gradient(180deg, #173049 0%, #102033 100%);
  border: 1px solid rgba(255, 178, 106, 0.22);
  border-radius: 28px;
  padding: 40px 28px 0 40px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(19, 32, 51, 0.18);
  display: grid;
  grid-template-columns: 1fr min(42%, 340px);
  gap: 24px 32px;
  align-items: end;
  color: #fffaf2;
}

.feature-copy { padding-bottom: 48px; }

.feature .section-kicker { color: #ffb26a; }

.ra-logo {
  width: min(280px, 80%);
  height: auto;
  margin: 0 0 22px;
}

.feature h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 14px;
  color: #fffaf2;
}

.feature p {
  margin: 0 0 16px;
  color: #efe3d2;
  font-size: 17.5px;
  line-height: 1.6;
  max-width: 40em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.chip {
  font-size: 13px;
  font-weight: 700;
  color: #fffaf2;
  background: rgba(255, 247, 235, 0.10);
  border: 1px solid rgba(255, 247, 235, 0.22);
  border-radius: 999px;
  padding: 6px 12px;
}

.feature-note {
  font-size: 15px !important;
  color: #e2d3be !important;
  margin-bottom: 24px !important;
}

.feature .btn-ghost {
  background: transparent;
  color: #fffaf2;
  border-color: rgba(255, 247, 235, 0.4);
  box-shadow: none;
}

.feature .btn-ghost:hover {
  background: rgba(255, 247, 235, 0.10);
}

.phone-col {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.phone {
  width: min(100%, 300px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.45));
  transform: translateY(4px);
}

/* Newsletter
   ================================================== */
.newsletter {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 60%, #c2410c 100%);
  border: none;
  border-radius: 28px;
  padding: 48px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  color: #fff;
  box-shadow: 0 20px 40px rgba(234, 88, 12, 0.28);
}

.newsletter .section-kicker { color: #ffe7cc; }

.newsletter h2 {
  margin-bottom: 10px;
  color: #fff;
}

.newsletter p {
  margin: 0;
  color: #fff7eb;
  font-size: 18px;
  max-width: 40em;
  font-weight: 550;
}

.newsletter .btn-primary {
  background: #fff;
  color: #c2410c;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.newsletter .btn-primary:hover {
  background: #fff7eb;
  color: #9a3412;
}

/* Videos
   ================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.video-card {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.video-card:hover,
.video-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 18px 36px rgba(19, 32, 51, 0.14);
  outline: none;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0c10;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.video-card:hover .thumb img { transform: scale(1.04); }

.play {
  position: absolute;
  inset: auto 12px 12px auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--orange-2);
  border: none;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.4);
}

.play svg { width: 14px; height: 14px; margin-left: 1px; }

.video-meta { padding: 15px 16px 18px; }

.video-date {
  display: block;
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-2);
  margin-bottom: 6px;
}

.video-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Find me + contact
   ================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 18px 18px;
  min-height: 168px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.5);
  outline: none;
}

.link-card-text { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }

.icon-bubble {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.14);
  color: var(--orange-2);
  display: grid;
  place-items: center;
}

.icon-bubble-teal {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.icon-bubble svg { width: 18px; height: 18px; }

.link-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.link-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.45;
  margin-top: auto;
  font-weight: 500;
}

.contact-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 8px solid var(--teal);
  border-radius: 24px;
  padding: 36px 40px;
  box-shadow: var(--shadow);
}

.contact-box p {
  margin: 0 0 10px;
  font-size: 19px;
  color: var(--text);
}

.email-link {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--orange);
  font-weight: 550;
  overflow-wrap: break-word;
}

.email-link:hover { color: var(--orange-2); }

/* Footer
   ================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 550;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
}

.site-footer a:hover { color: var(--orange-2); }

/* Responsive
   ================================================== */
@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .feature,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .hero-photo-wrap { justify-self: start; width: min(100%, 380px); }
  .hero { padding: 52px 0 64px; }
  section { padding: 60px 0; }

  .feature { padding: 32px 24px 0; }
  .feature-copy { padding-bottom: 12px; }
  .phone { width: min(100%, 230px); }

  .video-grid { grid-template-columns: 1fr; }
  @media (min-width: 620px) {
    .video-grid { grid-template-columns: 1fr 1fr; }
    .video-grid .video-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 11px); }
  }

  .card-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { padding: 32px 24px; }
  .contact-box { padding: 28px 24px; }
}

@media (max-width: 560px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .brand-name { display: none; }
  .nav a { padding: 8px 7px; font-size: 14px; }
  .hero h1 { font-size: 48px; }
  .hero-lead { font-size: 18px; }
  .btn { width: 100%; }
  .card-grid { grid-template-columns: 1fr; }
  .link-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    min-height: 0;
    padding: 16px;
  }
  .link-card-text { gap: 4px; }
  .link-card h3 { margin-top: 2px; }
  .link-card p { margin-top: 0; }
  .section-kicker { letter-spacing: 0.12em; }
  .email-link { font-size: 20px; }
  .video-grid,
  .video-grid .video-card:last-child {
    grid-template-columns: 1fr;
    max-width: none;
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
