@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* Three colours carry the idea: jade is the field you work in, coral is what comes from elsewhere,
   gold is the seam where the two are joined. The cut is always at the same slant. */
:root {
  --bg: #060807;
  --bg-soft: #0c0f0e;
  --bg-lift: #121615;
  --line: #1f2523;
  --line-soft: #171b1a;
  --ink: #eef0ea;
  --ink-dim: #a5aaa2;
  --ink-faint: #6a716c;
  --jade: #a8d5ba;
  --jade-deep: #2f5a47;
  --scion: #e58a6b;
  --seam: #e3bd72;
  --a: #e3bd72;
  --b: #6fbfcf;
  --c: #a592dc;
  --ok: #7cc79a;
  --warn: #dc8663;
  --r: 12px;
  --cut: 18deg;
  --ease: cubic-bezier(.22,.61,.36,1);
  --sans: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Instrument Serif", "Songti SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: rgba(227,189,114,.28); }
[hidden] { display: none !important; }

/* The wordmark is itself a graft: two halves in two hands, joined on a slanted seam. */
.wm { display: inline-flex; align-items: baseline; font-size: 21px; line-height: 1; white-space: nowrap; user-select: none; }
.wm i { font: italic 400 1.24em/1 var(--serif); letter-spacing: -.005em; padding-right: .2em; }
.wm b { position: relative; font: 500 1em/1 var(--sans); letter-spacing: -.025em; color: var(--jade); padding-left: .2em; }
.wm b::before {
  content: ""; position: absolute; left: -.5px; top: -.42em; bottom: -.3em; width: 1px;
  background: var(--seam); transform: rotate(var(--cut)); box-shadow: 0 0 10px rgba(227,189,114,.55);
}

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden;
  height: 44px; padding: 0 26px; border-radius: 99px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer; letter-spacing: .04em; isolation: isolate;
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
/* hover fills the button from the left along the slanted cut */
.btn::before {
  content: ""; position: absolute; z-index: -1; top: -1px; bottom: -1px; left: -30%; width: 160%;
  background: var(--ink); transform: translateX(-102%) skewX(calc(var(--cut) * -1)); transition: transform .5s var(--ease);
}
.btn:hover { color: #0a0c0b; border-color: var(--ink); }
.btn:hover::before { transform: translateX(0) skewX(calc(var(--cut) * -1)); }
.btn-solid { background: var(--ink); color: #0a0c0b; border-color: var(--ink); font-weight: 500; }
.btn-solid::before { background: var(--seam); }
.btn-solid:hover { border-color: var(--seam); }
.btn:disabled { opacity: .5; cursor: default; }
.btn:disabled::before { display: none; }

.field { display: grid; gap: 6px; }
.field label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.field input {
  height: 46px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-soft); outline: none; transition: border-color .2s var(--ease);
}
.field input:focus { border-color: var(--jade-deep); }

.muted { color: var(--ink-faint); }
.spin { display: inline-block; width: 13px; height: 13px; border: 2px solid var(--line); border-top-color: var(--seam); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
