/* Halden design system for Tailwind CSS v4. Load the fonts: <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=Newsreader:wght@400&display=swap"> */
@import "tailwindcss";

@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *, .dark, .dark *));

:root {
  --background:            #f1f0ec;
  --foreground:            #111314;
  --body:                  #111314;
  --surface:               #fbfaf7;
  --surface-foreground:    #111314;
  --muted:                 #e9e7e1;
  --muted-foreground:      #63645f;
  --border:                #1010101f;
  --border-strong:         #0f141433;
  --input:                 #1010101f;
  --input-background:      #fbfaf7;
  --ring:                  #d96629;
  --primary:               #111314;
  --primary-foreground:    #f1f0ec;
  --secondary:             #d96629;
  --secondary-foreground:  #111314;
  --accent:                #d96629;
  --accent-foreground:     #111314;
  --inverse:               #111314;
  --inverse-foreground:    #f1f0ec;
  --inverse-muted:         #9c9c9a;
  --inverse-border:        #f1f0ec29;
  --destructive:           #dd4027;
  --destructive-foreground: #ffffff;
}
[data-theme="dark"], .dark {
  --background:            #111314;
  --foreground:            #f1f0ec;
  --body:                  #f1f0ec;
  --surface:               #1b1d1e;
  --surface-foreground:    #f1f0ec;
  --muted:                 #1a1c1d;
  --muted-foreground:      #a3a49f;
  --border:                #efefef1f;
  --border-strong:         #f0f0eb33;
  --input:                 #efefef1f;
  --input-background:      #1b1d1e;
  --ring:                  #d96629;
  --primary:               #f1f0ec;
  --primary-foreground:    #111314;
  --secondary:             #111314;
  --secondary-foreground:  #ffffff;
  --accent:                #d96629;
  --accent-foreground:     #111314;
  --inverse:               #fbfaf7;
  --inverse-foreground:    #111314;
  --inverse-muted:         #6a6b6a;
  --inverse-border:        #11131429;
  --destructive:           #e15741;
  --destructive-foreground: #111111;
}

@theme inline {
  --color-background:            var(--background);
  --color-foreground:            var(--foreground);
  --color-body:                  var(--body);
  --color-surface:               var(--surface);
  --color-surface-foreground:    var(--surface-foreground);
  --color-muted:                 var(--muted);
  --color-muted-foreground:      var(--muted-foreground);
  --color-border:                var(--border);
  --color-border-strong:         var(--border-strong);
  --color-input:                 var(--input);
  --color-input-background:      var(--input-background);
  --color-ring:                  var(--ring);
  --color-primary:               var(--primary);
  --color-primary-foreground:    var(--primary-foreground);
  --color-secondary:             var(--secondary);
  --color-secondary-foreground:  var(--secondary-foreground);
  --color-accent:                var(--accent);
  --color-accent-foreground:     var(--accent-foreground);
  --color-inverse:               var(--inverse);
  --color-inverse-foreground:    var(--inverse-foreground);
  --color-inverse-muted:         var(--inverse-muted);
  --color-inverse-border:        var(--inverse-border);
  --color-destructive:           var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
}

@theme {
  --color-ivory-buff:            #ebd3a2;
  --color-english-red:           #d96629;
  --color-black:                 #111314;
  --font-display:                "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:                   "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent:                 "Newsreader", ui-serif, Georgia, serif;
  --text-display:                clamp(64px, 1.34rem + 10.91vw, 178.56px);
  --text-display--line-height:   0.82;
  --text-display--letter-spacing: -0.065em;
  --text-display--font-weight:   600;
  --text-h2:                     clamp(36px, 4.4vw, 68px);
  --text-h2--line-height:        0.98;
  --text-h2--letter-spacing:     -0.045em;
  --text-h2--font-weight:        500;
  --text-h3:                     18.72px;
  --text-h3--line-height:        1.55;
  --text-h3--letter-spacing:     -0.009em;
  --text-h3--font-weight:        700;
  --text-lead:                   clamp(18px, 1.45vw, 22px);
  --text-lead--line-height:      1.4;
  --text-lead--letter-spacing:   -0.015em;
  --text-lead--font-weight:      400;
  --text-body:                   16px;
  --text-body--line-height:      1.55;
  --text-body--letter-spacing:   -0.01em;
  --text-body--font-weight:      400;
  --text-small:                  14px;
  --text-small--line-height:     1.55;
  --text-small--letter-spacing:  -0.011em;
  --text-small--font-weight:     400;
  --text-eyebrow:                13px;
  --text-eyebrow--line-height:   1.55;
  --text-eyebrow--letter-spacing: -0.012em;
  --text-eyebrow--font-weight:   400;
  --spacing:                     0.25rem;
  --container-page:              1680px;
  --radius-sm:                   12px;
  --radius-md:                   18px;
  --radius-lg:                   clamp(20px, 2.2vw, 32px);
  --radius-pill:                 9999px;
  --shadow-sm:                   rgba(0, 0, 0, 0.8) 0px 40px 70px -30px;
  --shadow-ring:                 rgba(17, 19, 20, 0.12) 0px 0px 0px 1px inset;
  --ease-in-out:                 cubic-bezier(.76, 0, .24, 1);
  --ease-out:                    cubic-bezier(.16, 1, .3, 1);
  --breakpoint-sm:               860px;
  --breakpoint-md:               900px;
  --breakpoint-lg:               960px;
  --breakpoint-xl:               1000px;
}

@utility container-page { max-width: var(--container-page); margin-inline: auto; padding-inline: clamp(18px, 2.4vw, 36px); }
@utility section-y { padding-block: clamp(88px, 10vw, 168px); }
@utility duration-base { transition-duration: 700ms; }

@layer base {
  body { background: var(--color-background); color: var(--color-body); font-family: var(--font-body); }
  h1, h2, h3, h4 { font-family: var(--font-display); color: var(--color-foreground); }
}
