/* Shared brand palette, foundations and controls for the site and admin. */
:root {
  --green: #25D366;
  --deep-green: #075E54;
  --teal: #128C7E;
  --ink: #111B21;
  --paper: #FCF5EB;
  --white: #FFFFFF;
  --surface: var(--white);
  --muted: #54656F;
  --line: #D9E2DD;
  --control-border: #7F9189;
  --pale: #E8F7EE;
  --on-dark-muted: rgb(255 255 255 / 80%);
  --on-dark-line: rgb(255 255 255 / 16%);
  --shadow: rgb(7 94 84 / 8%);
  --error: #A12E22;
  --error-surface: #FFF1EF;
  --radius: 18px;
  font-family: "Hiragino Sans", "Yu Gothic", "PingFang SC", "Microsoft Yahei", Meiryo, "Segoe UI", sans-serif;
  font-size: 16px;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body, h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.5;
}

p {
  line-height: 1.85;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

:where(.prep-panel, .sidebar) :focus-visible {
  outline-color: var(--white);
}

::selection {
  background: var(--green);
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 54px;
  border: 1px solid var(--green);
  border-radius: 7px;
  padding: 14px 22px;
  background: var(--green);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  transition: background .15s, color .15s, transform .15s;
}

.button:not(:disabled):hover {
  border-color: var(--deep-green);
  background: var(--deep-green);
  color: var(--white);
  transform: translateY(-1px);
}

.button:disabled {
  opacity: .55;
  cursor: wait;
}

.button span {
  font-size: 20px;
}

.button:is(.secondary, .ad-button) {
  border-color: var(--control-border);
  background: transparent;
  color: var(--deep-green);
}

.button:is(.secondary, .ad-button):hover {
  background: var(--pale);
  color: var(--deep-green);
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
