/* ============================================================
   Kobe — Inner West websites
   Aesthetic: cream paper, considered-ugly, honest. The page IS
   the portfolio — make "I build websites" the loudest signal.
   Palette:
     bg     #f5efe3   warm cream
     ink    #1f3a8a   deep blue
     red    #c43b3b   marker red
   ============================================================ */

* { box-sizing: border-box; }

html {
  background: #f5efe3;
  color: #1f3a8a;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
}

.footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: #1f3a8a; text-decoration-color: rgba(31, 58, 138, 0.4); }
a:hover { text-decoration-color: #c43b3b; }

p { margin: 0 0 1rem; }

/* --- Sections (no dividers — generous space does the work) --- */

section {
  padding: 3rem 0;
  position: relative;
}

.hero {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

/* Reading-width container, used inside sections that are
   prose-only and shouldn't sprawl across the full 1140. */
.prose {
  max-width: 680px;
}

/* --- Headline ------------------------------------------------- */

h1 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 900;
  font-size: clamp(3rem, 13vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #1f3a8a;
  margin: 0 0 1.25rem;
  text-shadow:
    0.6px 0   0.7px rgba(31, 58, 138, 0.45),
   -0.6px 0   0.7px rgba(31, 58, 138, 0.45),
    0     0.6px 0.7px rgba(31, 58, 138, 0.35);
}

h1 .hl-line { display: block; }

h1 .hl-line--small {
  font-size: 0.5em;
  letter-spacing: -0.01em;
  color: #c43b3b;
  margin-top: 0.15em;
}

/* --- Section headings (Fraunces) ------------------------------ */

h2 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 900;
  font-size: clamp(1.75rem, 4.5vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

/* --- Lead paragraph ------------------------------------------- */

.lead {
  font-size: 1.15rem;
  line-height: 1.5;
  max-width: 38ch;
  margin-bottom: 1.5rem;
}

/* --- CTA buttons with scribbled red-marker circle ------------- */

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.25rem 0 0.5rem;
}

.btn {
  display: inline-block;
  position: relative;
  padding: 0.85rem 1.6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  color: #1f3a8a;
  background: transparent;
}

.btn__label { position: relative; z-index: 1; }

.btn .scribble {
  position: absolute;
  inset: -10px -16px;
  width: calc(100% + 32px);
  height: calc(100% + 20px);
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.btn:hover .scribble { transform: rotate(-1deg); }

.btn-secondary { color: #1f3a8a; }
.btn-secondary .scribble--frame { /* uses .scribble positioning, just a different shape */ }

.ctas__hint {
  font-family: "Caveat", cursive;
  font-size: 1.2rem;
  color: #1f3a8a;
  margin: 0.4rem 0 0;
  opacity: 0.85;
}

/* --- Hero layout (mobile = stacked, desktop = 2-col) ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.hero__copy { min-width: 0; }
.hero__previews { min-width: 0; }

/* --- Hero mini-sites ------------------------------------------ */

.mini-sites__caption {
  font-family: "Caveat", cursive;
  font-size: 1.4rem;
  font-weight: 700;
  color: #c43b3b;
  margin: 0.25rem 0 0.6rem;
  display: inline-block;
  transform: rotate(-3deg);
  transform-origin: left center;
}

.mini-sites {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.mini-site {
  width: 100%;
  height: auto;
  display: block;
}

.mini-site:nth-child(1) { transform: rotate(-1.2deg); }
.mini-site:nth-child(2) { transform: rotate( 1.4deg); }
.mini-site:nth-child(3) { transform: rotate( 0.8deg); }
.mini-site:nth-child(4) { transform: rotate(-1.6deg); }

/* --- "Who this is for" : tile list (uses the wide canvas) ----- */

.tile-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.tile-list li {
  position: relative;
  padding: 0.75rem 1rem 0.75rem 2.25rem;
  border: 2px solid #1f3a8a;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  font-size: 1.05rem;
}

.tile-list li::before {
  content: "—";
  position: absolute;
  left: 0.85rem;
  top: 0.75rem;
  color: #c43b3b;
  font-weight: 700;
}

/* --- "What you get" : red ✓ bullets, clean ------------------- */

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.check-list li {
  position: relative;
  padding: 0.25rem 0 0.25rem 2.25rem;
  font-size: 1.1rem;
  line-height: 1.45;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: #c43b3b;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

/* --- "Who this is for" : 4th tile is the blanket catch-all ---- */

.tile-list .tile-list__catch {
  border-style: dashed;
  font-style: italic;
  padding-left: 1rem;
  text-align: center;
  opacity: 0.9;
}

.tile-list .tile-list__catch::before {
  content: "";
}

/* --- "How it works" : numbered steps -------------------------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.steps li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1rem;
  align-items: start;
  font-size: 1.05rem;
  line-height: 1.5;
}

.step__num {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: #c43b3b;
  color: #f5efe3;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step__body { padding-top: 0.2rem; }

/* --- "Why $500?" : red-marker circle around a phrase ---------- */

.circled {
  position: relative;
  display: inline-block;
  padding: 0 0.3rem;
  white-space: nowrap;
}

.circled::after {
  content: "";
  position: absolute;
  inset: -6px -10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'><ellipse cx='100' cy='30' rx='94' ry='24' stroke='%23c43b3b' stroke-width='3' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  transform: rotate(-1.5deg);
}

/* --- About : Sharpie coffee-cup margin doodle ----------------- */

.about .prose { position: relative; padding-right: 5rem; }

.doodle--cup {
  position: absolute;
  top: 0.25rem;
  right: 0;
  width: 56px;
  height: 56px;
  transform: rotate(8deg);
}

/* --- FAQ ------------------------------------------------------ */

.faq__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2.5rem;
}

.qa { }

.qa .q {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: #c43b3b;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.qa .a { margin: 0; }

/* --- Contact form (notebook lines, no boxes) ----------------- */

.contact__lead {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-form { max-width: 540px; }

.field { margin-bottom: 1.5rem; }

.field label {
  display: block;
  font-size: 1rem;
  color: #1f3a8a;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.field .req { color: #c43b3b; margin-left: 0.15rem; }

.field .optional {
  color: rgba(31, 58, 138, 0.6);
  font-weight: 400;
  font-size: 0.92em;
  margin-left: 0.25rem;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0;
  border: none;
  border-bottom: 2px solid #1f3a8a;
  border-radius: 0;
  background: transparent;
  font: inherit;
  color: #1f3a8a;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(31, 58, 138, 0.5);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-width: 2.5px;
  border-bottom-color: #c43b3b;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid rgba(196, 59, 59, 0.25);
  outline-offset: 4px;
}

/* Honeypot: visually hidden, still focusable so bots find it. */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__actions { margin: 2rem 0 1rem; }

/* .btn rules assumed an <a>; the submit button needs the resets. */
button.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.contact-form__privacy {
  font-size: 0.92rem;
  color: rgba(31, 58, 138, 0.7);
  font-style: italic;
  margin: 0;
}

.contact-aside__heading {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 1.5rem;
  color: #c43b3b;
  margin: 0 0 0.4rem;
  transform: rotate(-2deg);
  transform-origin: left center;
  display: inline-block;
}

.contact-aside__phone {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  line-height: 1.1;
}

.contact-aside__phone a {
  text-decoration: none;
  color: #1f3a8a;
}

.contact-aside__phone a:hover { color: #c43b3b; }

.contact-aside__hint {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

.contact-aside__email {
  margin: 0;
  font-size: 0.95rem;
}

/* --- Footer (full-width deep-blue endcap) -------------------- */

footer {
  background: #1f3a8a;
  color: #f5efe3;
  padding: 2.5rem 0;
  margin-top: 2rem;
  font-size: 0.95rem;
}

footer p { margin: 0 0 0.5rem; }
footer p:last-child { margin: 0; }

footer a {
  color: #f5efe3;
  text-decoration-color: rgba(245, 239, 227, 0.55);
}
footer a:hover {
  text-decoration-color: #c43b3b;
}

.footer__suburbs {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* --- Tablet --------------------------------------------------- */

@media (min-width: 640px) {
  .tile-list { grid-template-columns: 1fr 1fr; }
  .tile-list .tile-list__catch { grid-column: 1 / -1; }
  .check-list { grid-template-columns: 1fr 1fr; }
  .faq__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 1.25rem 2.5rem; }
}

/* --- Desktop -------------------------------------------------- */

@media (min-width: 900px) {
  body { font-size: 18px; }

  main { padding: 0 2rem; }
  .footer__inner { padding: 0 2rem; }

  .hero {
    grid-template-columns: 1.05fr 1fr;
    gap: 2.5rem;
    padding-top: 3rem;
    padding-bottom: 3.5rem;
    align-items: center;
  }

  .check-list { grid-template-columns: repeat(3, 1fr); }

  .doodle--cup { width: 70px; height: 70px; }

  .contact__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
    gap: 3.5rem;
  }
}

/* --- Wide desktop --------------------------------------------- */

@media (min-width: 1100px) {
  .hero { gap: 3.5rem; }
  .mini-sites { gap: 1rem; }
}

/* Respect reduced motion — strip the playful rotations. */
@media (prefers-reduced-motion: reduce) {
  .mini-site,
  .mini-sites__caption,
  .doodle--cup,
  .circled::after { transform: none; }
}
