/* ==========================================================================
   Jeremy the Computer Doctor — warm paper "house call" theme
   ========================================================================== */

:root {
  --paper: #faf4e8;
  --paper-deep: #f2e8d4;
  --card: #fffdf6;
  --ink: #2a2418;
  --ink-soft: #6f6350;
  --green: #1e6b45;
  --green-deep: #174f34;
  --green-tint: #e4efe4;
  --amber: #e9a63b;
  --amber-deep: #c9820f;
  --amber-tint: #f9ecd0;
  --line: #e3d7bc;
  --shadow: 0 2px 4px rgba(58, 46, 22, 0.06), 0 12px 32px rgba(58, 46, 22, 0.10);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  /* subtle paper grain */
  background-image: radial-gradient(rgba(58, 46, 22, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
}

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

a { color: var(--green); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Notice bar
   -------------------------------------------------------------------------- */

.notice {
  background: var(--green-deep);
  color: #f3f7ef;
  font-size: 0.9rem;
  text-align: center;
  padding: 9px 16px;
}

.notice strong { color: #ffd98a; font-weight: 700; }

.notice a { color: #ffd98a; text-decoration-color: rgba(255, 217, 138, 0.5); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 244, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .bar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.1;
  white-space: nowrap;
}

.wordmark .cross {
  width: 34px;
  height: 34px;
  flex: none;
}

.wordmark small {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
}

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

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

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-green {
  background: var(--green);
  color: #fffdf6;
}

.btn-outline {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}

.btn-amber {
  background: var(--amber);
  color: #3a2a08;
}

.site-nav .btn { padding: 9px 18px; font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { overflow: hidden; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-tint);
  border: 1px solid rgba(30, 107, 69, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

h1 em {
  font-style: italic;
  color: var(--green);
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 26px;
}

.hero .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.trust-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
}

.chip b { color: var(--green); }

/* portrait */

.portrait {
  position: relative;
  justify-self: center;
}

.portrait .arch {
  width: min(340px, 80vw);
  aspect-ratio: 3 / 3.7;
  border-radius: 999px 999px 24px 24px;
  background: linear-gradient(180deg, var(--amber-tint), var(--paper-deep));
  border: 3px solid var(--green);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.portrait img {
  width: 100%;
  height: 96%;
  object-fit: contain;
  object-position: bottom center;
  margin: 0 auto;
}

.portrait .sticker {
  position: absolute;
  bottom: 18px;
  left: -26px;
  background: var(--amber);
  color: #3a2a08;
  font-family: var(--font-hand);
  font-size: 1.45rem;
  line-height: 1.1;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 14px;
  transform: rotate(-4deg);
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

section { padding: 72px 0; }

.section-head {
  max-width: 620px;
  margin-bottom: 40px;
}

.kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 10px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-head p { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   The List (prescription pad)
   -------------------------------------------------------------------------- */

.list-section { background: var(--paper-deep); border-block: 1px solid var(--line); }

.list-section .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.list-section .copy p { margin-bottom: 16px; }

.list-section .copy .super {
  font-weight: 800;
  color: var(--green);
}

.notepad {
  background: #fffef4;
  border: 1px solid #e8ddb8;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 26px 30px 34px;
  transform: rotate(1.2deg);
  position: relative;
  max-width: 420px;
  justify-self: center;
  width: 100%;
}

.notepad::before {
  /* torn top strip */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 12px;
  background: repeating-linear-gradient(90deg, #e8ddb8 0 14px, transparent 14px 22px);
  opacity: 0.55;
  border-radius: 10px 10px 0 0;
}

.notepad h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green-deep);
  border-bottom: 2px solid var(--green);
  padding-bottom: 10px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.notepad h3 .rx {
  font-size: 1.6rem;
  color: var(--amber-deep);
}

.notepad ul { list-style: none; }

.notepad li {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  line-height: 1.2;
  color: #3c342c;
  padding: 9px 0 9px 34px;
  border-bottom: 1px solid #e9e0c2;
  position: relative;
}

.notepad li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  border: 2px solid var(--amber-deep);
  border-radius: 4px;
  background: #fffef4;
}

.notepad li.done::before {
  background: var(--green);
  border-color: var(--green);
}

.notepad li.done::after {
  content: "✓";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-52%);
  color: #fffef4;
  font-size: 0.95rem;
  font-weight: 900;
  font-family: var(--font-body);
}

.notepad .scribble {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--green);
  margin-top: 14px;
  transform: rotate(-1.5deg);
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.svc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.svc:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.svc .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-tint);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.svc:nth-child(even) .icon { background: var(--amber-tint); }

.svc h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.svc p { font-size: 0.97rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Builds
   -------------------------------------------------------------------------- */

.builds { background: var(--paper-deep); border-block: 1px solid var(--line); }

.build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.build-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.build-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.build-card .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a1a22;
}

.build-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.build-card .body { padding: 20px 22px 24px; }

.build-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.build-card p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 12px; }

.build-card .more {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--green);
}

/* --------------------------------------------------------------------------
   Why Jeremy — the honest comparison
   -------------------------------------------------------------------------- */

.compare-table {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

.compare-table > div {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.compare-table .col-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  background: var(--paper-deep);
}

.compare-table .row-label {
  font-weight: 800;
  color: var(--ink);
  background: var(--paper-deep);
}

.compare-table .jeremy {
  background: var(--green-tint);
  font-weight: 700;
  color: var(--green-deep);
  border-left: 3px solid var(--green);
}

.compare-table .col-head.jeremy {
  background: var(--green);
  color: #fffdf6;
  font-size: 1.05rem;
}

.compare-table .other { color: var(--ink-soft); }

.compare-table > div:nth-last-child(-n+4) { border-bottom: none; }

.compare-fine {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 14px;
  max-width: 72ch;
}

/* the family box */

.family {
  margin-top: 44px;
  background: var(--amber-tint);
  border: 1px dashed var(--amber-deep);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
}

.family .rx-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--amber);
  color: #3a2a08;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  flex: none;
}

.family h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.family p { color: #5c4d2c; margin-bottom: 10px; }
.family p:last-child { margin-bottom: 0; }
.family a { color: var(--green-deep); font-weight: 700; }

@media (max-width: 820px) {
  .compare-table { grid-template-columns: 1fr; }
  .compare-table .row-label {
    justify-content: flex-start;
    background: var(--paper-deep);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 8px;
  }
  .compare-table .col-head { display: none; }
  .compare-table .jeremy::before,
  .compare-table .other::before {
    content: attr(data-who) ": ";
    font-weight: 800;
    margin-right: 6px;
    flex: none;
  }
  .family { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Service area
   -------------------------------------------------------------------------- */

.area .cities {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.city {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
}

.city svg { width: 16px; height: 16px; flex: none; }

.area .remote-note {
  background: var(--green-tint);
  border: 1px dashed var(--green);
  border-radius: var(--radius);
  padding: 18px 22px;
  max-width: 560px;
}

.area .remote-note b { color: var(--green-deep); }

/* --------------------------------------------------------------------------
   Contact band
   -------------------------------------------------------------------------- */

.contact-band {
  background: var(--green-deep);
  color: #f3f7ef;
  text-align: center;
}

.contact-band h2 { color: #fffdf6; }

.contact-band .phone {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #ffd98a;
  text-decoration: none;
  display: inline-block;
  margin: 10px 0 24px;
}

.contact-band p.sub {
  color: #c9d8c5;
  max-width: 52ch;
  margin: 0 auto 8px;
}

.contact-band .cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.contact-band .btn-outline {
  border-color: #ffd98a;
  color: #ffd98a;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 34px 0 44px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer a { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Build detail pages
   -------------------------------------------------------------------------- */

.story {
  padding: 56px 0 72px;
}

.story .wrap { max-width: 760px; }

.crumb {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.crumb a { text-decoration: none; }

.story h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }

.story .photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin: 28px 0;
}

.story .photo img { width: 100%; }

.story p { margin-bottom: 18px; color: #453b2b; }

.story .pull,
.story blockquote {
  font-family: var(--font-hand);
  font-size: 1.7rem;
  color: var(--green);
  border-left: 4px solid var(--amber);
  padding-left: 18px;
  margin: 26px 0;
}

.story blockquote p {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .site-nav a:not(.btn) { display: none; }

  .hero .wrap { grid-template-columns: 1fr; }
  .portrait { order: -1; }
  .portrait .arch { width: min(260px, 70vw); }
  .portrait .sticker { left: -8px; }

  .list-section .cols { grid-template-columns: 1fr; gap: 36px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .build-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  section { padding: 52px 0; }
  .svc-grid { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 40px; }
  .wordmark small { display: none; }
}
