/* ============================================================
   kamilk.dev — earth-toned editorial portfolio
   ============================================================ */

:root {
  /* Warm gray base + quiet slate accent */
  --ink: #2B2B29;          /* warm charcoal, primary text */
  --ink-soft: #56554F;     /* body copy */
  --paper: #F0EDEA;        /* light warm gray, page background */
  --stone: #E5E1DB;        /* slightly deeper, alt sections/cards */
  --stone-deep: #CCC8C0;   /* borders, dividers */
  --sage: #8A8880;         /* neutral mid-tone */
  --sage-deep: #6E6C65;    /* small text on stone */
  --clay: #5A7A8A;         /* desaturated slate blue, accent */
  --clay-deep: #486A78;    /* accent hover */

  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --measure: 65ch;
  --maxw: 1140px;
  --gutter: clamp(1.5rem, 5vw, 5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 17px;
}

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

a { color: var(--clay); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--clay-deep); }
a:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Small caps utility label */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--sage-deep);
}

/* ============================================================
   HEADER
   ============================================================ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stone-deep);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.wordmark:hover { color: var(--ink); }
.wordmark .dot { color: var(--clay); }

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

.nav a {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav a:hover { color: var(--clay); }

.nav .nav-cta {
  font-size: 0.88rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  transition: all 0.2s;
}
.nav .nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.5rem; color: var(--ink);
  cursor: pointer;
}

/* ============================================================
   HERO — asymmetric editorial, left-weighted
   ============================================================ */
.hero {
  padding-top: clamp(3.5rem, 9vw, 7rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.hero-lede h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  margin: 1.4rem 0 0;
  max-width: 14ch;
}

.hero-lede h1 em {
  font-style: italic;
  color: var(--clay);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-top: 1.6rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--clay);
  color: var(--paper);
  transform: translateY(-1px);
}
.btn-text {
  color: var(--ink);
  padding: 0.85rem 0.4rem;
}
.btn-text:hover { color: var(--clay); }
.btn-text .arr { transition: transform 0.2s; }
.btn-text:hover .arr { transform: translateX(3px); }

/* The little locator chip */
.locator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--sage-deep);
  font-weight: 500;
}
.locator .pin {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--clay);
  flex-shrink: 0;
}

.hero-lede-wide {
  max-width: 680px;
}

.hero-lede-wide h1 {
  max-width: 16ch;
}

.hero-lede-wide .hero-sub {
  max-width: 56ch;
}

/* Hero portrait card (for pages that use it) */
.hero-card {
  background: var(--stone);
  border: 1px solid var(--stone-deep);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   MARQUEE / TRUST STRIP
   ============================================================ */
.trust {
  border-top: 1px solid var(--stone-deep);
  border-bottom: 1px solid var(--stone-deep);
  padding: 1.4rem 0;
  background: var(--stone);
}
.trust-inner {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  flex-wrap: wrap;
  justify-content: space-between;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.trust-item .num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--ink);
  line-height: 1;
}
.trust-item .lbl {
  font-size: 0.78rem;
  color: var(--sage-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section { scroll-margin-top: 5rem; }

.band { padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.band-stone { background: var(--stone); border-top: 1px solid var(--stone-deep); border-bottom: 1px solid var(--stone-deep); }

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: baseline;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head .idx {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--clay);
  font-style: italic;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 18ch;
}
.section-head .sub {
  grid-column: 2;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-top: 0.4rem;
}

/* ============================================================
   WORK — browser-framed mockups (meta: the work is websites)
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 2.8rem);
}

.project {
  display: flex;
  flex-direction: column;
}

.browser {
  border: 1px solid var(--stone-deep);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(43,48,38,0.04);
  transition: transform 0.25s, box-shadow 0.25s;
}
.project:hover .browser {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(43,48,38,0.10);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  background: var(--stone);
  border-bottom: 1px solid var(--stone-deep);
}
.browser-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--stone-deep); }
.browser-bar .url {
  margin-left: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--sage-deep);
  background: var(--paper);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  flex: 1;
}
.browser-shot { aspect-ratio: 16/10; overflow: hidden; background: var(--stone); }
.browser-shot img { width: 100%; height: 100%; object-fit: cover; }

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1rem 0.2rem 0;
}
.project-meta h3 {
  font-size: 1.25rem;
}
.project-meta .tag {
  font-size: 0.78rem;
  color: var(--sage-deep);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.project p {
  padding: 0.5rem 0.2rem 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 48ch;
}

/* Clickable project cards (live sites) */
.project-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
}
.project-link:hover { color: inherit; }
.project-link:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 6px;
}
.project-link .project-meta h3 { transition: color 0.2s; }
.project-link:hover .project-meta h3 { color: var(--clay-deep); }

/* ============================================================
   SERVICES — horizontal index, not a 3-card grid
   ============================================================ */
.services-list {
  border-top: 1px solid var(--stone-deep);
}
.service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  border-bottom: 1px solid var(--stone-deep);
  transition: padding-left 0.25s;
}
.service-row:hover { padding-left: 0.8rem; }
.service-row .s-num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--clay);
  font-size: 1.05rem;
  padding-top: 0.2rem;
}
.service-row .s-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.service-row .s-body p {
  color: var(--ink-soft);
  max-width: 60ch;
  font-size: 0.98rem;
}
.service-row .s-tags {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: right;
}
.service-row .s-tags span {
  font-size: 0.8rem;
  color: var(--sage-deep);
}

/* ============================================================
   PHOTOGRAPHY STRIP — two-up images under services
   ============================================================ */
.photo-strip {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--stone-deep);
}
.photo-strip-head {
  margin-bottom: 1.5rem;
}
.photo-strip-head h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.photo-strip-head p {
  font-size: 0.92rem;
  color: var(--sage-deep);
  max-width: 52ch;
}
.photo-strip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 1.6rem);
}
.photo-strip-grid figure {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--paper);
  border: 1px solid var(--stone-deep);
}
.photo-strip-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-portrait {
  background: var(--paper);
  border: 1px solid var(--stone-deep);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1/1;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }

.about-body h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 1.4rem;
  max-width: 20ch;
}
.about-body p {
  margin-bottom: 1.1rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.about-body p strong { color: var(--ink); font-weight: 600; }

.about-sign {
  margin-top: 1.8rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
}

/* ============================================================
   PROCESS — numbered editorial steps
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.step .step-num {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--stone-deep);
  line-height: 1;
  margin-bottom: 0.8rem;
}
.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.step p {
  font-size: 0.93rem;
  color: var(--ink-soft);
}

/* ============================================================
   PRICING / HONESTY BLOCK (no rigid price grid)
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.pricing-lead h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 1.2rem;
  max-width: 16ch;
}
.pricing-lead p { color: var(--ink-soft); max-width: 46ch; }

.pricing-card {
  background: var(--paper);
  border: 1px solid var(--stone-deep);
  border-radius: 14px;
  padding: clamp(1.6rem, 3vw, 2.2rem);
}
.pricing-card .pc-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--stone-deep);
}
.pricing-card .pc-row:last-child { border-bottom: none; }
.pricing-card .pc-row .pc-name { color: var(--ink); font-weight: 500; }
.pricing-card .pc-row .pc-desc { font-size: 0.85rem; color: var(--sage-deep); margin-top: 0.15rem; }
.pricing-card .pc-row .pc-price {
  font-family: var(--font-serif);
  color: var(--clay);
  font-size: 1.1rem;
  white-space: nowrap;
  text-align: right;
}
.pricing-note {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--sage-deep);
  font-style: italic;
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.quote-band { text-align: center; }
.quote-band blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.3rem);
  color: var(--ink);
  line-height: 1.4;
  max-width: 24ch;
  margin: 0 auto 1.6rem;
  font-weight: 500;
}
.quote-band blockquote em { font-style: italic; color: var(--clay); }
.quote-band cite {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--sage-deep);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ============================================================
   CONTACT / CTA
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-lead h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1.2rem;
  max-width: 14ch;
}
.contact-lead h2 em { font-style: italic; color: var(--clay); }
.contact-lead p { color: var(--ink-soft); max-width: 44ch; margin-bottom: 2rem; }

.contact-details dt {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--sage-deep);
  margin-top: 1.6rem;
}
.contact-details dt:first-child { margin-top: 0; }
.contact-details dd {
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: 0.25rem;
}
.contact-details dd a { color: var(--ink); }
.contact-details dd a:hover { color: var(--clay); }

.contact-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  padding: clamp(1.8rem, 4vw, 2.6rem);
}
.contact-card h3 {
  color: var(--paper);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.contact-card p {
  color: color-mix(in srgb, var(--paper) 80%, transparent);
  font-size: 0.96rem;
  margin-bottom: 1.6rem;
}
.contact-card .btn-light {
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  justify-content: center;
}
.contact-card .btn-light:hover { background: var(--clay); color: var(--paper); }
.contact-card .cc-or {
  text-align: center;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
  margin: 1rem 0;
}
.contact-card .cc-phone {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--paper);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot {
  border-top: 1px solid var(--stone-deep);
  padding: 2.5rem 0;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.foot-inner .fl {
  font-size: 0.85rem;
  color: var(--sage-deep);
}
.foot-inner .fl a { color: var(--ink-soft); }
.foot-inner .fr {
  display: flex;
  gap: 1.4rem;
  font-size: 0.85rem;
}
.foot-inner .fr a { color: var(--sage-deep); }
.foot-inner .fr a:hover { color: var(--clay); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .hero-grid,
  .about-grid,
  .pricing-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .hero-card { max-width: 360px; order: -1; }
  .about-portrait { max-width: 320px; }

  .work-grid { grid-template-columns: 1fr; }
  .photo-strip-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }

  .section-head { grid-template-columns: 1fr; gap: 0.5rem; }
  .section-head .sub { grid-column: 1; }

  .service-row {
    grid-template-columns: auto 1fr;
  }
  .service-row .s-tags {
    grid-column: 2;
    flex-direction: row;
    gap: 1rem;
    text-align: left;
    margin-top: 0.5rem;
  }
}

@media (max-width: 620px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--stone-deep);
    padding: 1.5rem var(--gutter);
    gap: 1.2rem;
    align-items: flex-start;
  }
  .nav-toggle { display: block; }
  .steps { grid-template-columns: 1fr; }
  .trust-inner { gap: 1.5rem 2rem; }
  body { font-size: 16px; }
}
