/* Justin Time Studio brand */
:root {
  --cream: #EDE6DA;
  --cream-light: #F6F2EA;
  --cream-line: #D8CFC0;
  --chip-line: #B9AE9C;
  --light-blue: #A8CBEE;
  --blue-tint: #DCE8F4;
  --ink: #15191F;
  --muted: #3A3F49;
  --on-ink-muted: #CFC8BB;
  --deep-blue: #2F5F96;
  --deep-blue-hover: #234873;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--deep-blue); }
a:hover { color: var(--deep-blue-hover); }
p, h1, h2, h3, ul, ol { margin: 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; }
h2 { font-size: clamp(40px, 5vw, 52px); }
.muted { color: var(--muted); }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-solid { background: var(--deep-blue); color: #fff; }
.btn-solid:hover { background: var(--deep-blue-hover); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  padding-top: 20px; padding-bottom: 20px;
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 48px; height: 48px; }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
.wordmark-name { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: 0.32em; line-height: 1; margin-right: -0.32em; }
.wordmark-rule { width: 70%; height: 1px; background: currentColor; }
.wordmark-sub { font-size: 10px; letter-spacing: 0.5em; line-height: 1.4; margin-right: -0.5em; }
.nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nav a { padding: 10px 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--deep-blue); }
.nav a.btn-solid { color: #fff; padding: 10px 18px; }
.nav a.btn-solid:hover { color: #fff; }

/* Hero */
.hero {
  padding-top: 40px; padding-bottom: 56px;
  display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
}
.hero-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.eyebrow { font-weight: 600; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: clamp(46px, 7vw, 88px); line-height: 1; letter-spacing: -0.01em; max-width: 13ch; }
.lede { font-size: 19px; max-width: 46ch; color: var(--muted); }
.hero-photo { flex: 1 1 320px; min-width: 0; position: relative; margin-right: 16px; margin-bottom: 16px; }
.photo-block { position: absolute; inset: 24px -16px -16px 24px; background: var(--light-blue); }
.photo-frame { position: absolute; inset: 40px 0 0 40px; border: 1px solid var(--ink); }
.hero-photo img { position: relative; width: 100%; height: 500px; object-fit: cover; object-position: center 22%; }

/* About */
.about { padding-top: 48px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 40px; }
.about-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.stats { display: flex; flex-direction: column; gap: 12px; }
.stat { padding: 18px 20px; background: var(--light-blue); }
.stat p { font-size: 15px; }
.stat .stat-num { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1.1; }
.about-main { flex: 2 1 420px; display: flex; flex-direction: column; gap: 24px; padding-top: 76px; }
.about-lead { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.3; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border: 1px solid var(--chip-line); font-size: 14px; }

/* Projects */
.projects { background: var(--cream-light); border-top: 1px solid var(--cream-line); border-bottom: 1px solid var(--cream-line); }
.section-inner { padding-top: 56px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.project-list { display: flex; flex-direction: column; gap: 48px; }
.project { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; }
.project.reverse { flex-direction: row-reverse; }
.project-media { flex: 1 1 440px; min-width: 0; overflow: hidden; border: 1px solid var(--ink); background: var(--blue-tint); }
.browser-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--light-blue); border-bottom: 1px solid var(--ink); }
.browser-bar span { width: 9px; height: 9px; border-radius: 999px; background: var(--ink); }
.placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; background: var(--light-blue); height: 156px; }
.placeholder.tall { height: 300px; background: transparent; font-size: 15px; }
.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.placeholder.banner { height: 140px; margin: 0 16px 16px; }
.project-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.label { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--deep-blue); }
.project h3 { font-size: 42px; }
.what { font-weight: 700; margin-bottom: 6px; }
.project-text ul { padding-left: 20px; }
.text-link { font-weight: 600; }

/* How I work */
.how { background: var(--ink); color: var(--cream); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--light-blue); }
.step-num { font-family: var(--serif); font-weight: 500; font-size: 44px; line-height: 1; color: var(--light-blue); }
.steps h3 { font-family: var(--sans); font-size: 19px; font-weight: 700; line-height: 1.3; }
.steps p:last-child { color: var(--on-ink-muted); }

/* Contact */
.contact { padding-top: 56px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.contact h2 { font-size: clamp(42px, 5vw, 64px); }
.contact .btn { overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); }
.footer-inner { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 14px; }
.wordmark-light .wordmark-name { font-size: 20px; }
.wordmark-light .wordmark-rule { background: var(--light-blue); }
.wordmark-light .wordmark-sub { color: var(--light-blue); }
.footer-note { color: var(--on-ink-muted); }

/* Phones */
@media (max-width: 640px) {
  .hero-photo img { height: 400px; }
  .about-main { padding-top: 0; }
  .project h3 { font-size: 34px; }
  .template-grid .placeholder { height: 110px; }
  .wordmark-name { font-size: 18px; }
}
