/* Base styles and the few components every page shares (company site,
   create-event form, and later the owner and admin pages). Needs tokens.css. */

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background-color: var(--cream);
  background-image: var(--grain);
  color: var(--ink);
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo {
  margin: 0;
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 400;
  text-decoration: none;
  text-shadow: 2px 2px 0 var(--white);
  white-space: nowrap;
}

.card {
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

/* ---- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font: inherit;
  font-size: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease;
}

.btn .icon {
  width: 20px;
  height: 20px;
}

.btn-primary {
  border: 0;
  background: var(--red);
  color: var(--cream);
  box-shadow: 0 3px 0 var(--red-deep);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--red-deep);
}

.btn-outline {
  border: 1.5px solid var(--red);
  background: var(--paper);
  color: var(--red);
}

.btn-outline:active:not(:disabled) {
  background: var(--cream);
}

.btn:disabled {
  opacity: 0.55;
  cursor: progress;
}

.btn-small {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 18px;
}
