/* ──────────────────────────────────────────────────────────────
   Dr. Agnieszka Brzezińska — practice site
   Type, palettes, and shared primitives
   ────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,300;1,6..72,400&family=Manrope:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Default palette: Sage */
  --bg:        #F5F1E8;
  --bg-soft:   #EDE6D6;
  --bg-card:  #FBF8F1;
  --ink:       #1F2A24;
  --ink-soft:  #4A5650;
  --ink-mute:  #7A857F;
  --rule:      #DDD3BE;
  --accent:    #6B8E7F;        /* sage */
  --accent-deep: #4F6E60;
  --accent-soft: #DCE5DC;
  --warn:      #B8593A;
  --ok:        #5C7A5E;
}

[data-palette="mgla"] {
  --bg:        #F1EFE9;
  --bg-soft:   #E4E5E1;
  --bg-card:   #F8F6F0;
  --ink:       #1E2530;
  --ink-soft:  #44505F;
  --ink-mute:  #7A8492;
  --rule:      #D5D6D0;
  --accent:    #6E8AA6;        /* dusty blue */
  --accent-deep: #4F6A85;
  --accent-soft: #DDE3EB;
  --warn:      #B8593A;
  --ok:        #5C7A8E;
}

[data-palette="glina"] {
  --bg:        #F4EDE3;
  --bg-soft:   #EBDFCE;
  --bg-card:   #FBF6EE;
  --ink:       #2A201A;
  --ink-soft:  #574438;
  --ink-mute:  #8C7866;
  --rule:      #DECDB6;
  --accent:    #B0664A;        /* terracotta */
  --accent-deep: #8E4D33;
  --accent-soft: #ECD9C9;
  --warn:      #8E4D33;
  --ok:        #6B7F5C;
}

/* Global reset, light */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: 'Newsreader', 'Georgia', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; }
h3 { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.2; }

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }

input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

.serif { font-family: 'Newsreader', 'Georgia', serif; font-weight: 400; }
.serif-it { font-family: 'Newsreader', 'Georgia', serif; font-style: italic; font-weight: 300; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.78em; letter-spacing: 0.04em; text-transform: uppercase; }

/* Eyebrow / label */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.005em;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-accent {
  background: var(--accent);
  color: var(--bg-card);
}
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-card); }
.btn-link {
  padding: 0;
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding-bottom: 2px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 28px;
}

/* Rule */
hr.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Subtle textured placeholder for imagery */
.img-placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      var(--accent-soft) 0px,
      var(--accent-soft) 1px,
      transparent 1px,
      transparent 9px
    ),
    var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  border-radius: 8px;
}
.img-placeholder .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--bg-card);
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 4px;
}

/* Form controls */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea,
.field select {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--accent-deep); background: white; }

/* Checkbox */
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.check input { display: none; }
.check .box {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.5px solid var(--ink-mute);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  transition: all 0.15s;
}
.check input:checked + .box {
  background: var(--ink);
  border-color: var(--ink);
}
.check input:checked + .box::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  transform: rotate(-45deg) translate(1px, -1px);
}

/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

/* Dot */
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* Soft scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-mute); }

/* Subtle entrance */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease-out both; }

/* Photo treatment */
.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  filter: saturate(0.85) contrast(0.96);
  background: var(--bg-soft);
}

/* Section padding helpers */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* Mobile */
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
  .container, .container-narrow { padding: 0 22px; }
}
