/* ============================================================
   dylanseibel.org — style.css
   Personal brand / lifestyle blog
   Deep teal + amber palette
   Fonts: Plus Jakarta Sans + Playfair Display
   ============================================================ */

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

:root {
  --primary:      #0d3d4f;
  --primary-mid:  #0f4a5e;
  --primary-light:#1a6b82;
  --primary-pale: #e0f2f7;
  --accent:       #d97706;
  --accent-light: #f59e0b;
  --accent-hover: #b45309;
  --text:         #1a1a1a;
  --text-muted:   #52525b;
  --text-light:   #a1a1aa;
  --bg:           #ffffff;
  --bg-alt:       #f8fafc;
  --bg-teal:      #f0f9ff;
  --border:       #e4e4e7;
  --radius:       8px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.06);
  --shadow:       0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.11);
  --font-sans:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif:   'Playfair Display', Georgia, serif;
  --max-w:        1200px;
  --max-w-text:   720px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-light); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--primary);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.15rem; color: var(--text-muted); line-height: 1.8; }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.container--text { max-width: var(--max-w-text); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

/* --- Utility --- */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

.tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: .28rem .75rem; border-radius: 999px;
  background: var(--primary-pale); color: var(--primary);
}
.tag--amber { background: #fef3c7; color: var(--accent-hover); }
.tag--teal  { background: var(--primary); color: #fff; }

.divider { width: 52px; height: 4px; background: var(--accent); border-radius: 2px; margin: 1rem 0 2rem; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.9rem; border-radius: var(--radius);
  font-weight: 700; font-size: .95rem; cursor: pointer; border: none;
  transition: all .2s; line-height: 1; font-family: var(--font-sans);
  text-decoration: none;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-mid); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--amber { background: var(--accent); color: #fff; }
.btn--amber:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); }
.btn--outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--outline-white { background: transparent; border: 2px solid rgba(255,255,255,.55); color: #fff; }
.btn--outline-white:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

/* --- Header --- */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--primary);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 16px rgba(0,0,0,.2);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 2rem;
}
.site-logo {
  display: flex; align-items: center; gap: .7rem;
  color: #fff; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700;
  flex-shrink: 0; text-decoration: none;
}
.site-logo:hover { color: var(--accent-light); }
.logo-mark {
  width: 38px; height: 38px; background: var(--accent); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 900; color: #fff; flex-shrink: 0;
}

.site-nav { display: flex; align-items: center; gap: .1rem; }
.site-nav a {
  color: #a5d8e8; font-size: .87rem; font-weight: 600;
  padding: .5rem .85rem; border-radius: var(--radius);
  transition: all .2s; white-space: nowrap; text-decoration: none;
}
.site-nav a:hover, .site-nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-cta { background: var(--accent) !important; color: #fff !important; }
.nav-cta:hover { background: var(--accent-hover) !important; }

.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:.5rem; background:none; border:none; }
.hamburger span { width:24px; height:2px; background:#fff; border-radius:2px; transition:all .3s; }

/* --- Hero --- */
.hero {
  background: var(--primary); padding: 6rem 0 5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 30%, rgba(217,119,6,.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 0% 90%, rgba(26,107,130,.2) 0%, transparent 50%);
}
.hero-inner {
  position: relative; display: grid;
  grid-template-columns: 1fr 340px; gap: 5rem; align-items: center;
}
.hero-label {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(217,119,6,.15); border: 1px solid rgba(217,119,6,.3);
  border-radius: 999px; padding: .35rem .95rem; margin-bottom: 1.75rem;
  color: var(--accent-light); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--accent-light); }
.hero .lead { color: #a5d8e8; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Profile card (right side hero) */
.hero-profile {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 2.25rem; text-align: center;
  backdrop-filter: blur(8px);
}
.profile-avatar {
  width: 90px; height: 90px; background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 2.2rem; font-weight: 900; color: #fff;
  margin: 0 auto 1.25rem;
}
.profile-name { color: #fff; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; margin-bottom: .2rem; }
.profile-loc { color: #a5d8e8; font-size: .87rem; margin-bottom: 1.5rem; }
.profile-interests { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.profile-tag {
  background: rgba(217,119,6,.18); border: 1px solid rgba(217,119,6,.3);
  color: var(--accent-light); font-size: .72rem; font-weight: 600;
  padding: .28rem .7rem; border-radius: 999px;
}

/* --- Post cards --- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.post-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all .22s; display: flex; flex-direction: column;
}
.post-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.post-card.featured { border-color: var(--accent); }

.post-img {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
}
.post-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .85rem; }
.post-date { font-size: .78rem; color: var(--text-light); }
.post-card h3 { font-size: 1.1rem; margin-bottom: .6rem; line-height: 1.3; }
.post-card h3 a { color: var(--primary); text-decoration: none; }
.post-card h3 a:hover { color: var(--primary-light); }
.post-card p { color: var(--text-muted); font-size: .88rem; flex: 1; margin: 0; line-height: 1.65; }
.post-footer {
  padding: .85rem 1.5rem; border-top: 1px solid var(--border);
  background: var(--bg-alt); font-size: .8rem;
  display: flex; justify-content: flex-end;
}
.post-footer a { color: var(--primary); font-weight: 700; font-size: .8rem; }
.post-footer a:hover { color: var(--accent); }

/* --- Featured post (large card) --- */
.post-card--large {
  display: grid; grid-template-columns: 1fr 1.1fr;
  grid-column: 1 / -1; /* spans full width when used in posts-grid */
}
.post-card--large .post-img { aspect-ratio: auto; min-height: 260px; }
.post-card--large .post-body { padding: 2.5rem; }
.post-card--large h3 { font-size: 1.5rem; }

/* --- About strip --- */
.about-strip { background: var(--primary); padding: 5rem 0; }
.about-inner { display: grid; grid-template-columns: 380px 1fr; gap: 5rem; align-items: center; }
.about-img-frame {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 2.5rem; text-align: center;
}
.about-avatar {
  width: 100px; height: 100px; background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 2.5rem; font-weight: 900; color: #fff;
  margin: 0 auto 1.5rem;
}
.about-img-frame h3 { color: #fff; margin-bottom: .3rem; }
.about-img-frame p { color: #a5d8e8; font-size: .88rem; margin-bottom: 1.5rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.about-tag {
  background: rgba(217,119,6,.15); border: 1px solid rgba(217,119,6,.3);
  color: var(--accent-light); font-size: .73rem; font-weight: 600;
  padding: .28rem .7rem; border-radius: 999px;
}
.about-strip h2 { color: #fff; margin-bottom: 1rem; }
.about-strip p { color: #a5d8e8; line-height: 1.85; margin-bottom: 1.2rem; }

/* --- Article page --- */
.article-header { background: var(--primary); padding: 4.5rem 0 3.5rem; }
.breadcrumb {
  display: flex; align-items: center; gap: .5rem; font-size: .8rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.breadcrumb a { color: #a5d8e8; text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb span { color: #3d7a90; }

.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 4.5rem; align-items: start; }

.article-content {
  font-size: 1.05rem; line-height: 1.9; color: var(--text);
}
.article-content h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.article-content h3 { font-size: 1.2rem; margin: 1.75rem 0 .75rem; }
.article-content p { margin-bottom: 1.4rem; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.4rem; }
.article-content li { margin-bottom: .5rem; }
.article-content blockquote {
  border-left: 4px solid var(--accent); padding: 1.25rem 1.75rem; margin: 2rem 0;
  background: #fffbeb; border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text-muted); font-size: 1.05rem;
}
.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* --- Sidebar --- */
.article-sidebar { position: sticky; top: 82px; }
.sidebar-widget {
  background: var(--bg-alt); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 1.5rem;
}
.sidebar-widget.accent { background: #fffbeb; border-color: var(--accent-light); }
.sidebar-widget h4 {
  font-size: .73rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1.25rem;
}
.sidebar-bio { text-align: center; }
.sidebar-bio .sb-avatar {
  width: 56px; height: 56px; background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 900; color: #fff;
  margin: 0 auto 1rem;
}
.sidebar-bio p { font-size: .87rem; color: var(--text-muted); }
.sidebar-links { list-style: none; }
.sidebar-links li { border-bottom: 1px solid var(--border); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a { display: flex; align-items: center; justify-content: space-between; padding: .65rem 0; font-size: .88rem; color: var(--text); text-decoration: none; transition: color .2s; }
.sidebar-links a:hover { color: var(--primary); }
.sidebar-links a span { font-size: .72rem; color: var(--text-light); }

/* --- Newsletter / CTA section --- */
.cta-section { background: var(--primary); padding: 5rem 0; text-align: center; position: relative; overflow: hidden; }
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(217,119,6,.1) 0%, transparent 65%);
}
.cta-inner { position: relative; max-width: 620px; margin: 0 auto; }
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: #a5d8e8; font-size: 1.05rem; margin-bottom: 2.5rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Contact form --- */
.contact-layout { display: grid; grid-template-columns: 1fr 280px; gap: 4rem; align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form-card { background: var(--bg-alt); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: .87rem; font-weight: 700; color: var(--primary); margin-bottom: .5rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .875rem 1.1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .95rem; color: var(--text); background: #fff;
  outline: none; transition: border-color .2s; font-family: var(--font-sans);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-success { display:none; background:#d1fae5; border:1.5px solid #34d399; border-radius:var(--radius-lg); padding:2rem; text-align:center; }
.form-success.visible { display:block; }
.form-success h3 { color:#065f46; margin-bottom:.5rem; }
.form-success p { color:#047857; margin:0; font-size:.95rem; }
.form-error { display:none; background:#fee2e2; border:1.5px solid #f87171; border-radius:var(--radius); padding:1rem 1.25rem; color:#991b1b; font-size:.9rem; margin-bottom:1.25rem; }
.form-error.visible { display:block; }
.btn--loading { opacity:.7; cursor:not-allowed; pointer-events:none; }

/* --- Footer --- */
#site-footer { background: var(--primary); border-top: 3px solid var(--accent); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .site-logo { margin-bottom: 1.25rem; }
.footer-brand p { color: #3d7a90; font-size: .87rem; line-height: 1.7; }
.footer-col h5 {
  color: #a5d8e8; font-family: var(--font-sans);
  font-size: .73rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #3d7a90; font-size: .87rem; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07); padding-top: 1.75rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: #3d7a90; font-size: .82rem; margin: 0; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: #3d7a90; font-size: .82rem; text-decoration: none; }
.footer-legal a:hover { color: var(--accent-light); }

/* --- Blog index grid --- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-hero-post {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all .22s;
}
.blog-hero-post:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.blog-hero-img {
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  display: flex; align-items: center; justify-content: center; font-size: 4rem; min-height: 260px;
}
.blog-hero-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.blog-hero-body h2 { font-size: 1.6rem; margin-bottom: .85rem; }
.blog-hero-body h2 a { color: var(--primary); text-decoration: none; }
.blog-hero-body h2 a:hover { color: var(--primary-light); }
.blog-hero-body p { color: var(--text-muted); font-size: .95rem; margin-bottom: 1.5rem; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-profile { display: none; }
  .about-inner { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card--large { grid-column: auto; display: flex; flex-direction: column; }
  .post-card--large .post-img { min-height: auto; aspect-ratio: 16/9; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-hero-post { grid-template-columns: 1fr; }
  .blog-hero-img { min-height: 200px; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--primary); border-bottom: 2px solid var(--accent);
    padding: 1rem 1.5rem 1.5rem; gap: .25rem; z-index: 999;
  }
  .site-nav.open a { width: 100%; }
  .hamburger { display: flex; }
  .posts-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
}
