/* Artur Parutkin — brand designer for tech startups
   Static, dependency-free stylesheet. No external fonts or JS:
   everything renders in raw HTML for speed and AI retrievability. */

:root {
  --ink: #14140f;
  --ink-soft: #4a4a42;
  --ink-faint: #6f6f66;
  --paper: #f7f5ef;
  --paper-pure: #fffefb;
  --line: #e2ddd0;
  --line-strong: #cec7b6;
  --accent: #2233ff;
  --accent-ink: #1a29d6;
  --max: 1120px;
  --pad: clamp(20px, 5vw, 48px);
}

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

/* Global safety net: no image may ever exceed its container (prevents
   mobile horizontal overflow if a more specific rule fails to load). */
img { max-width: 100%; height: auto; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Georgia", serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 19px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Sans stack for UI + labels + headlines */
h1, h2, h3, h4, nav, .kicker, .btn, .meta, .tag, .site-footer, .card-label, table {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.narrow { max-width: 760px; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: clamp(14px, 3vw, 34px); align-items: center; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a.cta { color: var(--accent-ink); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid var(--ink);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper-pure); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper-pure); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Typographic scale ---------- */
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
h1 { font-size: clamp(38px, 6.5vw, 74px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 18px; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; margin-bottom: 10px; }
.lede { font-size: clamp(20px, 2.4vw, 25px); line-height: 1.5; color: var(--ink); }
.lede strong { font-weight: 700; }
p { margin-bottom: 18px; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
em { font-style: italic; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 9vw, 104px) 0; }
section + section { border-top: 1px solid var(--line); }
.section-tight { padding: clamp(40px, 6vw, 68px) 0; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 30px; max-width: 60ch; }

/* ---------- Work / case cards ---------- */
.work-list { display: grid; gap: 2px; margin-top: 8px; }
.work-item {
  display: grid; grid-template-columns: 240px 1fr auto; gap: 18px 32px; align-items: start;
  padding: 34px 0; border-top: 1px solid var(--line);
}
.work-item:last-child { border-bottom: 1px solid var(--line); }
.work-item .thumb {
  display: block; width: 240px; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line); background: var(--paper-pure);
}
.work-item .num { font-size: 13px; color: var(--ink-faint); font-weight: 600; grid-column: 1; }
.work-item h3 { margin-bottom: 6px; }
.work-item h3 a { color: var(--ink); }
.work-item h3 a:hover { color: var(--accent-ink); }
.work-item .desc { color: var(--ink-soft); font-size: 18px; max-width: 62ch; }
.work-item .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--ink-faint); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 11px;
}
.work-item .go { align-self: center; font-weight: 600; font-size: 15px; white-space: nowrap; color: var(--accent-ink); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.step .step-n {
  font-family: -apple-system, sans-serif; font-size: 14px; font-weight: 700; color: var(--accent);
  border-top: 2px solid var(--accent); padding-top: 12px; display: block; margin-bottom: 14px;
}
.step p { color: var(--ink-soft); font-size: 17px; }

/* ---------- Pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 44px 0 12px; }
.tier {
  background: var(--paper-pure); border: 1px solid var(--line-strong); border-radius: 16px;
  padding: 32px 28px; display: flex; flex-direction: column;
}
.tier.featured { border-color: var(--ink); box-shadow: 0 14px 40px -22px rgba(20,20,15,.45); }
.tier .tier-name { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-faint); }
.tier .price { font-family: -apple-system, sans-serif; font-size: 40px; font-weight: 700; letter-spacing: -0.02em; margin: 14px 0 4px; }
.tier .term { font-size: 14px; color: var(--ink-faint); font-family: -apple-system, sans-serif; margin-bottom: 20px; }
.tier .tier-desc { font-size: 16px; color: var(--ink-soft); }
.tier .flag { display: inline-block; align-self: flex-start; font-family: -apple-system, sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }

/* ---------- Callout / testimonial ---------- */
.callout {
  background: var(--ink); color: var(--paper); border-radius: 20px;
  padding: clamp(32px, 5vw, 60px); margin: 8px 0;
}
.callout h2 { color: var(--paper-pure); }
.callout p { color: color-mix(in srgb, var(--paper) 82%, transparent); }
.callout .btn-primary { background: var(--paper-pure); color: var(--ink); border-color: var(--paper-pure); }
.callout .btn-primary:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

blockquote {
  border-left: 3px solid var(--accent); padding-left: 24px; margin: 8px 0;
  font-size: clamp(21px, 2.6vw, 27px); line-height: 1.4; font-style: italic; letter-spacing: -0.01em;
}
blockquote cite { display: block; margin-top: 16px; font-size: 15px; font-style: normal; color: var(--ink-faint); font-family: -apple-system, sans-serif; }
.callout blockquote { border-color: var(--paper); }
.callout blockquote cite { color: color-mix(in srgb, var(--paper) 65%, transparent); }

/* ---------- Article / case study body ---------- */
.article-head { padding: clamp(40px, 7vw, 84px) 0 clamp(28px, 4vw, 44px); }
.breadcrumb { font-family: -apple-system, sans-serif; font-size: 14px; color: var(--ink-faint); margin-bottom: 26px; }
.breadcrumb a { color: var(--ink-soft); }
.article-head .meta { font-family: -apple-system, sans-serif; font-size: 14px; color: var(--ink-faint); margin-top: 22px; letter-spacing: 0.02em; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 52px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 19px; color: var(--ink); }
.prose ul { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose .lede { margin-bottom: 8px; }

/* Figures / image placeholders */
figure { margin: 40px 0; }
figure img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line); }
figure figcaption { font-family: -apple-system, sans-serif; font-size: 13px; color: var(--ink-faint); margin-top: 10px; }
.img-placeholder {
  width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; border: 1px dashed var(--line-strong);
  background:
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(20,20,15,.02) 12px, rgba(20,20,15,.02) 24px),
    var(--paper-pure);
  display: flex; align-items: center; justify-content: center;
  font-family: -apple-system, sans-serif; font-size: 13px; color: var(--ink-faint); text-align: center; padding: 20px;
}

/* Scope block on case studies */
.scope { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; margin: 44px 0; display: grid; gap: 12px; }
.scope div { font-size: 16px; }
.scope .k { font-family: -apple-system, sans-serif; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; margin-top: 32px; }
.faq details { border-top: 1px solid var(--line); padding: 8px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 19px; display: flex; justify-content: space-between; gap: 20px; font-family: -apple-system, sans-serif; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 68ch; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; margin: 28px 0; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); }
td { color: var(--ink-soft); }

/* ---------- Logo wall ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px; margin-top: 32px; border: 1px solid var(--line); }
.logo-cell { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; background: var(--paper-pure); outline: 1px solid var(--line); font-family: -apple-system, sans-serif; font-size: 12px; color: var(--ink-faint); text-align: center; padding: 18px; overflow: hidden; }
.logo-cell img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.logo-cell.dark { background: var(--ink); }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 20px; max-width: 620px; margin-top: 36px; }
.form label { display: grid; gap: 8px; font-family: -apple-system, sans-serif; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 17px; padding: 13px 15px; border: 1px solid var(--line-strong);
  border-radius: 10px; background: var(--paper-pure); color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-pure); padding: clamp(44px, 6vw, 72px) 0; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.site-footer .foot-brand { font-weight: 700; font-size: 17px; color: var(--ink); max-width: 40ch; }
.site-footer .foot-brand span { display: block; font-weight: 400; color: var(--ink-faint); font-size: 15px; margin-top: 8px; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav a { color: var(--ink-soft); }
.site-footer .socials { display: flex; gap: 18px; }
.site-footer .fineprint { width: 100%; color: var(--ink-faint); font-size: 13px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 8px; }

/* ---------- Utility ---------- */
.eyebrow-list { list-style: none; display: grid; gap: 14px; margin-top: 24px; }
.eyebrow-list li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.eyebrow-list li::before { content: "\2192"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
hr.rule { border: none; border-top: 1px solid var(--line); margin: 48px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .tiers { grid-template-columns: 1fr; }
  .work-item { grid-template-columns: 1fr; }
  .work-item .thumb { width: 100%; max-width: 420px; }
  .work-item .go { align-self: start; }
}
@media (max-width: 620px) {
  body { font-size: 18px; }
  .nav .nav-hide { display: none; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; transition: none; } }
