/*
 * Визитка lacircular.cat — временное исключение из инварианта 2 (ADR-0055, PDR-0087).
 * Цвета скопированы из packages/tokens/tokens.json; у каждого — имя токена-источника.
 * Статическая страница не может прочитать токены, поэтому копия; уходит вместе с визиткой.
 */

@font-face {
  font-family: "Young Serif";
  src: url("/fonts/young-serif-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin-wght.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg-page: #f5f3e9; /* color.paper.50 */
  --bg-card: #ffffff; /* color.white */
  --brand: #255233; /* color.green.700 */
  --brand-strong: #16301f; /* color.green.900 */
  --brand-hover: #3a7a4c; /* color.green.500 */
  --accent-fill: #dea82b; /* color.honey.500 — только заливка */
  --accent-text: #8a6410; /* color.honey.700 */
  --text-body: #1f241c; /* color.ink.900 */
  --text-muted: #5c6355; /* color.ink.500 */
  --border: rgba(31, 36, 28, 0.12); /* semantic.light.border */
  --focus: #16301f; /* semantic.light.focus */
  --logo-ground: #f5f3e9; /* color.paper.50 */
  --radius-md: 16px; /* radius.md */
  --radius-lg: 24px; /* radius.lg */
  --font-display: "Young Serif", Georgia, serif;
  --font-text: "Figtree", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #12170f; /* color.night.900 */
    --bg-card: #1b2117; /* color.night.800 */
    --brand: #7fb98c; /* color.green.300 */
    --brand-strong: #c4e0c9; /* color.green.200 */
    --brand-hover: #c4e0c9; /* semantic.dark.brand-hover */
    --accent-text: #f0c560; /* color.honey.300 */
    --text-body: #eaede4; /* semantic.dark.text-body */
    --text-muted: #a2aa98; /* semantic.dark.text-muted */
    --border: rgba(234, 237, 228, 0.14); /* semantic.dark.border */
    --focus: #c4e0c9; /* semantic.dark.focus */
  }
}

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

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

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 24px 16px 24px;
  display: grid;
  gap: 16px;
}

.hero {
  text-align: center;
  padding-bottom: 16px;
}

/* Логотип — PNG на белом: подложка цвета бумаги и multiply убирают белое поле в обеих темах. */
.logo {
  width: 132px;
  height: 132px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--logo-ground);
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 0 0 6px var(--accent-fill);
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
}

.name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 9vw, 3.5rem);
  line-height: 1.1;
  color: var(--brand);
  text-wrap: balance;
}

.tagline {
  margin: 12px 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-strong);
  text-wrap: balance;
}

.tagline-es {
  margin-top: 4px;
  font-weight: 500;
  color: var(--text-muted);
}

.about {
  margin: 24px auto 0;
  max-width: 32rem;
  text-wrap: pretty;
}

.about-es {
  margin-top: 8px;
  color: var(--text-muted);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--brand);
}

.card h2 span,
.hours dt span,
.hours dd span[lang],
.label span,
.link span {
  color: var(--text-muted);
}

.card p {
  margin: 12px 0 0;
}

.hours {
  margin: 0;
  display: grid;
  gap: 12px;
}

.hours-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.hours-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hours dt {
  font-weight: 500;
}

.hours dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sep {
  color: var(--accent-text);
}

.address {
  font-style: normal;
  font-weight: 500;
}

.contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contacts li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
}

.label {
  color: var(--text-muted);
}

.link {
  color: var(--brand);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.link:hover {
  color: var(--brand-hover);
}

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

.legal {
  max-width: 40rem;
  margin: 0 auto;
  padding: 8px 16px 40px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal p {
  margin: 0;
}

.langs {
  max-width: 40rem;
  margin: 0 auto;
  padding: 16px 16px 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.lang {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px; /* radius.full */
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.lang:hover {
  color: var(--brand-hover);
}

.lang[aria-current="page"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--bg-page);
}

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