:root {
  --bg: #F7F3EC;
  --card: #FFFDF9;
  --line: #E6DFD3;
  --ink: #15151A;
  --muted: #5F5B57;
  --chip: #EFE9DF;
  --sky: #A9DDF0;
  --orange: #F07A3A;
  --green: #3FA34D;
  --head: "Outfit", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 18px 16px 32px;
  display: flex;
  flex-direction: column;
}

[hidden] { display: none !important; }

/* Wordmark */
.brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
  margin: 2px 0 22px;
  font: 600 22px/1 var(--head);
  letter-spacing: -0.045em;
  color: var(--ink);
  text-decoration: none;
}
.brand svg { width: 11px; height: 11px; margin-top: -3px; color: var(--ink); }
/* Logo: each letter in a brand colour, with a thin ink shadow that scales with the size */
.wm { display: inline-flex; font-weight: 650; }
.wm i { font-style: normal; text-shadow: .035em .035em 0 var(--ink); }
.wm i:nth-child(1), .wm i:nth-child(7) { color: #F07A3A; }
.wm i:nth-child(2), .wm i:nth-child(9) { color: #2E9BD6; }
.wm i:nth-child(3), .wm i:nth-child(10) { color: #E8559A; }
.wm i:nth-child(4) { color: #8E6FD8; }
.wm i:nth-child(5) { color: #3FA34D; }
.wm i:nth-child(6) { color: #F5B800; }
.wm i:nth-child(8) { color: var(--ink); }


/* Type */
h1, h2 {
  font-family: var(--head);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0;
}
h1 { font-size: 36px; line-height: 1.04; }
h2 { font-size: 28px; line-height: 1.1; }

.label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.muted { color: var(--muted); }
p { margin: 0; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.card-pad { padding: 22px 20px; }

.sky {
  background: var(--sky);
  padding: 24px 22px 26px;
  border-radius: 20px;
  margin: 6px;
}
.sky .label, .sky .lead { color: #2A2A30; }
.lead { font-size: 17px; margin-bottom: 10px; }
.sky .when { font-size: 17px; font-weight: 500; margin-top: 12px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--chip);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 58px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: 600 18px/1 var(--head);
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .08s ease, opacity .15s ease;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.btn-dark { background: var(--ink); color: var(--card); }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-soft { background: var(--chip); color: var(--ink); }
.btn:focus-visible, .field:focus-visible, .picker:focus-within {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.actions { display: grid; gap: 10px; margin-top: 18px; }
.note { font-size: 14px; color: var(--muted); text-align: center; margin-top: 14px; }

/* Forms */
.field-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.field {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  font: 400 17px var(--body);
}
.field::placeholder { color: #9A948D; }

.picker { position: relative; }
.picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Photo grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 14px;
}
.tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--chip);
}
.tile canvas { width: 100%; height: 100%; display: block; }
.tile .remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(21, 21, 26, .72);
  color: #fff;
  font-size: 16px;
  line-height: 28px;
  cursor: pointer;
}

.notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--chip);
  font-size: 14px;
}

/* Sticky bottom bar for the main action */
.bottom {
  position: sticky;
  bottom: 0;
  margin: auto -16px 0;
  padding: 16px 16px max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(247, 243, 236, 0), var(--bg) 30%);
}

/* Progress */
.progress {
  height: 12px;
  border-radius: 999px;
  background: var(--chip);
  overflow: hidden;
  margin: 18px 0 12px;
}
.progress > div {
  height: 100%;
  width: 0;
  background: var(--green);
  border-radius: 999px;
  transition: width .3s ease;
}

.check {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

/* Loading placeholder */
.skeleton {
  background: var(--chip);
  border-radius: 10px;
  color: transparent !important;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .55; } }

.footer {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
