/* =========================================================
   Lacquer
   Three colours: paper, ink, correction red.
   Two voices: machine text is flat grey sans, human text is
   warm black serif. The typography is the argument.
   ========================================================= */

:root {
  --paper:      #FCFCFA;
  --raised:     #FFFFFF;
  --sunk:       #F2F2EE;
  --ink:        #14141A;
  --ink-soft:   #55555F;
  --ink-faint:  #86868F;
  --rule:       #E2E2DB;
  --rule-soft:  #EDEDE7;
  --accent:      #8A6B22;   /* functional gold: 4.9:1 on paper, safe for text */
  --accent-soft: #8A6B2214;
  --on-accent:   #FFFFFF;
  --brand-gold:  #C59B3E;   /* the mark's gold — decorative only, too light for text */
  --error:       #B81D2B;   /* semantic, deliberately NOT the accent */
  --error-soft:  #B81D2B14;
  --slop:       #6E6E78;
  --shadow:     0 1px 2px rgba(20,20,26,.04), 0 8px 24px rgba(20,20,26,.05);

  --serif: Charter, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --measure: 34rem;
  --wide:    58rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #131316;
    --raised:     #1B1B20;
    --sunk:       #0E0E11;
    --ink:        #E9E9E4;
    --ink-soft:   #A6A6AE;
    --ink-faint:  #7B7B85;
    --rule:       #2C2C33;
    --rule-soft:  #232329;
    --accent:      #D9B45C;
    --accent-soft: #D9B45C1A;
    --on-accent:   #131316;
    --brand-gold:  #C59B3E;
    --error:       #F0666F;
    --error-soft:  #F0666F1A;
    --slop:       #8B8B96;
    --shadow:     0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
  }
}

:root[data-theme="dark"] {
  --paper:      #131316;
  --raised:     #1B1B20;
  --sunk:       #0E0E11;
  --ink:        #E9E9E4;
  --ink-soft:   #A6A6AE;
  --ink-faint:  #7B7B85;
  --rule:       #2C2C33;
  --rule-soft:  #232329;
  --accent:      #D9B45C;
  --accent-soft: #D9B45C1A;
  --on-accent:   #131316;
  --brand-gold:  #C59B3E;
  --error:       #F0666F;
  --error-soft:  #F0666F1A;
  --slop:       #8B8B96;
  --shadow:     0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.col {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 24px;
}

section { padding-block: 84px; }
.band { background: var(--sunk); border-block: 1px solid var(--rule); }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 20;
}
.skip:focus { left: 12px; top: 12px; }

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

/* ---------------- top bar ---------------- */

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.bar {
  max-width: var(--wide);
  margin-inline: auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--serif);
  font-size: 1.32rem; font-weight: 600; letter-spacing: -0.025em;
  color: var(--ink); text-decoration: none;
}
.wordmark .mark {
  width: 30px; height: 30px; flex: none;
  background: url('assets/brand/mark.png') center/contain no-repeat;
}
/* the mark's letterforms are near-black; swap to the relit version on dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wordmark .mark {
    background-image: url('assets/brand/mark-dark.png');
  }
}
:root[data-theme="dark"] .wordmark .mark {
  background-image: url('assets/brand/mark-dark.png');
}
.wordmark > span:last-child { position: relative; }
.wordmark > span:last-child::after {
  content: ""; display: block; height: 2px; margin-top: -2px;
  background: var(--accent);
}
.topbar nav { display: flex; align-items: center; gap: 22px; }
.topbar nav a {
  font-family: var(--sans); font-size: 13px; color: var(--ink-soft);
  text-decoration: none;
}
.topbar nav a:hover { color: var(--ink); }
.nav-cta {
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 7px 13px;
  background: var(--raised);
  color: var(--ink) !important;
}
.nav-cta:hover { border-color: var(--ink-faint); }

@media (max-width: 560px) {
  .topbar nav a:not(.nav-cta) { display: none; }
}

/* ---------------- type ---------------- */

h1 {
  font-size: clamp(2.15rem, 6.2vw, 3.4rem);
  line-height: 1.07;
  letter-spacing: -0.028em;
  font-weight: 600;
  margin: 0 0 22px;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.05rem);
  line-height: 1.14;
  letter-spacing: -0.022em;
  font-weight: 600;
  margin: 0 0 18px;
  text-wrap: balance;
}
h3 {
  font-family: var(--sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 14px;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.intro { margin-bottom: 40px; }
.intro p {
  font-size: 1.08rem;
  line-height: 1.56;
  color: var(--ink-soft);
  margin-bottom: 1.05em;
}
.intro p:first-child { font-size: 1.16rem; line-height: 1.5; }
.intro p.thesis { color: var(--ink); }
.intro p:last-child { margin-bottom: 0; }

p.lede { font-size: 1.06rem; color: var(--ink-soft); margin-bottom: 34px; }

/* the specimen is a large object; give it room to sit apart from the lede */
#work .col + .col { padding-top: 20px; }
.aside {
  font-family: var(--sans);
  font-size: 14px; line-height: 1.6;
  color: var(--ink-faint);
  border-left: 2px solid var(--rule);
  padding-left: 16px;
  margin-top: 34px;
}
.aside b { color: var(--ink-soft); }

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

.hero { padding-top: 76px; padding-bottom: 84px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------------- specimens ---------------- */

.spec { background: var(--raised); padding: 20px 22px 22px; }
.spec-tag {
  display: block;
  font-family: var(--sans);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  margin-bottom: 12px;
}
.spec p { margin-bottom: 0.85em; }
.spec p:last-child { margin-bottom: 0; }

/* the machine voice: flat, grey, sans, evenly spaced */
.spec-slop .spec-tag { color: var(--slop); }
.spec-slop p {
  font-family: var(--sans);
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--slop);
}

/* the human voice: warm, black, serif, properly set */
.spec-human .spec-tag { color: var(--accent); }
.spec-human p {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
}

.pair { margin-bottom: 40px; }
.pair-note {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: center;
  margin: 18px auto 0;
  max-width: 34rem;
}
.pair:last-child { margin-bottom: 0; }
.pair-grid {
  display: grid; gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  #work .col, .hero .col { max-width: var(--wide); }
  #why-us .col + .col { max-width: var(--wide); }
  .pair-grid { grid-template-columns: 1fr 1fr; }
}

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

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 20px 44px;
  color: var(--ink-soft);
  font-size: 1rem;
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 1px;
  width: 27px; height: 27px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
}
.steps li:last-child { padding-bottom: 0; }
.steps b { color: var(--ink); font-weight: 600; }

/* ---------------- pricing ---------------- */

.prices {
  display: grid; gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 5px; overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
@media (min-width: 600px) { .prices { grid-template-columns: 1fr 1fr; } }

.price { background: var(--raised); padding: 26px 24px; }
.price-fig {
  display: block;
  font-size: 2.6rem; font-weight: 600;
  letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-rush .price-fig { color: var(--accent); }
.price-unit {
  display: block;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-faint);
  margin: 10px 0 14px;
}
.price p { font-size: 0.95rem; color: var(--ink-soft); }
.price-min {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-faint);
  margin: 16px 0 0;
}

/* ---------------- form ---------------- */

#order .col { max-width: 42rem; }

.order {
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.order-row { padding: 20px 22px; border-top: 1px solid var(--rule-soft); }
.order-row:first-child { border-top: none; }

.row-main { display: grid; gap: 16px; align-items: start; }
@media (min-width: 700px) {
  .row-main { grid-template-columns: 1fr 13.5rem; }
}

.order-action { display: flex; flex-direction: column; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 8px; }

label {
  font-family: var(--sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint);
}
.opt { font-weight: 400; letter-spacing: 0.04em; text-transform: none; opacity: .8; }

textarea, input[type="email"] {
  width: 100%;
  font-family: var(--serif);
  font-size: 1rem; line-height: 1.55;
  color: var(--ink);
  background: var(--sunk);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 14px 16px;
  resize: vertical;
}
textarea::placeholder, input::placeholder { color: var(--ink-faint); }
textarea:focus, input:focus { border-color: var(--ink-faint); }

input[type="file"] {
  font-family: var(--sans); font-size: 13px;
  color: var(--ink-soft);
  background: var(--sunk);
  border: 1px dashed var(--rule);
  border-radius: 4px;
  padding: 14px 16px;
  width: 100%;
}

.counter {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--mono); font-size: 13px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.counter b { color: var(--ink); font-weight: 500; }
.counter .sep { opacity: .45; }
.counter .cost { color: var(--accent); font-weight: 500; }
.counter.over .count b { color: var(--error); }

.hint {
  font-family: var(--sans);
  font-size: 12.5px; line-height: 1.5;
  color: var(--ink-faint);
  margin: 0;
}
.hint-center { text-align: center; }
.hint.warn { color: var(--error); }

.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex; gap: 10px; align-items: flex-start;
  text-transform: none; letter-spacing: normal; font-weight: 400;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 12px 13px;
  cursor: pointer;
}
.option:hover { border-color: var(--ink-faint); }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.option input { margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.option-body { display: flex; flex-direction: column; gap: 3px; }
.option-name {
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  text-transform: none; letter-spacing: normal;
  color: var(--ink);
}
.option-note {
  font-family: var(--sans);
  font-size: 11.5px; line-height: 1.4;
  text-transform: none; letter-spacing: normal; font-weight: 400;
  color: var(--ink-faint);
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-block;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none; text-align: center;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 12px 22px;
  cursor: pointer;
}
.btn:hover { opacity: .88; }
.btn-quiet {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--rule);
}
.btn-quiet:hover { color: var(--ink); border-color: var(--ink-faint); opacity: 1; }
.btn-submit {
  width: 100%; padding: 15px 22px; font-size: 15px;
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
.btn-submit:disabled { opacity: .45; cursor: not-allowed; }

.privacy { margin-top: 34px; }

/* ---------------- footer ---------------- */

footer {
  border-top: 1px solid var(--rule);
  padding-block: 40px 56px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-faint);
}
footer b { color: var(--ink-soft); }
footer .fine { margin-top: 8px; max-width: 32rem; }

/* ---------------- why not fiverr ---------------- */

/* the lede and "Back? Good" are one continuous beat, not two blocks */
#why-us .lede { margin-bottom: 1.1em; color: var(--ink); }
#why-us .col + .col { padding-top: 30px; }

.problems {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (min-width: 640px) {
  .problems { grid-template-columns: 1fr 1fr; }
}
.problem { background: var(--raised); padding: 22px 24px 24px; }
.problem h3 {
  font-family: var(--serif);
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--ink);
  margin: 0 0 10px;
}
.problem h3::before {
  content: "";
  display: inline-block;
  width: 14px; height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 10px;
}
.problem p {
  font-size: 0.97rem;
  color: var(--ink-soft);
  margin-bottom: 0.75em;
}
.problem p:last-child { margin-bottom: 0; }

/* ---------------- order pages (confirm / thanks) ---------------- */

.page-title {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 18px;
  text-wrap: balance;
}

.state {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  background: var(--sunk);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 14px 16px;
  margin: 0 0 26px;
}
.state-error { color: var(--error); border-color: var(--error); background: var(--error-soft); }
.state-ok    { color: var(--ink); }

.summary {
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 20px;
  border-top: 1px solid var(--rule-soft);
}
.summary-row:first-child { border-top: none; }
.summary-key {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex: none;
}
.summary-val {
  font-size: 1rem;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.summary-total {
  background: var(--sunk);
  border-top: 1px solid var(--rule);
}
.summary-total .summary-val {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.submitted {
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 18px 20px 20px;
  margin-bottom: 24px;
}
.submitted pre {
  margin: 0;
  max-height: 22rem;
  overflow: auto;
  font-family: var(--serif);
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--ink-soft);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.pay-block { display: flex; flex-direction: column; gap: 10px; }

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

.faq { border-top: 1px solid var(--rule); }

.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 16px 40px 16px 0;
  font-family: var(--serif);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  /* a plus that loses its vertical stroke when open */
  background:
    linear-gradient(var(--accent), var(--accent)) center/12px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center/2px 12px no-repeat;
}
.faq-item[open] > summary::after {
  background: linear-gradient(var(--accent), var(--accent)) center/12px 2px no-repeat;
}
.faq-item > summary:hover { color: var(--accent); }

.faq-body { padding: 0 40px 20px 0; }
.faq-body p {
  font-size: 0.99rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 0.8em;
}
.faq-body p:last-child { margin-bottom: 0; }

/* inline links in body copy and the footer need to read as links */
.problem a, .faq-body a, footer .fine a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
footer .fine a { color: var(--ink-soft); }
footer .fine a:hover { color: var(--ink); }
