/* jamesbigney.com
   Plain CSS, no build step. Colors and fonts live in the variables below.
   Mobile first: the base rules are for phones, @media blocks widen things up. */

:root {
  --cream: #FAF6F1;
  --orange: #E05C31;
  --orange-deep: #B94420;   /* darker orange for text and focus rings so it reads on cream */
  --ink: #211D19;
  --ink-soft: #5E564F;      /* secondary text on cream */
  --line: #E4DCD2;          /* borders and rules */
  --card: #FFFFFF;
  --footer-text: #F3ECE3;

  --font-display: "Khand", "Arial Narrow", Impact, sans-serif;
  --font-body: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;

  --content-width: 70rem;   /* 1120px */
  --pad-section: 4rem;      /* 64px on phones */
  --header-height: 4.5rem;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;         /* 16px on phones */
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-deep); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
p, li { max-width: 65ch; }
ul { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--orange-deep);
  outline-offset: 3px;
}
[id] { scroll-margin-top: calc(var(--header-height) + 1rem); }

/* Type */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}
h1 { font-size: clamp(2.75rem, 3vw + 1.75rem, 4.75rem); }
h2 { font-size: clamp(2.125rem, 2vw + 1.25rem, 3.25rem); }
h3 { font-size: clamp(1.5rem, 1vw + 1rem, 1.875rem); }
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 0.75rem;
}
.lead { font-size: 1.125rem; color: var(--ink-soft); }

/* Layout */
.section { padding: var(--pad-section) 1.25rem; }
.section-inner { width: 100%; max-width: var(--content-width); margin: 0 auto; }
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 2rem; }
.section-head p { margin: 0; }

/* Buttons: orange fill with ink text so the label reads at WCAG AA */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;                    /* 48px tap target */
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--orange);
  border-radius: 6px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.btn:hover { background: #E86B42; border-color: #E86B42; color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  font-weight: 700;
  color: var(--ink);
}
.text-link:hover { color: var(--orange-deep); }

/* Skip link: hidden until a keyboard reaches it */
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}
.site-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.site-nav { order: 3; width: 100%; }
.site-nav ul { list-style: none; display: flex; gap: 0.25rem; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.625rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-radius: 4px;
}
.site-nav a:hover { color: var(--orange-deep); }
.header-phone { min-height: 2.75rem; padding: 0.5rem 1rem; }

@media (min-width: 48rem) {
  body { font-size: 1.0625rem; }        /* 17px on desktop */
  :root { --pad-section: 6rem; }        /* 96px */
  .section { padding-left: 2rem; padding-right: 2rem; }
  .header-inner { padding: 1rem 2rem; flex-wrap: nowrap; }
  .site-name { font-size: 2rem; }
  .site-nav { order: 0; width: auto; margin-left: auto; }
  .site-nav ul { gap: 0.5rem; }
  .site-nav a { padding: 0 0.875rem; }
  .header-phone { min-height: 3rem; }
}

/* Hero */
.hero { padding: 4rem 1.25rem 4.5rem; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 20ch; margin-bottom: 1.25rem; }
.hero-subheadline { font-size: 1.125rem; color: var(--ink-soft); margin: 0 0 2rem; max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }

@media (min-width: 48rem) {
  .hero { padding: 7rem 2rem 7.5rem; }
  .hero-subheadline { font-size: 1.25rem; }
}

/* Phone screenshot beside the hero text. Hidden until the screen is 1024px wide. */
.hero-phone { display: none; }
.phone-frame {
  width: 17rem;                          /* 272px wide, about 610px tall */
  border: 0.75rem solid var(--ink);
  border-radius: 2.5rem;
  background: var(--ink);
  overflow: hidden;
}
.phone-frame img { width: 100%; border-radius: 1.75rem; }

@media (min-width: 64rem) {
  .hero { padding: 5rem 2rem 5.5rem; }
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4rem;
    align-items: center;
  }
  .hero-phone { display: block; }
}

/* Who it's for */
.who-grid { display: grid; gap: 1.25rem; }
.who-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
}
.who-card h3 { margin-bottom: 0.25rem; }
.who-card p { margin: 0; }
.who-list { color: var(--ink-soft); font-weight: 700; margin-bottom: 0.75rem !important; }

@media (min-width: 48rem) {
  .who-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .who-card { padding: 2.25rem 2rem; }
}

/* What you get */
.get-list { list-style: none; display: grid; gap: 1.5rem; counter-reset: get; }
.get-item { padding-top: 1rem; border-top: 2px solid var(--line); position: relative; }
.get-item::before {
  counter-increment: get;
  content: counter(get, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--orange-deep);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.get-item h3 { font-size: 1.5rem; margin-bottom: 0.375rem; }
.get-item p { margin: 0; color: var(--ink-soft); }

@media (min-width: 48rem) {
  .get-list { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
}

/* Work */
.work-grid { display: grid; gap: 2rem; }
.work-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.work-image-link { display: block; border-bottom: 1px solid var(--line); }
.work-image-link img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.work-body { padding: 1.5rem; }
.work-body h3 { margin-bottom: 0.125rem; }
.work-meta { color: var(--ink-soft); font-weight: 700; margin: 0 0 0.75rem; }
.work-body p { margin-bottom: 0.5rem; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 48rem) {
  /* One card sits on the left at a comfortable width; three cards fill the row. */
  .work-grid { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
  .work-card { max-width: 34rem; width: 100%; }
  .work-body { padding: 1.75rem 2rem 2rem; }
}

/* Pricing */
.price-card {
  background: var(--ink);
  color: var(--footer-text);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  max-width: 34rem;
  margin: 0 auto;                        /* centered under the heading */
}
.price-figures { display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; margin-bottom: 0.5rem; }
.price-figure { margin: 0; line-height: 1; }
.price-amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3.5rem;
  color: var(--orange);
  letter-spacing: 0.01em;
}
.price-label { font-weight: 700; font-size: 1.125rem; margin-left: 0.25rem; }
.price-terms { margin: 0 0 1.5rem; color: #C9BFB3; }
.price-list { list-style: none; margin-bottom: 1.5rem; }
.price-list li { padding: 0.625rem 0 0.625rem 1.75rem; border-top: 1px solid #3A342E; position: relative; }
.price-list li:last-child { border-bottom: 1px solid #3A342E; }
.price-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.2rem;
  width: 0.75rem; height: 0.75rem;
  border-radius: 50%;
  background: var(--orange);
}
.price-note { color: #C9BFB3; margin: 0 0 1.75rem; }
.price-card .btn { width: 100%; }

.pricing-inner .section-head { text-align: center; }
.pricing-inner .section-head p { margin-left: auto; margin-right: auto; }

@media (min-width: 48rem) {
  .price-card { padding: 2.75rem 2.5rem; }
  .price-amount { font-size: 4.5rem; }
  .price-card .btn { width: auto; }
}

/* About */
.about-text p { font-size: 1.125rem; margin: 0 0 1.25rem; }
.about-text p:last-child { margin-bottom: 0; }

@media (min-width: 48rem) {
  .about-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }
  .about-inner .section-head { margin-bottom: 0; }
  .about-text p { font-size: 1.25rem; }
}

/* Contact */
.contact-list { list-style: none; display: grid; gap: 1.5rem; max-width: 40rem; }
.contact-item {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem 0;
  border-top: 2px solid var(--line);
}
.contact-label {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-value {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.5vw + 1.25rem, 2.5rem);
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  padding: 0.25rem 0;
}
.contact-value:hover { color: var(--orange-deep); text-decoration: underline; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }

/* Footer */
.site-footer { background: var(--ink); color: var(--footer-text); padding: 3rem 1.25rem; }
.footer-inner { text-align: center; }
.footer-inner p { max-width: none; margin: 0 0 0.5rem; }
.footer-name { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; line-height: 1; margin-bottom: 0.75rem !important; }
.footer-meta { color: #C9BFB3; }
.footer-legal { margin-top: 1rem !important; }
.footer-legal a { color: var(--footer-text); display: inline-block; padding: 0.5rem 0.25rem; }
.footer-legal a:hover { color: var(--orange); }

@media (min-width: 48rem) {
  .site-footer { padding: 4rem 2rem; }
}

/* Legal pages: one narrow column */
.legal { padding: 3rem 1.25rem 4rem; }
.legal-inner { max-width: 44rem; }
.legal h1 { margin-bottom: 0.25rem; }
.legal h2 { font-size: 1.625rem; margin-top: 2rem; }
.legal-updated { color: var(--ink-soft); margin-top: 0; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.5rem; }
.legal-note {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

@media (min-width: 48rem) {
  .legal { padding: 5rem 2rem 6rem; }
}

/* Less motion for people who ask for it */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .btn:hover { transform: none; }
}
