/* ============================================================
   SwiftLife — the placeholder's look (index.php and contact.php)
   Warm paper with a faint drafting-dot grid, the SL mark drawn as
   a measured drawing, a monospaced dateline, Emilia's line on a
   small console, and the actions as tiles. Its own dark palette.
   Delete with the rest of placeholder/ when the new site is up.
   ============================================================ */

:root {
  --bg: #fffdf8; --card: #ffffff; --cream: #fffbf2;
  --ink: #1d1b18; --ink-2: #5b554c; --ink-3: #6f685d;
  --rule: #ebe4d8; --rule-2: #dcd3c3;
  --link: #0b62b8; --link-2: #084a8c;
  --warm: #8a4a1c; --warm-2: #6e3a15; --on-warm: #ffffff;
  --mark: #6d6e70;
  --dot: rgba(29, 27, 24, .11);
  --line: rgba(11, 98, 184, .48); --line-soft: rgba(11, 98, 184, .22); --note: #0b62b8;
  --glow: transparent;
  --console: #fffbf2; --console-ink: #3b362f; --caret: #0b62b8; --phosphor: none;
  --led-ring: rgba(11, 98, 184, .14);
  --pay-tint: rgba(11, 98, 184, .08); --con-tint: rgba(138, 74, 28, .09);
  --shadow: 0 1px 0 rgba(29, 27, 24, .03), 0 14px 32px -22px rgba(29, 27, 24, .35);
  --shadow-up: 0 1px 0 rgba(29, 27, 24, .03), 0 24px 40px -24px rgba(29, 27, 24, .45);
  --backdrop: rgba(29, 27, 24, .42);
  --focus: #0b62b8;
  --on-link: #ffffff;
  --err-bg: #fff3ef; --err-line: #f0c4b8; --err-ink: #8a2e17;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12110f; --card: #1a1815; --cream: #0c0b0a;
    --ink: #f4eee4; --ink-2: #c9c0b2; --ink-3: #a59c8e;
    --rule: #2a2621; --rule-2: #3b352e;
    --link: #8cc2ff; --link-2: #b8d9ff;
    --warm: #f2a65a; --warm-2: #f7c08a; --on-warm: #1a1208;
    --mark: #d6d0c5;
    --dot: rgba(255, 232, 200, .075);
    --line: rgba(242, 166, 90, .58); --line-soft: rgba(242, 166, 90, .2); --note: #f2b277;
    --glow: rgba(242, 166, 90, .12);
    --console: #0b0a09; --console-ink: #f4c58f; --caret: #f2a65a; --phosphor: 0 0 14px rgba(242, 166, 90, .3);
    --led-ring: rgba(242, 166, 90, .18);
    --pay-tint: rgba(140, 194, 255, .1); --con-tint: rgba(242, 166, 90, .12);
    --shadow: inset 0 1px 0 rgba(255, 240, 220, .04), 0 18px 40px -24px rgba(0, 0, 0, .85);
    --shadow-up: inset 0 1px 0 rgba(255, 240, 220, .06), 0 26px 46px -24px rgba(0, 0, 0, .95);
    --backdrop: rgba(6, 5, 4, .66);
    --focus: #f2b277;
    --on-link: #0b1726;
    --err-bg: #2a1410; --err-line: #5a2a1e; --err-ink: #ffb4a0;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(11, 98, 184, .18); }
@media (prefers-color-scheme: dark) { ::selection { background: rgba(242, 166, 90, .3); } }

/* The drafting table: a faint dot grid, strongest behind the drawing. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.5px);
  background-size: 22px 22px; background-position: 50% 0;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 66% 40%, #000 25%, transparent 88%);
  mask-image: radial-gradient(ellipse 90% 80% at 66% 40%, #000 25%, transparent 88%);
}

.sheet {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  max-width: 1240px; margin: 0 auto;
  padding: 20px 16px 36px;
}
/* Crop marks at the sheet's corners. */
.sheet::before {
  --c: var(--rule-2);
  content: ""; position: absolute; inset: 14px; pointer-events: none; display: none;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 16px 1px, linear-gradient(var(--c), var(--c)) 0 0 / 1px 16px,
    linear-gradient(var(--c), var(--c)) 100% 0 / 16px 1px, linear-gradient(var(--c), var(--c)) 100% 0 / 1px 16px,
    linear-gradient(var(--c), var(--c)) 0 100% / 16px 1px, linear-gradient(var(--c), var(--c)) 0 100% / 1px 16px,
    linear-gradient(var(--c), var(--c)) 100% 100% / 16px 1px, linear-gradient(var(--c), var(--c)) 100% 100% / 1px 16px;
  background-repeat: no-repeat;
}

.reg {
  font-family: var(--sans); font-size: .5em; font-weight: 500; font-style: normal;
  line-height: 0; vertical-align: baseline; position: relative; top: -.78em;
  margin-left: .04em; letter-spacing: 0;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---- top line ---- */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font: 650 1.1875rem/1 var(--sans); letter-spacing: -.012em; color: var(--ink);
}
.brand svg { width: 37px; height: 22px; flex: none; color: var(--mark); }
.status {
  margin: 0; display: inline-flex; align-items: center; gap: .6em;
  font: 500 .75rem/1.3 var(--mono); letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3);
}
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--caret); box-shadow: 0 0 0 3px var(--led-ring); }
.status .sep { opacity: .55; }

/* ---- stage ---- */
.stage {
  flex: 1; display: grid; grid-template-areas: "art" "copy";
  align-content: center; gap: 18px; padding: 22px 0 4px;
}
.copy { grid-area: copy; min-width: 0; container-type: inline-size; }
.art { grid-area: art; position: relative; isolation: isolate; margin: 0; width: 100%; }
.art::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.plan { display: block; width: 100%; height: auto; --sw: 1.5; }

.title {
  margin: 0;
  font-family: var(--serif); font-weight: 360;
  font-size: clamp(2.375rem, 1.5rem + 3.2vw, 4rem);
  line-height: 1.03; letter-spacing: -.028em;
  text-wrap: balance;
}
@supports (font-size: 1cqi) { .title { font-size: clamp(2.375rem, 12cqi, 4.25rem); } }
.title em { font-style: italic; font-weight: 340; color: var(--warm); }

.lede { margin: 18px 0 0; max-width: 36ch; font-size: 1.0625rem; line-height: 1.55; color: var(--ink-2); }

/* Emilia, on the console */
.emilia {
  margin: 24px 0 0; max-width: 32rem;
  display: flex; align-items: baseline; gap: .7em;
  padding: 13px 18px 13px 15px;
  border: 1px solid var(--rule); border-radius: 12px;
  background: var(--console); color: var(--console-ink);
  font: 400 .9375rem/1.6 var(--mono);
  text-shadow: var(--phosphor);
}
.prompt { flex: none; color: var(--caret); font-weight: 500; }
.line { min-width: 0; overflow-wrap: anywhere; }
.sig { white-space: nowrap; font-family: var(--serif); font-size: 1.0625rem; color: var(--ink-2); text-shadow: none; transition: opacity .7s ease; }
.sig em { font-style: italic; }
.will-type .say, .will-type .sig { opacity: 0; animation: show 0s 4s forwards; }
.typing .sig { opacity: 0; }
.typed .sig { opacity: 1; }
.shown { border-right: .55em solid var(--caret); margin-right: -.55em; }
.rest { color: transparent; text-shadow: none; }
.typed .shown { animation: blink 1s step-end 2.5 forwards; }

/* ---- actions ---- */
.actions { margin: 26px 0 0; display: grid; gap: 12px; max-width: 36rem; }
.tile {
  --accent: var(--link); --accent-2: var(--link-2); --tint: var(--pay-tint);
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 14px;
  min-height: 76px; padding: 14px 16px;
  background: var(--card); color: var(--ink); text-decoration: none;
  border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow);
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .2s ease, box-shadow .25s ease;
}
.tile.connect { --accent: var(--warm); --accent-2: var(--warm-2); --tint: var(--con-tint); }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--accent); }
.ico svg { width: 24px; height: 24px; }
.t-title { display: block; font: 600 1.0625rem/1.25 var(--sans); letter-spacing: -.005em; color: var(--accent); transition: color .2s ease; }
.t-note { display: block; margin-top: 3px; font-size: .8125rem; line-height: 1.4; color: var(--ink-2); }
.go { width: 20px; height: 20px; color: var(--ink-3); transition: transform .25s cubic-bezier(.2, .7, .2, 1), color .2s ease; }
.tile:hover { border-color: var(--accent); box-shadow: var(--shadow-up); transform: translateY(-2px); }
.tile:hover .t-title { color: var(--accent-2); }
.tile:hover .go { color: var(--accent); transform: translateX(3px); }
.tile.connect:hover .go { transform: translate(2px, -2px); }
.tile:active { transform: translateY(0); }
.tile:focus-visible { outline-offset: 3px; }

/* ---- the drawing ---- */
.guides path { fill: none; stroke: var(--line-soft); stroke-width: var(--sw); }
.guides .dash { stroke-dasharray: 2 5; }
.guides .axis { stroke-dasharray: 14 4 2 4; }
.con path { fill: none; stroke: var(--line); stroke-width: var(--sw); }
.dims path { fill: none; stroke: var(--line); stroke-width: var(--sw); }
.dims text { font: 500 11px/1 var(--mono); letter-spacing: .04em; fill: var(--note); }
.ink > * { fill: var(--mark); stroke: var(--mark); stroke-width: 1; }
.ctr { fill: none; stroke: var(--bg); stroke-width: 1.5; }
.dims { display: none; }

/* ---- leaving notice ---- */
.leave {
  width: min(27rem, calc(100vw - 32px)); max-width: none; padding: 0;
  border: 1px solid var(--rule); border-radius: 16px;
  background: var(--card); color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55);
}
.leave::backdrop { background: var(--backdrop); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.leave-in { padding: 24px 22px 20px; }
.leave h2 { margin: 0 0 10px; font: 400 1.5rem/1.2 var(--serif); letter-spacing: -.015em; }
.leave p { margin: 0 0 22px; line-height: 1.55; color: var(--ink-2); }
.leave strong { color: var(--ink); font-weight: 600; }
.leave-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.btn {
  min-height: 44px; padding: 0 18px; border-radius: 11px; cursor: pointer;
  font: 600 .9375rem/1 var(--sans);
  border: 1px solid var(--rule-2); background: transparent; color: var(--ink);
  transition: background-color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--cream); }
.btn-go { background: var(--warm); border-color: var(--warm); color: var(--on-warm); }
.btn-go:hover { background: var(--warm-2); border-color: var(--warm-2); }

/* ---- larger screens ---- */
@media (min-width: 560px) {
  .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tile { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; align-items: start; row-gap: 22px; min-height: 152px; padding: 18px; }
  .ico { grid-column: 1; grid-row: 1; }
  .go { grid-column: 2; grid-row: 1; margin-top: 2px; }
  .txt { grid-column: 1 / -1; grid-row: 2; align-self: end; }
}
@media (min-width: 600px) {
  .dims { display: inline; }
  .plan { --sw: 1; }
}
@media (min-width: 640px) {
  .sheet { padding: 36px 44px 48px; }
  .sheet::before { display: block; }
  .stage { gap: 26px; padding-top: 36px; }
  .art { max-width: 520px; }
}
@media (min-width: 960px) {
  .stage { grid-template-areas: "copy art"; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 72px; padding: 24px 0 16px; }
  .art { max-width: 600px; justify-self: end; }
  .lede { font-size: 1.125rem; }
}
@media (min-width: 1024px) {
  .sheet { padding: 44px 64px 56px; }
}

/* ---- motion, only when welcome ---- */
@keyframes show { to { opacity: 1; } }
@keyframes blink { 50% { border-right-color: transparent; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ink { to { fill-opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } }
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
  .guides { animation: fade 1s ease .05s both; }
  .con path { stroke-dasharray: var(--l); stroke-dashoffset: var(--l); animation: draw 1.5s cubic-bezier(.55, .1, .25, 1) var(--d, 0s) forwards; }
  .con .tick { stroke-dasharray: none; stroke-dashoffset: 0; animation: fade .6s ease .7s both; }
  .ink > * {
    stroke-dasharray: var(--l); stroke-dashoffset: var(--l); fill-opacity: 0;
    animation: draw 1.3s cubic-bezier(.55, .1, .25, 1) .55s forwards, ink .8s ease 1.55s forwards;
  }
  .ctr { animation: fade .6s ease 2s both; }
  .dims { animation: fade .9s ease 1.7s both; }
  .leave[open] { animation: pop .22s cubic-bezier(.2, .8, .2, 1); }
  .leave[open]::backdrop { animation: fade .22s ease; }
}

/* ---- the mark at the top is a link home ---- */
a.brand { text-decoration: none; border-radius: 6px; }
a.brand:hover span { color: var(--link); }

/* ---- contact page ---- */
.stage-contact { display: block; padding: 28px 0 8px; }
.panel {
  max-width: 34rem; margin: 0 auto; padding: 24px 18px 22px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow);
}
.panel .title { font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem); }
.panel .lede { margin-top: 12px; font-size: 1rem; }
.panel a { color: var(--link); }
.panel a:hover { color: var(--link-2); }
.form { margin-top: 22px; }
.form label { display: block; margin: 16px 0 6px; font: 600 .8125rem/1.3 var(--sans); color: var(--ink-2); }
.form label:first-child { margin-top: 0; }
.opt { font-weight: 400; color: var(--ink-3); }
.form input, .form textarea {
  display: block; width: 100%; margin: 0; padding: 11px 12px;
  border: 1px solid var(--rule-2); border-radius: 10px;
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.4 var(--sans);
  -webkit-appearance: none; appearance: none;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--focus); outline: 3px solid var(--line-soft); outline-offset: 0; }
/* The field only bots fill in. Off-screen rather than display:none,
   which some bots know to skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send {
  display: block; width: 100%; min-height: 48px; margin-top: 20px; padding: 0 18px;
  border: 1px solid var(--link); border-radius: 11px;
  background: var(--link); color: var(--on-link);
  font: 600 1rem/1 var(--sans); cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.send:hover { background: var(--link-2); border-color: var(--link-2); }
.send:disabled { opacity: .7; cursor: default; }
.error {
  margin: 18px 0 0; padding: 11px 14px;
  border: 1px solid var(--err-line); border-radius: 10px;
  background: var(--err-bg); color: var(--err-ink); font-size: .9375rem;
}
.back { margin: 18px 0 0; }
@media (min-width: 640px) {
  .stage-contact { padding-top: 40px; }
  .panel { padding: 34px 34px 30px; }
}
