/* JM Design — one-page site. Self-contained; no build step. */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  font-optical-sizing: auto;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  font-optical-sizing: auto;
}

@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3eee4;
  --bg-alt: #eae3d6;
  --cream: #fbf8f1;
  --ink: #1b1814;
  --muted: #5e584f;
  --line: #d4cec1;
  --pine: #2a4638;
  --pine-hover: #1e3329;
  --pine-soft: #e4ebe6;
  --copper: #a85a32;
  --shadow: 0 18px 40px rgba(27, 24, 20, 0.12);
  --radius: 14px;
  --max: 1120px;
  --header-h: 4.25rem;
  --font-sans: "Outfit", "Segoe UI", sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ease: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pine);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--copper);
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--pine);
  color: var(--cream);
  padding: 0.5rem 0.85rem;
  z-index: 100;
  border-radius: 6px;
}

.skip:focus {
  top: 0.75rem;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.45rem;
}

.logo-word {
  font-family: var(--font-serif);
  font-weight: 560;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-word span {
  font-style: italic;
  font-weight: 450;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--pine);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
}

.menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  margin: auto;
  display: block;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--pine);
  color: var(--cream);
  text-decoration: none;
  border: 1px solid var(--pine);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 560;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}

.btn:hover {
  background: var(--pine-hover);
  color: var(--cream);
  border-color: var(--pine-hover);
}


.btn:disabled {
  opacity: 0.65;
  cursor: progress;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--muted);
}

.btn-header {
  padding: 0.5rem 0.95rem;
  font-size: 0.88rem;
}

/* Hero */

.hero {
  padding: 3.5rem 0 4.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3.25rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-weight: 560;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.15rem);
  font-weight: 520;
}

h1 em {
  font-style: italic;
  font-weight: 450;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 1.25rem 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.email-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.email-link:hover {
  color: var(--pine);
  border-color: var(--pine);
}

.hero-photo {
  margin: 0;
  position: relative;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3.05;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg-alt);
}

.hero-photo figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Sections */

section {
  padding: 4.25rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.4rem;
}

.section-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.55rem;
}

h2 {
  font-size: clamp(1.85rem, 3vw, 2.45rem);
}

.section-head p {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

/* Services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.2rem 1.3rem;
}

.service h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.service p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Work */

.work-feature {
  margin: 0 0 1rem;
}

.work-feature img,
.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: #cfc8bb;
}

.work-copy {
  padding: 1rem 0.15rem 0.25rem;
}

.work-copy h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.work-copy p {
  margin: 0;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* How it works */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}

.steps li {
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 560;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--copper);
  margin: 0.95rem 0 0.5rem;
  font-variant-numeric: lining-nums tabular-nums;
}

.steps h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Pricing */

.price-list {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) max-content minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1.05rem 1.25rem;
  border-top: 1px solid var(--line);
}

.price-row:first-child {
  border-top: 0;
}

.price-job {
  font-weight: 560;
}

.price-amt {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 540;
  white-space: nowrap;
}

.price-note {
  color: var(--muted);
  font-size: 0.95rem;
  text-align: right;
}

.price-footnote {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Area */

.towns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.towns li {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.92rem;
}

.area-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}

.faq h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.faq p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: start;
}

.contact-aside p {
  color: var(--muted);
}

.contact-meta {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-meta li {
  margin: 0 0 0.85rem;
}

.contact-meta span {
  display: block;
  font-size: 0.75rem;
  font-weight: 560;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.2rem;
}

form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.field {
  margin-bottom: 0.9rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 560;
  margin-bottom: 0.3rem;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--pine);
  outline-offset: 1px;
  border-color: var(--pine);
}

textarea {
  min-height: 8.5rem;
  resize: vertical;
}


.file-drop {
  position: relative;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 1.15rem 1rem;
  text-align: center;
  transition: border-color var(--ease), background var(--ease);
}

.file-drop:hover,
.file-drop:focus-within,
.file-drop.is-dragover {
  border-color: var(--pine);
  background: var(--pine-soft);
}

.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
  padding: 0;
  border: 0;
}

.file-drop-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  pointer-events: none;
}

.file-browse {
  color: var(--pine);
  font-weight: 560;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.file-list {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
}

.file-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.file-list li:last-child {
  border-bottom: 0;
}

.file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.file-remove {
  font: inherit;
  font-size: 0.85rem;
  color: var(--pine);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.file-remove:hover {
  color: var(--pine-hover);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 0.4rem;
}

.form-note,
.form-status {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.form-status[data-state="ok"] {
  color: var(--pine);
}

.form-status[data-state="error"] {
  color: #8a2a1f;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
}

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

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

/* Responsive */

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a,
  .nav .btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0.7rem 0;
    border-radius: 0;
  }

  .nav .btn {
    width: auto;
    justify-content: center;
    margin-top: 0.35rem;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
  }

  .hero-grid,
  .contact-grid,
  .services-grid,
  .steps,
  .work-grid,
  .field-row,
  .price-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.25rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .price-note {
    text-align: left;
  }

  .price-row {
    gap: 0.2rem;
  }
}

@media (max-width: 560px) {
  .wrap,
  .header-inner,
  .footer-inner {
    width: min(var(--max), calc(100% - 1.75rem));
  }

  section {
    padding: 3.15rem 0;
  }

  .services-grid {
    gap: 0.75rem;
  }

  form {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
