/* Vindo Design — link-in-bio dan form proyek.
   Monokrom mengikuti vindodesign.com: tinta #222 (warna logo), kertas putih,
   Inter 300–600. Label kecil berhuruf kapital renggang menggemakan
   "ARCHITECTURE & INTERIOR" di bawah logo. */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-var.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #222222;
  --ink-strong: #000000;
  --paper: #ffffff;
  --muted: #6b6b6b;
  --faint: #9a9a9a;
  --line: #e2e2e2;
  --fill: #f5f5f5;
  --on-ink: #ffffff;
  --on-ink-muted: rgba(255, 255, 255, 0.72);
  --on-ink-line: rgba(255, 255, 255, 0.32);
  --danger: #a12a1f;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --col: 460px;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

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

.skip {
  position: absolute; left: var(--gutter); top: -40px;
  background: var(--ink); color: var(--on-ink); padding: 8px 12px;
  font-size: 13px; text-decoration: none; z-index: 10;
}
.skip:focus { top: 8px; }

.icon { flex: none; width: 16px; height: 16px; }

.kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Link page ---------- */

.bio {
  max-width: calc(var(--col) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 40px var(--gutter) 28px;
}

.id { text-align: center; }
.id h1 { display: flex; justify-content: center; }
.id .logo { width: 200px; }
.id .kicker { margin-top: 14px; }

.hero { margin-top: 28px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--fill); }
.hero img { width: 100%; height: 100%; object-fit: cover; }

.line {
  margin-top: 20px;
  text-align: center;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.links { margin-top: 24px; }

.cta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 18px 18px 20px;
  background: var(--ink);
  color: var(--on-ink);
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}
.cta:hover { background: var(--ink-strong); }
.cta .text { flex: 1; display: grid; gap: 2px; }
.cta .label { font-size: 16px; font-weight: 500; letter-spacing: 0.01em; }
.cta .sub { font-size: 13px; color: var(--on-ink-muted); }
.cta .box {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--on-ink-line);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.cta:hover .box { background: var(--on-ink); color: var(--ink); }
.cta .box .icon { transition: transform 0.25s var(--ease); }
.cta:hover .box .icon { transform: translateX(2px); }

.rows { margin-top: 12px; }
.rows li + li { border-top: 1px solid var(--line); }
.row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 2px;
  text-decoration: none;
}
.row .n {
  width: 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.row .text { flex: 1; display: grid; gap: 1px; }
.row .label { font-size: 15px; font-weight: 500; }
.row .sub { font-size: 13px; color: var(--muted); }
.row .icon { color: var(--muted); transition: transform 0.25s var(--ease), color 0.2s; }
.row:hover .icon { color: var(--ink); transform: translate(2px, -2px); }
.row:hover .label { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.work { margin-top: 36px; }
.work .kicker { text-align: center; }
.grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 8px;
}
.grid a { display: block; text-decoration: none; }
.grid .ph { aspect-ratio: 1; overflow: hidden; background: var(--fill); }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.grid a:hover img { transform: scale(1.03); }
.grid figcaption { margin-top: 8px; display: grid; font-size: 12px; line-height: 1.4; }
.grid .name { font-weight: 500; }
.grid .place { color: var(--muted); }

.foot {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  display: grid;
  gap: 6px;
}
.contact {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 4px 18px;
  font-size: 13px;
}
.contact a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 0;
  text-decoration: none;
}
.contact a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.contact .icon { width: 15px; height: 15px; color: var(--muted); }
.site { font-size: 12px; color: var(--muted); }
.site a { text-decoration: none; }
.site a:hover { color: var(--ink); }

.credit {
  margin-top: 14px;
  font-size: 7px;
  letter-spacing: 0.06em;
  color: var(--faint);
}
.credit a { color: var(--muted); text-underline-offset: 1px; }
.credit a:hover { color: var(--ink); }

/* ---------- Form page ---------- */

.form-page {
  max-width: calc(520px + var(--gutter) * 2);
  margin: 0 auto;
  padding: 28px var(--gutter) 28px;
}

.form-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-top .logo { width: 112px; }
.back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted); text-decoration: none;
  padding: 8px 0;
}
.back:hover { color: var(--ink); }

.form-head { margin-top: 36px; }
.form-head h1 { font-size: 26px; font-weight: 400; line-height: 1.2; letter-spacing: -0.015em; }
.form-head p { margin-top: 8px; color: var(--muted); font-size: 14px; }

.progress { margin-top: 28px; display: grid; gap: 10px; }
.progress .bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.progress .bar span { height: 2px; background: var(--line); transition: background-color 0.3s var(--ease); }
.progress .bar span.on { background: var(--ink); }
.progress .kicker { color: var(--ink); }

.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step[hidden] { display: none; }
.step legend { padding: 0; font-size: 18px; font-weight: 500; margin-top: 24px; }

.field { margin-top: 22px; display: grid; gap: 8px; }
.field > label, .field .q {
  font-size: 14px; font-weight: 500; line-height: 1.4;
}
.field .opt { font-weight: 300; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); line-height: 1.45; }

input[type='text'], input[type='tel'], textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  transition: border-color 0.2s;
}
textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type='text']:hover, input[type='tel']:hover, textarea:hover { border-color: var(--faint); }
input[type='text']:focus, input[type='tel']:focus, textarea:focus { outline: none; border-color: var(--ink); }

.choices { display: grid; gap: 6px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choice {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  font-size: 14px; line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.choice:hover { border-color: var(--faint); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--fill); }
.choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.choice input { margin: 2px 0 0; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }

.err { font-size: 13px; color: var(--danger); }
.err[hidden] { display: none; }
.field.invalid input[type='text'], .field.invalid input[type='tel'], .field.invalid textarea,
.field.invalid .choice { border-color: var(--danger); }

.consent {
  margin-top: 26px;
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; line-height: 1.45; cursor: pointer;
}
.consent input { margin: 3px 0 0; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }

.nav { margin-top: 32px; display: flex; gap: 8px; }
.btn {
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  font: inherit; font-size: 15px; font-weight: 500;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-solid { flex: 1; background: var(--ink); color: var(--on-ink); }
.btn-solid:hover { background: var(--ink-strong); }
.btn-ghost { background: var(--paper); color: var(--ink); }
.btn-ghost:hover { background: var(--fill); }
.btn[hidden] { display: none; }

.done { margin-top: 36px; }
.done[hidden] { display: none; }
.done:focus { outline: none; }
.done h2 { font-size: 22px; font-weight: 400; line-height: 1.25; }
.done p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.done .btn { margin-top: 24px; width: 100%; }

.form-page .credit { text-align: center; margin-top: 40px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
