/* ZeiFlower: a night garden. One dark green-black ground, moonlit flowers, and a quiet
   strip of controls along the bottom like the label of a herbarium sheet. */

@font-face { font-family: "Marcellus"; font-weight: 400; font-display: block; src: url("../fonts/marcellus-latin-400-normal.woff2") format("woff2"); 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; }
@font-face { font-family: "Marcellus"; font-weight: 400; font-display: block; src: url("../fonts/marcellus-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Karla"; font-weight: 400; font-display: swap; src: url("../fonts/karla-latin-400-normal.woff2") format("woff2"); 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; }
@font-face { font-family: "Karla"; font-weight: 400; font-display: swap; src: url("../fonts/karla-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Karla"; font-weight: 600; font-display: swap; src: url("../fonts/karla-latin-600-normal.woff2") format("woff2"); 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; }
@font-face { font-family: "Karla"; font-weight: 600; font-display: swap; src: url("../fonts/karla-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0d1311;
  --ink: #e6e8df;
  --muted: #8e998f;
  --rule: rgba(230, 232, 223, 0.16);
  --display: "Marcellus", Georgia, serif;
  --letters: "Marcellus", Georgia, serif;
  --letters-weight: 400;
  --text: "Karla", system-ui, sans-serif;
  --pad: 28px;
  color-scheme: dark;
}

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

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.4 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button,
input {
  font: inherit;
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#garden {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}

.top,
.panel {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 2;
  opacity: 0;
}

body.is-ready .top,
body.is-ready .panel {
  opacity: 1;
}

.top {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top)) var(--pad) 18px;
}

.tag {
  margin: 0 16px;
  font: 600 11px/1.2 var(--text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mark {
  margin: 0;
  font: 400 23px/1 var(--display);
  letter-spacing: 0.02em;
}

.langs {
  display: flex;
  gap: 2px;
}

.langs button,
.link {
  border: 0;
  background: none;
  padding: 8px 6px;
  cursor: pointer;
}

.langs button {
  font: 600 12px/1 var(--text);
  letter-spacing: 0.14em;
  color: var(--muted);
}

.langs button[aria-pressed="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ---------- the strip of controls ---------- */

.panel {
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
  align-items: end;
  gap: 18px 48px;
  padding: 18px var(--pad) calc(22px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--rule);
}

.label {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font: 600 11px/1.2 var(--text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.name-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 14px;
}

.name-row .label {
  grid-column: 1 / -1;
}

#name {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid var(--muted);
  background: transparent;
  font: 400 30px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#name::placeholder {
  color: var(--muted);
  opacity: 0.6;
  text-transform: none;
  letter-spacing: 0.02em;
}

#name:focus-visible {
  outline: none;
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}

.grow {
  height: 44px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.grow:hover {
  background: #fff;
}

.options {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 14px 36px;
}

.choice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.choice legend {
  float: left;
  width: 100%;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.styles label {
  cursor: pointer;
  padding: 6px 0;
  color: var(--muted);
}

.styles input:checked + span {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.styles input:focus-visible + span,
.swatch input:focus-visible + i {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.colours {
  gap: 4px 10px;
}

.swatch,
.picker {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.swatch i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c);
}

.swatch input:checked + i,
.picker.is-on {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink);
}

.picker {
  border-radius: 50%;
}

.picker input {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px dashed var(--muted);
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.picker input::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.picker input::-webkit-color-swatch {
  border: 0;
  border-radius: 50%;
}

.picker input::-moz-color-swatch {
  border: 0;
  border-radius: 50%;
}

.bouquet-tools {
  display: flex;
  gap: 18px;
}

.bouquet-tools[hidden] {
  display: none;
}

.link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--muted);
}

.link:disabled {
  color: var(--muted);
  text-decoration: none;
  cursor: default;
}

/* ---------- phones ---------- */

@media (max-width: 760px) {
  :root {
    --pad: 18px;
  }

  .panel {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 14px;
  }

  #name {
    font-size: 24px;
    height: 44px;
  }

  .options {
    justify-content: flex-start;
    gap: 10px 24px;
  }

  .mark {
    font-size: 20px;
  }

  .tag {
    letter-spacing: 0.1em;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .top,
  .panel {
    transition: opacity 300ms ease;
  }
}
