/* =========================================================================
   Elena Chudinova - akvarellgalleri
   Sajten är medvetet ljus: ett galleri på papper. color-scheme låses därför
   till light så att webbläsarens mörka läge inte inverterar formulärfälten.
   ========================================================================= */

:root {
  color-scheme: light;

  /* Papper och bläck */
  --paper:        #fdfaf3;
  --paper-deep:   #f6efe1;
  --paper-card:   #fffdf8;
  --ink:          #2b2823;
  --ink-soft:     #6a6153;
  --ink-faint:    #9a9284;

  /* Akvarellpigment */
  --wash-indigo:  #4a6fa5;
  --wash-ochre:   #d9a441;
  --wash-rose:    #c9553d;
  --wash-sage:    #8ba888;

  --accent:       var(--wash-indigo);
  --accent-warm:  var(--wash-rose);

  --line:         rgba(43, 40, 35, 0.12);
  --line-strong:  rgba(43, 40, 35, 0.24);

  --shadow-soft:  0 1px 2px rgba(43, 40, 35, 0.04),
                  0 8px 24px -12px rgba(43, 40, 35, 0.18);
  --shadow-lift:  0 2px 6px rgba(43, 40, 35, 0.06),
                  0 20px 40px -20px rgba(43, 40, 35, 0.28);

  --radius:       4px;
  --radius-lg:    10px;

  --font-display: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua',
                  'Hoefler Text', Georgia, 'Times New Roman', serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                  'Helvetica Neue', Arial, sans-serif;

  --shell:        min(1180px, 100% - 2.5rem);
  --shell-narrow: min(720px, 100% - 2.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  /* Papperskorn. Enda "bilden" i designen - en 90-byte SVG som data-URI. */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: currentColor; }

img { max-width: 100%; height: auto; display: block; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 100;
  padding: 0.6rem 1rem; background: var(--ink); color: var(--paper);
  border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.shell { width: var(--shell); margin-inline: auto; }
.shell--narrow { width: var(--shell-narrow); }
.centered { text-align: center; }

/* -------------------------------------------------------------------------
   Akvarellfläckar. Rena CSS-gradienter med kraftig blur - inga bildfiler,
   och de kostar nästan ingenting att rita på en Pi.
   ------------------------------------------------------------------------- */
.wash {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  filter: blur(48px);
  opacity: 0.5;
}

.wash--header {
  top: -180px; left: 50%; transform: translateX(-55%);
  width: min(1400px, 130vw); height: 480px;
  background:
    radial-gradient(38% 46% at 22% 58%, rgba(74, 111, 165, 0.32), transparent 70%),
    radial-gradient(32% 40% at 55% 38%, rgba(217, 164, 65, 0.30), transparent 72%),
    radial-gradient(34% 44% at 80% 62%, rgba(201, 85, 61, 0.22), transparent 70%);
}

.wash--footer {
  bottom: -140px; left: 50%; transform: translateX(-45%);
  width: min(1200px, 120vw); height: 340px;
  background:
    radial-gradient(40% 50% at 30% 50%, rgba(139, 168, 136, 0.30), transparent 72%),
    radial-gradient(36% 44% at 70% 45%, rgba(74, 111, 165, 0.24), transparent 70%);
}

.wash--spot {
  top: -60px; left: 50%; transform: translateX(-50%);
  width: min(680px, 100vw); height: 380px;
  background:
    radial-gradient(45% 52% at 40% 50%, rgba(217, 164, 65, 0.28), transparent 70%),
    radial-gradient(40% 48% at 65% 45%, rgba(74, 111, 165, 0.22), transparent 72%);
}

/* -------------------------------------------------------------------------
   Sidhuvud
   ------------------------------------------------------------------------- */
.site-header { position: relative; padding: 1.5rem 0 1rem; }

.site-header__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand { text-decoration: none; display: flex; flex-direction: column; }
.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand__tagline {
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }

.site-nav__list {
  display: flex; gap: 1.6rem;
  list-style: none; margin: 0; padding: 0;
}
.site-nav__list a {
  text-decoration: none;
  font-size: 0.9375rem;
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s;
}
.site-nav__list a:hover { border-bottom-color: var(--line-strong); }
.site-nav__list a[aria-current='page'] { border-bottom-color: var(--accent); }

.lang-switch {
  display: flex; gap: 0.55rem;
  list-style: none; margin: 0; padding: 0;
  font-size: 0.75rem; letter-spacing: 0.08em;
}
.lang-switch a {
  text-decoration: none; color: var(--ink-faint);
  padding: 0.15rem 0.1rem;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current='true'] { color: var(--ink); border-bottom: 1.5px solid var(--accent); }

/* Hamburgermenyn syns bara på små skärmar; ren CSS via checkbox. */
.nav-toggle, .nav-toggle__button { display: none; }

@media (max-width: 720px) {
  .site-header__inner { align-items: center; }
  .nav-toggle__button {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 38px; cursor: pointer; padding: 8px;
  }
  .nav-toggle__button span { display: block; height: 1.5px; background: var(--ink); }
  .site-nav {
    flex-basis: 100%; flex-direction: column; align-items: flex-start;
    gap: 1rem; max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav-toggle:checked ~ .site-nav { max-height: 380px; padding-top: 1rem; }
  .site-nav__list { flex-direction: column; gap: 0.85rem; }
}

/* -------------------------------------------------------------------------
   Sektioner
   ------------------------------------------------------------------------- */
.site-main { flex: 1 0 auto; position: relative; }

.section { padding: 3.5rem 0; position: relative; }
.section--tinted { background: linear-gradient(180deg, transparent, var(--paper-deep) 18%, var(--paper-deep) 82%, transparent); }

.section__header { max-width: 44ch; margin-bottom: 2.25rem; }
.section__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: 0.35em; }
.section__subtitle { color: var(--ink-soft); margin: 0; }
.section__more { margin-top: 2.25rem; }

.lead { font-size: 1.15rem; color: var(--ink-soft); }
.empty { color: var(--ink-faint); font-style: italic; }

.hero { padding: 3rem 0 2rem; position: relative; }
.hero__text { max-width: 34ch; }
.hero__title {
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem);
  margin-bottom: 0.35em;
}
.hero__lead { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 1.75rem; }

.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.1em; }
.prose a { color: var(--accent); }
.prose--clamp { max-width: 60ch; }

.machine-note {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  font-style: italic;
  margin-top: 1rem;
}

/* -------------------------------------------------------------------------
   Knappar och länkar
   ------------------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-size: 0.9375rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.button:active { transform: translateY(1px); }
.button:disabled { opacity: 0.45; cursor: not-allowed; }

.button--primary {
  background: var(--ink); color: var(--paper);
  box-shadow: var(--shadow-soft);
}
.button--primary:hover:not(:disabled) { background: #17150f; box-shadow: var(--shadow-lift); }

.button--ghost {
  background: transparent; color: var(--ink); border-color: var(--line-strong);
}
.button--ghost:hover:not(:disabled) { border-color: var(--ink); background: rgba(43, 40, 35, 0.04); }

.button--danger { background: transparent; color: var(--wash-rose); border-color: rgba(201, 85, 61, 0.4); }
.button--danger:hover:not(:disabled) { background: rgba(201, 85, 61, 0.08); border-color: var(--wash-rose); }

.button--wide { width: 100%; }
.button--small { padding: 0.35rem 0.85rem; font-size: 0.8125rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  text-decoration: none; color: var(--accent);
  font-size: 0.9375rem;
  border-bottom: 1px solid transparent;
}
.link-arrow::after { content: '→'; transition: transform 0.2s ease; }
.link-arrow:hover { border-bottom-color: currentColor; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow--back::after { content: none; }
.link-arrow--back::before { content: '←'; }

/* -------------------------------------------------------------------------
   Galleri
   ------------------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 2.5rem 2rem;
}
.grid--compact { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 1.75rem; }

.card { position: relative; }
.card__link { text-decoration: none; display: block; }

/* Målningen ligger på ett "passepartout" med lite tyngre nederkant, som en
   uppställd tavla. Rotationen på hover är minimal - bara ett litet liv. */
.card__frame {
  position: relative;
  background: var(--paper-card);
  padding: 0.85rem 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}
.card__link:hover .card__frame {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  background: var(--paper-deep);
}
.card__image--empty {
  background: repeating-linear-gradient(-45deg, var(--paper-deep), var(--paper-deep) 10px, var(--paper) 10px, var(--paper) 20px);
}

.card--sold .card__image { filter: saturate(0.72); }

.card__body { padding: 0.9rem 0.15rem 0; }
.card__title { font-size: 1.15rem; margin-bottom: 0.15em; }
.card__meta {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  font-size: 0.8125rem; color: var(--ink-faint); margin-bottom: 0.35em;
}
.card__price { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; }

.badge {
  position: absolute; top: 1.35rem; right: 1.35rem;
  background: var(--wash-rose); color: #fff;
  font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(201, 85, 61, 0.35);
}
.badge--large { font-size: 0.8125rem; padding: 0.45rem 1rem; top: 1.75rem; right: 1.75rem; }

.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filters__item {
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  transition: all 0.2s;
}
.filters__item:hover { border-color: var(--line-strong); color: var(--ink); }
.filters__item.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filters__count { font-size: 0.875rem; color: var(--ink-faint); margin-bottom: 1.5rem; }

/* -------------------------------------------------------------------------
   Enskilt verk
   ------------------------------------------------------------------------- */
.artwork { padding: 2rem 0 3.5rem; }
.breadcrumb { margin-bottom: 1.75rem; }

.artwork__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: 3rem;
  align-items: start;
}
@media (max-width: 880px) {
  .artwork__layout { grid-template-columns: 1fr; gap: 2rem; }
}

.artwork__images { display: grid; gap: 1.5rem; }
.artwork__figure {
  position: relative;
  margin: 0;
  background: var(--paper-card);
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.artwork__figure img { width: 100%; border-radius: 2px; }
.artwork__figure a { display: block; cursor: zoom-in; }
.artwork__figure--empty {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(-45deg, var(--paper-deep), var(--paper-deep) 12px, var(--paper) 12px, var(--paper) 24px);
}
.artwork__figure.is-sold img { filter: saturate(0.78); }

.artwork__panel { position: sticky; top: 2rem; }
@media (max-width: 880px) { .artwork__panel { position: static; } }

.artwork__title { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem); margin-bottom: 0.5em; }
.artwork__subtitle { font-size: 1.05rem; margin-bottom: 0.6em; }

.artwork__facts { margin: 0 0 1.75rem; display: grid; gap: 0.4rem; }
.artwork__facts > div { display: flex; gap: 0.75rem; font-size: 0.9375rem; }
.artwork__facts dt { color: var(--ink-faint); min-width: 6.5rem; }
.artwork__facts dd { margin: 0; }

.price-block {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
  margin-bottom: 1.5rem;
}
.price-block__label {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 0.25em;
}
.price-block__value { font-family: var(--font-display); font-size: 1.75rem; margin: 0; }
.price-block__note { font-size: 0.8125rem; color: var(--ink-soft); margin: 0.6em 0 0; }
.price-block--sold .price-block__value { color: var(--wash-rose); }

.artwork__description { margin-top: 2rem; }

/* -------------------------------------------------------------------------
   Om konstnären
   ------------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: start;
}
@media (max-width: 780px) { .about { grid-template-columns: 1fr; gap: 2rem; } }

.about__portrait {
  margin: 0;
  background: var(--paper-card);
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.about__portrait img { border-radius: 2px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about__cta { margin-top: 2rem; }

.contact-details { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.4rem; }
.contact-details a { color: var(--accent); }

/* -------------------------------------------------------------------------
   Formulär
   ------------------------------------------------------------------------- */
.panel {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 0.8rem + 2vw, 2rem);
  box-shadow: var(--shadow-soft);
  margin-top: 2rem;
}
.panel__title { font-size: 1.25rem; margin-bottom: 1rem; }

.field { margin-bottom: 1.15rem; display: flex; flex-direction: column; }
.field label {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.field abbr { text-decoration: none; color: var(--wash-rose); }

.field input[type='text'],
.field input[type='email'],
.field input[type='tel'],
.field input[type='password'],
.field input[type='number'],
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 6rem; line-height: 1.55; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.15);
}

.field__hint { font-size: 0.8125rem; color: var(--ink-faint); margin: 0.35rem 0 0; }
.field__error { font-size: 0.8125rem; color: var(--wash-rose); margin: 0.35rem 0 0; }
.field--error input, .field--error textarea { border-color: var(--wash-rose); }

.field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.field-row > .field { flex: 1 1 12rem; }

.checkbox {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin-bottom: 0.9rem; cursor: pointer;
  font-size: 0.9375rem;
}
.checkbox input { margin-top: 0.25rem; accent-color: var(--accent); }

/* Honeypot - dold för människor, läsbar för bottar. Inte display:none,
   eftersom en del bottar hoppar över just det. */
.honeypot {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

.inquiry-form { position: relative; }
.inquiry-form__consent { font-size: 0.8125rem; color: var(--ink-faint); margin: 1rem 0; }
.inquiry-form__actions { display: flex; gap: 0.75rem; justify-content: flex-end; flex-wrap: wrap; }
.inquiry-form__status { margin: 0.75rem 0 0; font-size: 0.875rem; min-height: 1.2em; }
.inquiry-form__status.is-error { color: var(--wash-rose); }

/* Uppmaningen om beställning på startsidan. */
.commission-teaser {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.commission-teaser .section__title { margin-bottom: 0.25em; }
.commission-teaser .section__subtitle { max-width: 48ch; }

.notice {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  margin: 0;
  border: 1px solid transparent;
}
.notice--warn { background: rgba(217, 164, 65, 0.14); border-color: rgba(217, 164, 65, 0.45); }

/* Filväljaren i beställningsformuläret. */
.upload-drop {
  padding: 1rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
}
.upload-drop input[type='file'] { font: inherit; font-size: 0.9375rem; width: 100%; }

.inquiry-summary {
  display: flex; gap: 1.25rem; align-items: center;
  margin-top: 1.5rem; padding: 1rem;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.inquiry-summary__image { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius); }
.inquiry-summary__title { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 0.15em; }
.inquiry-summary__price { color: var(--ink-soft); font-size: 0.9375rem; margin: 0 0 0.35em; }

/* -------------------------------------------------------------------------
   Dialogruta för förfrågan
   ------------------------------------------------------------------------- */
.dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(620px, calc(100vw - 2rem));
  background: var(--paper-card);
  box-shadow: 0 30px 80px -20px rgba(43, 40, 35, 0.45);
  color: var(--ink);
}
.dialog::backdrop { background: rgba(43, 40, 35, 0.45); backdrop-filter: blur(3px); }
.dialog__inner { padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); position: relative; }
.dialog__title { font-size: 1.45rem; margin-bottom: 0.35em; padding-right: 2rem; }
.dialog__intro { color: var(--ink-soft); font-size: 0.9375rem; margin-bottom: 1.5rem; }
.dialog__close {
  position: absolute; top: 0.75rem; right: 1rem;
  background: none; border: none; cursor: pointer;
  font-size: 1.9rem; line-height: 1; color: var(--ink-faint);
  padding: 0.25rem 0.5rem;
}
.dialog__close:hover { color: var(--ink); }
.dialog__success { text-align: center; padding: 1.5rem 0; }
.dialog__success h3 { font-size: 1.35rem; }
.dialog__success p { color: var(--ink-soft); margin-bottom: 1.5rem; }

/* Lightbox som site.js bygger vid klick på ett verk. */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(28, 26, 22, 0.92);
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border-radius: 2px;
}

/* -------------------------------------------------------------------------
   Sidfot
   ------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: 4rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.site-footer__inner {
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  font-size: 0.875rem; color: var(--ink-soft);
}
.site-footer__rights, .site-footer__links { margin: 0; }
.site-footer__links { display: flex; gap: 1.25rem; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }

/* -------------------------------------------------------------------------
   Delade småkomponenter (används även i admin)
   ------------------------------------------------------------------------- */
.pill {
  display: inline-block;
  font-size: 0.6875rem; letter-spacing: 0.06em;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--accent); color: #fff;
  vertical-align: middle;
}
.pill--muted { background: var(--line); color: var(--ink-soft); }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
}
.tag--ok { border-color: rgba(139, 168, 136, 0.6); background: rgba(139, 168, 136, 0.14); color: #4d6b4a; }
.tag--muted { opacity: 0.7; }
.tag--sold { border-color: rgba(201, 85, 61, 0.5); background: rgba(201, 85, 61, 0.1); color: var(--wash-rose); }

.flash {
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  border: 1px solid transparent;
}
.flash--ok { background: rgba(139, 168, 136, 0.15); border-color: rgba(139, 168, 136, 0.4); }
.flash--warn { background: rgba(217, 164, 65, 0.15); border-color: rgba(217, 164, 65, 0.45); }
.flash--error { background: rgba(201, 85, 61, 0.12); border-color: rgba(201, 85, 61, 0.4); }

.inline-form { display: inline-flex; gap: 0.4rem; align-items: center; margin: 0; }
.hint { font-size: 0.875rem; color: var(--ink-faint); }
.hint--block { margin-bottom: 1.5rem; }
.hint--machine { font-style: italic; }
