/*
 * Brand tokens, taken from islandsbanki.is.
 *
 * Font: the bank's site uses TT Norms (a licensed font). We fall back to
 * Manrope, a free font with a similar geometric feel. If you have licensed
 * TT Norms files, put them in public/brand/fonts/ and uncomment the block below.
 */

/*
@font-face { font-family: "ttnorms"; font-weight: 400; font-display: swap; src: url(/brand/fonts/ttnorms-regular.woff2) format("woff2"); }
@font-face { font-family: "ttnorms"; font-weight: 500; font-display: swap; src: url(/brand/fonts/ttnorms-medium.woff2) format("woff2"); }
@font-face { font-family: "ttnorms"; font-weight: 700; font-display: swap; src: url(/brand/fonts/ttnorms-bold.woff2) format("woff2"); }
*/

:root {
  --red: #dc1e35;
  --red-dark: #b4182b;
  --red-deep: #8f1222;
  --pink: #fef5f6;
  --ink: #1f1f1f;
  --text: #404040;
  --muted: #6d6d6d;
  --bg: #fafafa;
  --line: #e6e6e6;
  --white: #ffffff;
  --ok: #00a699;

  --radius: 8px;
  --shadow: 0 1px 2px rgba(31, 31, 31, 0.06), 0 8px 24px rgba(31, 31, 31, 0.08);
  --spring: cubic-bezier(0.2, 1.3, 0.35, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "ttnorms", "Manrope Variable", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Knitted lopapeysa background, as used on islandsbanki.is (tiles seamlessly). */
  --knit-size: 560px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.knit {
  background-color: #a3101f;
  background-image:
    radial-gradient(120% 90% at 20% 10%, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(120% 120% at 90% 100%, rgba(0, 0, 0, 0.25), transparent 60%),
    url("/brand/knit.webp");
  background-size: auto, auto, var(--knit-size) auto;
}

@media (max-width: 600px) {
  :root {
    --knit-size: 340px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0 1.4em;
  border: 0;
  border-radius: 3px;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s, opacity 0.15s;
}

.btn:hover {
  background: var(--red-dark);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:focus-visible,
.link:focus-visible {
  outline: 3px solid rgba(220, 30, 53, 0.35);
  outline-offset: 2px;
}

.btn--ghost {
  background: #f2f2f2;
  color: var(--text);
}

.btn--ghost:hover {
  background: #e6e6e6;
}

.link {
  color: var(--red);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
