/* DevinPike.com — Editorial portfolio
   Palette: warm cream / charcoal / deep red accent
   Type: EB Garamond (display) + Inter (body)
*/

:root {
  --bg: #f7f3ec;
  --bg-alt: #efe9df;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --rule: #d9d2c4;
  --accent: #8a1c2c;
  --accent-soft: #b95464;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

img, video, iframe { max-width: 100%; display: block; }

/* Layout helpers */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; border-bottom: 1px solid var(--rule); }
.section:last-of-type { border-bottom: none; }

/* Display type */
h1, h2, h3, h4 {
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: .4rem; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  display: block;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  font-family: 'EB Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--accent); text-decoration: none; }
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a {
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* Hero */
.hero {
  padding: 7rem 0 6rem;
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero h1 { margin-bottom: 1.5rem; }
.hero .lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 32rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: .92rem;
  color: var(--ink-soft);
}
.hero-meta span::before { content: "—"; margin-right: .6rem; color: var(--accent); }
.hero-feature {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  padding: 2.2rem;
  border-radius: 4px;
}
.hero-feature .ratio {
  position: relative;
  padding-bottom: 56.25%;
  background: #1a1a1a;
  margin-bottom: 1rem;
  border-radius: 2px;
  overflow: hidden;
}
.hero-feature .ratio iframe,
.hero-feature .ratio .placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-feature .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8a890;
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .04em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  border-radius: 2px;
  cursor: pointer;
  transition: all .15s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* Two-column section */
.two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}
.two-col h2 { position: sticky; top: 6rem; }

/* About */
.about p { font-size: 1.08rem; color: var(--ink); }

/* Skills/services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.service {
  padding: 1.8rem 0;
  border-top: 2px solid var(--ink);
}
.service h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .8rem;
}
.service p { font-size: .96rem; }

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.video-card {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,26,26,0.08);
}
.video-card .ratio {
  position: relative;
  padding-bottom: 56.25%;
  background: #1a1a1a;
}
.video-card .ratio iframe,
.video-card .ratio .placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.video-card .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8a890;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  text-align: center;
  padding: 1rem;
}
.video-card.restricted .ratio {
  background: linear-gradient(135deg, #2a2421 0%, #1a1a1a 100%);
}
.video-card.restricted .ratio::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px);
}
.video-card.restricted .gated {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem;
  color: #ece4d3;
}
.video-card.restricted .gated .lock {
  font-family: 'EB Garamond', serif;
  font-size: 2rem;
  color: var(--accent-soft);
  margin-bottom: .6rem;
}
.video-card.restricted .gated .label {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-soft);
  margin-bottom: .4rem;
}
.video-card.restricted .gated .work-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: .2rem;
  line-height: 1.25;
}
.video-card.restricted .gated .note {
  font-size: .85rem;
  color: #c9c2b3;
  font-style: italic;
}
.video-card .meta { padding: 1.4rem; }
.video-card h3 {
  font-family: 'EB Garamond', serif;
  font-size: 1.3rem;
  margin-bottom: .3rem;
}
.video-card .tag {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  font-weight: 600;
}
.video-card p { font-size: .94rem; margin-top: .6rem; }

.platform-strip {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-size: .95rem;
  color: var(--ink-soft);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info p { font-size: 1.05rem; color: var(--ink); }
.contact-info a { font-weight: 500; }
form { display: flex; flex-direction: column; gap: 1rem; }
label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .3rem;
  display: block;
}
input, textarea {
  width: 100%;
  padding: .85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color .15s ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { min-height: 140px; resize: vertical; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c9c2b3;
  padding: 3rem 0 2.5rem;
  font-size: .9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.site-footer a { color: #ece4d3; }
.site-footer a:hover { color: #fff; }
.site-footer .links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* Resume page */
.resume-page { padding: 4rem 0 6rem; }
.resume-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.resume-doc {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 4rem 4.5rem;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(26,26,26,0.06);
}
.resume-doc h1 {
  font-size: 2.6rem;
  margin-bottom: .4rem;
  letter-spacing: -0.02em;
}
.resume-doc .resume-tagline {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: .6rem;
}
.resume-doc .resume-contact {
  font-size: .95rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--ink);
}
.resume-doc .resume-contact a { color: var(--accent); }
.resume-doc .summary {
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 2.4rem;
}
.resume-doc h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--rule);
}
.resume-doc .skills-line {
  font-size: .98rem;
  line-height: 1.8;
  color: var(--ink);
}
.resume-doc .role { margin-bottom: 1.6rem; }
.resume-doc .role-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .3rem;
}
.resume-doc .role-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}
.resume-doc .role-company { color: var(--accent); font-weight: 500; }
.resume-doc .role-dates {
  font-size: .88rem;
  color: var(--ink-soft);
  font-style: italic;
}
.resume-doc .role-note {
  font-size: .85rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: .5rem;
}
.resume-doc .role ul {
  list-style: none;
  padding-left: 0;
}
.resume-doc .role li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: .55rem;
  font-size: .98rem;
  color: var(--ink);
  line-height: 1.55;
}
.resume-doc .role li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Responsive */
@media (max-width: 860px) {
  .hero-grid, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col h2 { position: static; }
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: .85rem; }
  .resume-doc { padding: 2.5rem 1.8rem; }
  .section { padding: 4rem 0; }
  .hero { padding: 4rem 0; }
}

@media (max-width: 540px) {
  .nav-links { display: none; }
  .nav-links.mobile-open { display: flex; flex-direction: column; }
}

/* Print (resume) */
@media print {
  .site-header, .site-footer, .resume-actions { display: none; }
  body { background: #fff; }
  .resume-doc { box-shadow: none; border: none; padding: 0; }
}
