/* Looks (look.ts), from Haven's look.css: fonts for each style, motion settings, the background
   art layer and the Appearance picker. Each style's own design is in style-*.css. */

@font-face { font-family: "Haven Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Haven Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Haven Fraunces"; src: url("fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Haven Public Sans"; src: url("fonts/public-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Haven JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Haven Bodoni Moda"; src: url("fonts/bodoni-moda.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Haven Bodoni Moda"; src: url("fonts/bodoni-moda-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Haven Jost"; src: url("fonts/jost.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Haven Cormorant"; src: url("fonts/cormorant-garamond.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Haven Cormorant"; src: url("fonts/cormorant-garamond-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Haven Raleway"; src: url("fonts/raleway.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --f-paper: "Haven Fraunces", Georgia, serif;
  --f-terminal: "Haven JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --f-luxe: "Haven Bodoni Moda", Didot, Georgia, serif;
  --f-ethereal: "Haven Cormorant", Georgia, serif;
}

/* ---- background art (styles that have it turn it on) ---- */

.ambient { position: fixed; inset: 0; z-index: -1; display: none; overflow: hidden; pointer-events: none; }
.ambient i { position: absolute; display: none; }

/* ---- motion ---- */

[data-motion="calm"] .ambient i,
[data-motion="calm"] .swirl,
[data-motion="calm"] .calm-still,
[data-motion="calm"] .calm-still::before,
[data-motion="calm"] .calm-still::after { animation: none !important; }
[data-motion="off"] *,
[data-motion="off"] *::before,
[data-motion="off"] *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }

/* ---- Appearance picker (Account) ---- */

.look-picker { gap: 8px; }
.look-label { margin: 8px 0 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.look-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.look-style {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px 11px;
  border: 1px solid rgb(var(--ink) / 0.14);
  border-radius: 14px;
  background: rgb(var(--ink) / 0.04);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.look-style:hover { border-color: rgb(var(--ink) / 0.35); }
.look-style[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.look-style b { font-size: 16px; font-weight: 600; line-height: 1.2; }
.look-style small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.look-style .look-sw { align-self: stretch; height: 6px; margin-top: 7px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.15); }
.look-style[data-v="club"] b { font-weight: 750; letter-spacing: -0.01em; }
.look-style[data-v="paper"] b { font-family: var(--f-paper); font-style: italic; font-weight: 500; }
.look-style[data-v="terminal"] b { font-family: var(--f-terminal); font-size: 14px; }
.look-style[data-v="luxe"] b { font-family: var(--f-luxe); font-weight: 400; }
.look-style[data-v="ethereal"] b { font-family: var(--f-ethereal); font-style: italic; font-weight: 500; font-size: 19px; }
.look-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.look-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 4px 13px 4px 5px;
  border: 1px solid rgb(var(--ink) / 0.14);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.look-chip.plain { padding: 4px 15px; }
.look-chip:hover { color: var(--text); border-color: rgb(var(--ink) / 0.35); }
.look-chip[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.look-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.2); }
