/* Language Casa Design System - brand book 3.0 "Editorial collage" */
/* Fonts: Playfair Display, Inter, Caveat (Google Fonts) */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;1,500;1,700&family=Inter:wght@400;600&family=Caveat:wght@600&display=swap");

/* ---------- Tokens: light theme (default) ---------- */
:root {
  --lilac: #C7B9FF; /* Brand lilac. Main background for posts, the site and the avatar. Use via {bg}. */
  --violet: #4B2BA8; /* Brand violet. Headlines on light grounds, CTA, avatar background. */
  --hot-pink: #FF5FAE; /* Pink highlight boxes and the second headline line on dark grounds. Text on it is {ink} only. */
  --lime: #E4F45A; /* Boxes, stickers, tags. Replaces yellow. Text on it is {ink} only. */
  --cream: #FAF6EF; /* Paper: cards, text blocks, ground behind the logo. */
  --ink: #141018; /* Main text. The only text color on pink and lime. */
  --blush: #FFD3E8; /* Soft pink underlay, review backgrounds. Not for text. */
  --grid-line: #E3DCF7; /* Notebook grid lines on educational post backgrounds. */
  --bg: var(--lilac); /* Page background. */
  --surface: var(--cream); /* Cards, fields, paper blocks on top of {bg}. */
  --text: var(--ink); /* Main text on {bg} and {surface}. */
  --text-muted: #4A4060; /* Captions and secondary text on {bg} and {surface}. */
  --heading: var(--violet); /* Playfair headlines on {bg} and {surface}. */
  --cta: var(--violet); /* Primary button fill. */
  --on-cta: var(--cream); /* Text on {cta}. */
  --highlight: var(--hot-pink); /* Pink highlight box. One of the two accents allowed per post. */
  --highlight-alt: var(--lime); /* Lime highlight box and stickers. */
  --on-highlight: var(--ink); /* Text on {highlight} and {highlight-alt}. White on pink fails contrast. */
  --border: #9C8FD0; /* Borders of inputs and secondary buttons (3:1 against {surface}). */
  --focus: var(--violet); /* Keyboard focus ring. */

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: Inter, Montserrat, system-ui, sans-serif;
  --font-hand: Caveat, "Segoe Print", cursive;

  --space-1: 4px; /* Icon to text. */
  --space-2: 8px; /* Inside tags. */
  --space-3: 12px; /* Vertical padding of boxes. */
  --space-4: 16px; /* Button padding, minimum screen edge gutter. */
  --space-5: 24px; /* Card padding. */
  --space-6: 32px; /* Between blocks inside a card. */
  --space-7: 48px; /* Padding of a 4:5 post (1080 px). */
  --space-8: 64px; /* Between site sections on mobile. */
  --space-9: 96px; /* Between site sections on desktop. */
  --radius-none: 0; /* Highlight boxes: always square-cornered. */
  --radius-sm: 4px; /* Inputs, tags. */
  --radius-md: 12px; /* Cards, photo cut-outs. */
  --radius-pill: 999px; /* Buttons. */
  --shadow-photo: 0 10px 24px rgba(20, 16, 24, 0.18); /* Photo cut-out with a white border; the only soft shadow in the system. */
  --shadow-sticker: 2px 3px 0 #141018; /* Hard collage-style shadow on buttons and stickers. */
  --tilt-left: -3deg; /* Box under a headline. */
  --tilt-right: 3deg; /* Second box or a sticker. */
  --photo-border: 8px; /* White border of a photo cut-out. */
  --control-border: 2px; /* Border of inputs and the secondary button. */
}

/* ---------- Dark theme ---------- */
@media (prefers-color-scheme: dark) {
 :root:not([data-theme="light"]) {
    --bg: #1E1636;
    --surface: #2A2045;
    --text: var(--cream);
    --text-muted: #C9C0DD;
    --heading: #D9CFFF;
    --cta: var(--lilac);
    --on-cta: var(--ink);
    --border: #6B5E99;
    --focus: var(--lime);
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1E1636;
  --surface: #2A2045;
  --text: var(--cream);
  --text-muted: #C9C0DD;
  --heading: #D9CFFF;
  --cta: var(--lilac);
  --on-cta: var(--ink);
  --border: #6B5E99;
  --focus: var(--lime);
  color-scheme: dark;
}

/* ---------- Type styles ---------- */
.display-xl { font-family: var(--font-display); font-size: 72px; line-height: 0.95; font-weight: 700; letter-spacing: -0.01em; } /* Covers, site hero. */
.display-l { font-family: var(--font-display); font-size: 56px; line-height: 1; font-weight: 700; } /* Headline of a 4:5 post. */
.display-italic { font-family: var(--font-display); font-size: 56px; line-height: 1; font-weight: 500; font-style: italic; } /* Second headline line, the word Casa in the logo. */
.heading { font-family: var(--font-display); font-size: 36px; line-height: 1.1; font-weight: 700; } /* Site section headings. */
.title { font-family: var(--font-sans); font-size: 22px; line-height: 28px; font-weight: 600; } /* Card titles. */
.body-l { font-family: var(--font-sans); font-size: 18px; line-height: 28px; font-weight: 400; } /* Lead paragraphs. */
.body { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 400; } /* Body text. */
.box { font-family: var(--font-sans); font-size: 18px; line-height: 24px; font-weight: 600; } /* Text inside highlight boxes. */
.label { font-family: var(--font-sans); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; } /* Tags and eyebrows (uppercase). */
.note { font-family: var(--font-hand); font-size: 28px; line-height: 1.1; font-weight: 600; } /* Handwritten notes, one per layout. */

/* ---------- Components ---------- */

body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); }
.lc-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); padding: var(--space-5); }
.lc-col { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); }

/* Button */
.lc-btn { font-family: var(--font-sans); font-weight: 600; font-size: 16px; line-height: 20px; border-radius: var(--radius-pill); padding: 14px 28px; border: var(--control-border) solid transparent; cursor: pointer; min-height: 48px; display: inline-flex; align-items: center; gap: var(--space-2); }
.lc-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.lc-btn-primary { background: var(--cta); color: var(--on-cta); }
.lc-btn-primary:hover { box-shadow: var(--shadow-sticker); }
.lc-btn-pink { background: var(--highlight); color: var(--on-highlight); box-shadow: var(--shadow-sticker); }
.lc-btn-ghost { background: transparent; color: var(--heading); border-color: var(--border); }
.lc-btn-ghost:hover { border-color: var(--heading); }
.lc-btn-sm { font-size: 14px; padding: 8px 18px; min-height: 44px; }

/* Logo */
.lc-logo { display: inline-flex; align-items: baseline; gap: 0.16em; font-family: var(--font-display); line-height: 1; }
.lc-logo-l { font-weight: 700; color: var(--heading); letter-spacing: -0.01em; }
.lc-logo-c { font-style: italic; font-weight: 500; color: var(--highlight); }
.lc-avatar { position: relative; border-radius: 50%; background: var(--violet); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); line-height: 1; flex: none; }
.lc-avatar-l { font-weight: 700; color: var(--cream); }
.lc-avatar-c { font-style: italic; font-weight: 500; color: var(--hot-pink); }
.lc-avatar-star { position: absolute; top: 18%; right: 17%; width: 18%; height: 18%; }

/* Headline */
.lc-headline { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--heading); line-height: 1; text-wrap: balance; }
.lc-headline-2 { display: block; font-style: italic; font-weight: 500; }
.lc-headline-xl { font-size: 72px; line-height: 0.95; }
.lc-headline-l { font-size: 56px; }
.lc-headline-m { font-size: 36px; line-height: 1.1; }

/* HighlightBox */
.lc-box { display: inline-block; font-family: var(--font-sans); font-weight: 600; font-size: 18px; line-height: 24px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-none); color: var(--on-highlight); }
.lc-box-pink { background: var(--highlight); }
.lc-box-lime { background: var(--highlight-alt); }
.lc-box-dotted { background: transparent; color: var(--text); border: 2px dashed var(--text); }
.lc-tilt-left { transform: rotate(var(--tilt-left)); }
.lc-tilt-right { transform: rotate(var(--tilt-right)); }

/* Sticker */
.lc-sticker { display: inline-block; flex: none; }
.lc-sticker .fill-lime { fill: var(--lime); }
.lc-sticker .fill-pink { fill: var(--hot-pink); }
.lc-sticker .ink { fill: var(--ink); }
.lc-sticker .ink-stroke { stroke: var(--ink); fill: none; }

/* Tag */
.lc-tag { display: inline-flex; align-items: center; font-family: var(--font-sans); font-weight: 600; font-size: 13px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--radius-sm); }
.lc-tag-violet { background: var(--violet); color: var(--cream); }
.lc-tag-lime { background: var(--lime); color: var(--ink); }
.lc-tag-cream { background: var(--cream); color: var(--ink); }

/* PriceCard */
.lc-price { width: 260px; box-sizing: border-box; background: var(--surface); color: var(--text); border-radius: var(--radius-md); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.lc-price-title { font-size: 22px; line-height: 28px; font-weight: 600; margin: 0; }
.lc-price-meta { font-size: 14px; line-height: 20px; color: var(--text-muted); margin: 0; }
.lc-price-sum { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--heading); margin: 0; font-variant-numeric: tabular-nums; }
.lc-price-featured { background: var(--violet); color: var(--cream); }
.lc-price-featured .lc-price-meta { color: var(--grid-line); }
.lc-price-featured .lc-price-sum { color: var(--lime); }

/* Input */
.lc-field { display: flex; flex-direction: column; gap: var(--space-2); width: 300px; max-width: 100%; }
.lc-label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); }
.lc-input { font: 400 16px/24px var(--font-sans); color: var(--text); background: var(--surface); border: var(--control-border) solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; min-height: 48px; box-sizing: border-box; }
.lc-input::placeholder { color: var(--text-muted); }
.lc-input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--heading); }
.lc-hint { font-size: 13px; line-height: 18px; color: var(--text-muted); }

/* PhotoFrame */
.lc-photo { display: inline-block; background: var(--cream); padding: var(--photo-border); border-radius: var(--radius-md); box-shadow: var(--shadow-photo); }
.lc-photo-inner { display: flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--blush); color: var(--ink); font-size: 13px; overflow: hidden; }
.lc-photo-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
