/* =========================================================
   Swades — shared gallery styles
   Two colours: terracotta rust on warm cream. Brand logos are
   the only full-colour things. Outlines, no shadows.
   ========================================================= */
:root {
  --cream: #EEE9E4;
  --paper: #F4F0EB;              /* the mat inside a frame: a lighter cream */
  --rust: #A24A2C;
  --rust-2: color-mix(in srgb, var(--rust) 72%, var(--cream));
  --rust-3: color-mix(in srgb, var(--rust) 40%, var(--cream));
  --rust-4: color-mix(in srgb, var(--rust) 14%, var(--cream));
  --rust-5: color-mix(in srgb, var(--rust) 7%, var(--cream));
  --line: 1px solid var(--rust);
  --hair: 1px solid var(--rust-3);
  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --r: 2px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--cream); }
body {
  margin: 0; background: var(--cream); color: var(--rust);
  font-family: var(--f-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--rust); color: var(--cream); }
:focus-visible { outline: 1.5px solid var(--rust); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display { font-family: var(--f-display); font-weight: 340; letter-spacing: -.02em; line-height: .98; font-variation-settings: "opsz" 144, "SOFT" 50; }
.italic { font-style: italic; }
.mono { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; }
.mono-sm { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- wordmark ---------- */
.wordmark { display: inline-flex; align-items: baseline; gap: .5em; text-decoration: none; }
.wordmark b { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 26px; letter-spacing: -.01em; line-height: 1; font-variation-settings: "opsz" 72, "SOFT" 100; }
.wordmark span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }

/* ---------- links: the underline draws in from the left ---------- */
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 1px; }
.link.is-under { background-size: 100% 1px; }
@media (hover: hover) { .link:hover { background-size: 100% 1px; } .link.is-under:hover { background-size: 0 1px; background-position: 100% 100%; } }
.link:focus-visible { background-size: 100% 1px; }

/* ---------- buttons ---------- */
.btn {
  --bh: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: var(--bh); padding: 0 22px; border: var(--line); border-radius: var(--r);
  font-family: var(--f-body); font-weight: 500; font-size: 15px; letter-spacing: .01em; line-height: 1;
  text-decoration: none; color: var(--rust); background: transparent; white-space: nowrap;
  transition: background-color .22s var(--ease), color .22s var(--ease), transform .12s;
  position: relative;
}
.btn .arr { display: inline-block; transition: transform .3s var(--ease); }
.btn--solid { background: var(--rust); color: var(--cream); }
.btn--sm { --bh: 36px; padding: 0 14px; font-size: 13.5px; }
.btn--lg { --bh: 56px; padding: 0 28px; font-size: 16.5px; }
@media (hover: hover) {
  .btn:hover { background: var(--rust); color: var(--cream); }
  .btn--solid:hover { background: var(--cream); color: var(--rust); }
  .btn:hover .arr { transform: translateX(4px); }
}
.btn:focus-visible { background: var(--rust); color: var(--cream); outline-offset: 3px; }
.btn--solid:focus-visible { background: var(--cream); color: var(--rust); }
.btn:active { transform: translateY(1px); }
.btn[aria-pressed="true"] { background: var(--rust); color: var(--cream); }
@media (hover: hover) { .btn[aria-pressed="true"]:hover { background: color-mix(in srgb, var(--rust) 86%, #000); } }
.btn[disabled] { opacity: .45; pointer-events: none; }

.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border: var(--line); border-radius: var(--r);
  background: var(--cream); color: var(--rust); transition: background-color .2s var(--ease), color .2s var(--ease);
}
.icon-btn svg { width: 18px; height: 18px; }
@media (hover: hover) { .icon-btn:hover { background: var(--rust); color: var(--cream); } }
.icon-btn:focus-visible { background: var(--rust); color: var(--cream); }
.icon-btn:active { transform: translateY(1px); }

.x-btn { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; transition: background-color .2s, color .2s, transform .25s var(--ease); }
.x-btn svg { width: 14px; height: 14px; }
@media (hover: hover) { .x-btn:hover { background: var(--rust); color: var(--cream); transform: rotate(90deg); } }
.x-btn:focus-visible { background: var(--rust); color: var(--cream); }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border: var(--hair); border-radius: 999px; font-size: 12px; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border: var(--line); border-radius: 2px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; }
.tag--solid { background: var(--rust); color: var(--cream); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(92vw, 460px); padding: 12px 16px; border: var(--line); border-radius: var(--r);
  background: var(--rust); color: var(--cream); font-size: 14px; line-height: 1.4; text-align: center;
  transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
