/* Mila Galian — watercolor palette taken from the elephant illustration */
:root {
  --paper: #FBF6EE;
  --white: #FFFFFF;
  --ink: #3D3436;
  --ink-soft: #6E6266;
  --rose: #A24E5C;
  --sky: #B7D3EF;
  --sky-tint: #EEF3F7;
  --blush: #F4C6C6;
  --meadow: #D9E5B8;
  --meadow-tint: #ECEFCB;
  --lavender: #D3CDE2;

  --font-title: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-title);
  font-variation-settings: "SOFT" 100;
  font-weight: 600;
  line-height: 1.1;
}
h1 { font-size: clamp(42px, 6vw, 70px); line-height: 1.04; }
h2 { font-size: clamp(34px, 4vw, 44px); }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0; }

a { color: var(--ink); font-weight: 700; }
a:hover { color: var(--rose); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.stack { display: flex; flex-direction: column; gap: 32px; }

.note {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.1;
  color: var(--rose);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  border: 2px solid var(--rose);
  border-radius: 999px;
  background: var(--rose);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { color: var(--white); background: #8C4250; border-color: #8C4250; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-small { min-height: 44px; padding: 8px 22px; }

/* Watercolor washes */
.wash { position: absolute; filter: blur(12px); pointer-events: none; }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px; padding-top: 24px; padding-bottom: 24px;
}
.logo {
  font-family: var(--font-title); font-variation-settings: "SOFT" 100;
  font-weight: 600; font-size: 30px; text-decoration: none;
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 17px; }
.nav > a:not(.btn) { text-decoration: none; padding: 10px 0; }
.lang { display: flex; gap: 4px; font-size: 15px; }
.lang a { text-decoration: none; padding: 10px 8px; color: var(--ink-soft); }
.lang a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--ink); }

/* Hero */
.hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
  padding-top: 56px; padding-bottom: 88px;
}
.hero-text { flex: 1 1 460px; display: flex; flex-direction: column; gap: 20px; }
.hero-text .note { font-size: 32px; }
.lead { font-size: 20px; max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-art { position: relative; flex: 1 1 380px; max-width: 460px; aspect-ratio: 1 / 1; margin: 0 auto; }
.hero-art img {
  position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: cover;
  border-radius: 48% 52% 46% 54% / 52% 46% 54% 48%;
}
.wash-sky { left: 0; top: 4%; width: 66%; height: 62%; border-radius: 46% 54% 42% 58%; background: var(--sky); opacity: .75; }
.wash-blush { right: 0; top: 20%; width: 60%; height: 58%; border-radius: 55% 45% 60% 40%; background: var(--blush); opacity: .7; }
.wash-meadow { left: 16%; bottom: 0; width: 62%; height: 50%; border-radius: 50% 50% 44% 56%; background: var(--meadow); opacity: .75; }
/* The avatar has a white background: multiply blends it into the paper color */
.hero-avatar {
  position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain;
  mix-blend-mode: multiply;
}

/* Books */
.books { background: var(--white); border-radius: 48px 48px 0 0; padding: 80px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters button {
  min-height: 44px; padding: 8px 18px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--white); color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.book { display: flex; flex-direction: column; gap: 10px; }
.book[hidden] { display: none; }
.book a { font-size: 16px; }
.book-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cover {
  aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden;
  background: var(--paper); box-shadow: 0 10px 28px rgba(61, 52, 54, .12);
}
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: 13px; font-weight: 700; background: var(--sky-tint); padding: 4px 10px; border-radius: 999px; }
.tag-bi { background: var(--meadow-tint); }
.tag-soon { background: var(--blush); }
.book-desc { font-size: 16px; color: var(--ink-soft); }

/* Free printables */
.free { position: relative; padding: 80px 0; }
.wash-free { right: -120px; top: 40px; width: 420px; height: 320px; border-radius: 50%; background: var(--meadow-tint); opacity: .7; filter: blur(30px); }
.free .wrap { position: relative; }
.intro { max-width: 40rem; display: flex; flex-direction: column; gap: 4px; }
.intro p:not(.note) { font-size: 19px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--white); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 24px; }
.card p:not(.kicker) { font-size: 16px; color: var(--ink-soft); }
.card > a { margin-top: auto; padding-top: 8px; }
.card-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; border: 1px solid #EEE6DA; margin-bottom: 6px; }
.card-soon { background: transparent; border: 2px dashed #E0D5C6; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rose); }

/* Words to share */
.words { background: var(--sky-tint); border-radius: 48px; padding: 80px 0; }
.words-inner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 48px; }
.words-intro { flex: 1 1 340px; display: flex; flex-direction: column; gap: 8px; }
.words-intro p:not(.note) { color: #4F4549; }
.word-list { flex: 2 1 480px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.word-list li { background: var(--white); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.word-list .en { font-family: var(--font-title); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 24px; line-height: 1.2; }
.word-list .pt { font-family: var(--font-hand); font-weight: 600; font-size: 28px; line-height: 1.1; color: var(--rose); }
.words-more { flex-basis: 100%; font-size: 16px; color: #4F4549; }

/* About */
.about { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 88px; padding-bottom: 88px; }
.avatar { position: relative; flex: 0 0 200px; height: 200px; display: flex; align-items: center; justify-content: center; text-align: center; }
.avatar img { position: relative; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.avatar span { position: relative; font-family: var(--font-hand); font-size: 22px; font-weight: 600; }
.wash-avatar { inset: 0; border-radius: 52% 48% 46% 54%; background: var(--meadow); opacity: .7; filter: blur(8px); }
.about-text { flex: 1 1 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.about-text p { font-size: 19px; max-width: 40rem; }
.h2-pt { font-family: var(--font-hand); font-weight: 600; font-size: .7em; color: var(--rose); white-space: nowrap; }

/* Footer */
.site-footer { border-top: 1px solid #E6DDD0; }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 28px; padding-bottom: 28px; font-size: 15px; color: var(--ink-soft);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { font-weight: 400; }
.footer-tagline { color: var(--ink); margin-bottom: 4px; }

a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
