import 'package:flutter/material.dart';
/// Visual direction: ink on warm stone — not purple/cream/serif clichés
class AppTheme {
  static const ink = Color(0xFF1A2332);
  static const jade = Color(0xFF1F6F5B);
  static const jadeDeep = Color(0xFF0E3D32);
  static const sand = Color(0xFFE8E2D6);
  static const mist = Color(0xFFD4DCE6);
  static const accent = Color(0xFFC45C26);

  static ThemeData get light {
    final base = ThemeData(
      useMaterial3: true,
      brightness: Brightness.light,
      colorScheme: ColorScheme.fromSeed(
        seedColor: jade,
        primary: jade,
        secondary: accent,
        surface: sand,
        brightness: Brightness.light,
      ),
    );
    return base.copyWith(
      scaffoldBackgroundColor: sand,
      appBarTheme: const AppBarTheme(
        backgroundColor: Colors.transparent,
        foregroundColor: ink,
        elevation: 0,
        centerTitle: false,
      ),
      textTheme: base.textTheme.apply(
        fontFamily: 'Georgia',
        bodyColor: ink,
        displayColor: ink,
      ),
      elevatedButtonTheme: ElevatedButtonThemeData(
        style: ElevatedButton.styleFrom(
          backgroundColor: jadeDeep,
          foregroundColor: sand,
          padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 14),
          shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(4)),
        ),
      ),
      inputDecorationTheme: InputDecorationTheme(
        filled: true,
        fillColor: Colors.white.withValues(alpha: 0.55),
        border: OutlineInputBorder(
          borderRadius: BorderRadius.circular(4),
          borderSide: const BorderSide(color: mist),
        ),
      ),
    );
  }
}
