/*
 * omayoglu.com — PicoDevCo. Websites and business systems for Australian
 * businesses. Hand-written, no framework. Light-first; dark is the same
 * system re-toned and only applies when explicitly chosen.
 */

:root {
  --bg:        #f1f0ec;
  --surface:   #fbfaf9;
  --surface-2: #e8e6e0;
  --line:      #dcd9d2;
  --text:      #16171a;
  --muted:     #5a5d64;
  --accent:    #b4380f;
  --accent-ink:#ffffff;
  --maxw:      62rem;
  --r:         0.5rem;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg:        #131417;
  --surface:   #1b1d21;
  --surface-2: #232529;
  --line:      #2e3137;
  --text:      #eceef1;
  --muted:     #9ba1aa;
  --accent:    #ff7a45;
  --accent-ink:#17181b;
  color-scheme: dark;
}

/* Light is the default for everyone — the OS dark preference is deliberately
   not auto-honoured. Dark is available, but only when explicitly chosen. */

* { box-sizing: border-box; }

html { transition: background-color 0.2s ease, color 0.2s ease; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }

h1, h2, h3 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 {
  font-size: clamp(2.1rem, 4.6vw + 0.5rem, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 19ch;
}
h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2rem); line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: 1.1875rem; }

.mono { font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 0.75rem; padding-block: 0.7rem; }
.brand { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 600; text-decoration: none; }
.brand small { display: block; font-size: 0.6875rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }
.pill {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; color: var(--muted);
}
@media (max-width: 720px) { .pill span:last-child { display: none; } }

.dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--accent); flex: none; }
.dot.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.tbtn {
  font: 500 0.75rem/1 'DM Mono', ui-monospace, monospace;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); color: var(--muted); cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.tbtn:hover { color: var(--text); border-color: var(--muted); }

/* ------------------------------------------------------------------ hero */

.hero { padding-block: 3.25rem 2.5rem; }
@media (min-width: 900px) { .hero { padding-block: 4.25rem 3rem; } }
.hero-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.02fr 0.98fr; gap: 3.25rem; align-items: center; }
}

.lead { margin: 1.375rem 0 0; font-size: 1.125rem; line-height: 1.6; color: var(--muted); max-width: 48ch; }
.lead strong { color: var(--text); font-weight: 600; }

.actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.625rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.15rem; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: 600 0.9375rem/1 'Manrope', system-ui, sans-serif; text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.micro { margin-top: 0.875rem; font-size: 0.875rem; color: var(--muted); }

/* Screenshot of a real, live build — proof beats a diagram for a buyer. */
.shot {
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: var(--surface);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.shot img { width: 100%; height: auto; }
.shot figcaption {
  padding: 0.7rem 0.9rem; font-size: 0.8125rem; color: var(--muted);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; align-items: baseline;
}

/* ----------------------------------------------------------- proof strip */

.proof {
  display: grid; gap: 0;
  border-block: 1px solid var(--line);
  background: var(--surface-2);
}
@media (min-width: 780px) { .proof { grid-template-columns: repeat(4, 1fr); } }
.proof div {
  padding: 1.05rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.proof div:last-child { border-bottom: none; }
@media (min-width: 780px) {
  .proof div { border-bottom: none; border-right: 1px solid var(--line); }
  .proof div:last-child { border-right: none; }
}
.proof b { display: block; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-size: 0.9375rem; }
.proof span { font-size: 0.8125rem; color: var(--muted); }

/* --------------------------------------------------------------- blocks */

.block { padding-block: 3.25rem 0; }
.block > h2 + .sub { margin: 0.625rem 0 0; color: var(--muted); font-size: 1.0625rem; max-width: 56ch; }
.block-head { margin-bottom: 2rem; }

.grid2 { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .grid2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color 0.2s ease;
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--muted); }
@media (min-width: 820px) { .card { padding: 1.75rem; } }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.62; }
.card p + p { margin-top: 0.75rem; }
.card .built { margin-top: 0.875rem; font-size: 0.8125rem; color: var(--muted); }

/* work cards carry an image where one exists */
.work { padding: 0; overflow: hidden; }
.work .body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
@media (min-width: 820px) { .work .body { padding: 1.75rem; } }
.work img { border-bottom: 1px solid var(--line); }
.tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font: 500 0.6875rem/1 'DM Mono', ui-monospace, monospace;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.7rem;
}
.was { color: var(--text); font-size: 1rem; font-weight: 500; }
.foot { margin-top: auto; padding-top: 1.125rem; }

.live-link {
  display: inline-block;
  font: 500 0.875rem/1.4 'DM Mono', ui-monospace, monospace;
  color: var(--accent); text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1.5px;
  transition: background-size 0.22s ease-out;
}
.live-link:hover, .live-link:focus-visible { background-size: 100% 1.5px; }
.live-link::after { content: " \2192"; }
.note { font-size: 0.8125rem; color: var(--muted); }

/* ----------------------------------------------------------- steps / own */

.steps { display: grid; gap: 1.25rem; counter-reset: s; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding-top: 1.125rem; border-top: 2px solid var(--accent); }
.step b {
  display: block; font: 500 0.75rem/1 'DM Mono', ui-monospace, monospace;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.5rem;
}
.step h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.step p { margin: 0; font-size: 0.9375rem; color: var(--muted); line-height: 1.55; }

.owns { display: grid; gap: 0.75rem; }
@media (min-width: 820px) { .owns { grid-template-columns: repeat(2, 1fr); } }
.own {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 1rem 1.15rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.own svg { width: 1.1rem; height: 1.1rem; flex: none; margin-top: 0.15rem; color: var(--accent); }
.own b { display: block; font-size: 0.9375rem; }
.own span { font-size: 0.875rem; color: var(--muted); }

/* ------------------------------------------------------------------ faq */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1.05rem 0; list-style: none;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 600; font-size: 1.0625rem;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: 0 0 1.1rem; color: var(--muted); font-size: 0.9375rem; max-width: 68ch; }

/* --------------------------------------------------------------- prose */

.prose p { margin: 0 0 1rem; font-size: 1.0625rem; line-height: 1.66; color: var(--muted); max-width: 62ch; }
.prose p strong { color: var(--text); font-weight: 600; }

.cta {
  margin-top: 3.25rem;
  padding: 2rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  text-align: center;
}
@media (min-width: 820px) { .cta { padding: 2.5rem; } }
.cta h2 { margin-bottom: 0.6rem; }
.cta p { margin: 0 auto; color: var(--muted); max-width: 46ch; }
.cta .actions { justify-content: center; }

.site-footer {
  margin-top: 4rem; border-top: 1px solid var(--line);
  padding-block: 1.5rem 2.5rem; font-size: 0.8125rem; color: var(--muted);
}
.site-footer a { color: var(--muted); }

/* -------------------------------------------------------------- motion */

.reveal { opacity: 1; }
.js .reveal {
  opacity: 0.01; transform: translateY(14px);
  transition: opacity 480ms cubic-bezier(0.22,1,0.36,1), transform 480ms cubic-bezier(0.22,1,0.36,1);
}
.js .reveal.in { opacity: 1; transform: none; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
