/* The 1mm Method / Breaking the Binge Spell — site styles
   - Cream background everywhere
   - Charcoal text everywhere
   - Clay is the dominant accent
   - No gradients, animations, drop shadows
   - Clarity over warmth, space over decoration
   - NO CSS NESTING (not supported in all browsers)
*/

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #faf8f5;
}

:root {
  /* Colours */
  --warm-cream: #faf8f5;
  --soft-stone: #f6f3ef;
  --soft-charcoal: #2b2b2b;
  --muted-stone: #6f6a65;
  --clay: #b8927a;
  --taupe: #8e827a;
  --pale-stone-line: #e6e1dc;

  /* Type - Serif for headings, Sans for body */
  --font-serif: Georgia, "Libre Baskerville", serif;
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;

  /* Layout */
  --measure: 720px;
  --page-pad: 24px;
  --block-gap: 1.6rem;
}

body {
  margin: 0;
  padding: 0;
  background: var(--warm-cream);
  color: var(--soft-charcoal);
  font-family: var(--font-sans);
  line-height: 1.75;
}

::selection {
  background: var(--clay);
  color: var(--warm-cream);
}

a {
  color: var(--taupe);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--soft-charcoal);
}

p {
  margin: 0 0 var(--block-gap);
  color: var(--soft-charcoal);
}

strong {
  font-weight: 600;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.3;
  margin-top: 0;
}

h1 {
  font-size: 2.6rem;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

/* Sections */

section {
  padding: 80px 0;
}

/* Container */

.container {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* Background modifier (used by ImageBreak) */

.bg-cream {
  background: var(--warm-cream);
}

/* Utility */

.muted {
  color: var(--muted-stone);
}

/* Accessibility */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons / CTAs */

.button {
  display: inline-block;
  height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
}

.button:focus {
  outline: 2px solid var(--soft-charcoal);
  outline-offset: 3px;
}

.button--primary {
  background: var(--clay);
  color: white;
}

.button--primary:hover {
  opacity: 0.95;
}

/* Forms */

.form__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form__input {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--pale-stone-line);
  border-radius: 0;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--soft-charcoal);
  background: transparent;
}

.form__input::placeholder {
  color: var(--muted-stone);
}

.form__input:focus {
  outline: none;
  border-color: var(--taupe);
}

/* Hero (NotFound page) */

.hero {
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Responsive */

@media (max-width: 600px) {
  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  section {
    padding: 64px 0;
  }
}
