/* =========================================================
   BASE STYLES
   - Reset (removes browser default spacing)
   - Typography (heading and text sizes used on the site)
   - Simple grid: .container / .row / .col-*
   - Small helper classes
   ========================================================= */


/* ---------- 1. Reset ---------- */

html {
  box-sizing: border-box;
  font-size: 16px;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  word-break: normal;
  tab-size: 4;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  background-repeat: no-repeat;
}

*::before,
*::after {
  text-decoration: inherit;
  vertical-align: inherit;
}

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: Roboto, sans-serif;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.87);
  background: #ffffff;
}

p {
  margin-bottom: 16px;
}

img {
  border-style: none;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  text-transform: none;
  background-color: transparent;
  border-style: none;
  cursor: pointer;
  overflow: visible;
}

button:disabled {
  cursor: default;
}

/* Elements with the "hidden" attribute are never shown */
[hidden] {
  display: none !important;
}

/* The wrapper around the whole page */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 100%;
  position: relative;
}


/* ---------- 2. Typography ----------
   title-xl  = very large title (hero)
   title-lg  = section titles
   title-md  = "About" title
   title-sm  = hero subtitle, goal card titles
   title-xs  = card titles
   text-subtitle / text-body = normal text
   (The font sizes never change on small screens; only the line height does.) */

.title-xl,
.title-lg,
.title-md,
.title-sm,
.title-xs,
.text-subtitle,
.text-body {
  font-family: Roboto, sans-serif;
}

.title-xl {
  font-size: 3.75rem;
  line-height: 3.75rem;
  letter-spacing: -0.0083333333em;
}

.title-lg {
  font-size: 3rem;
  line-height: 3.125rem;
  letter-spacing: normal;
}

.title-md {
  font-size: 2.125rem;
  line-height: 2.5rem;
  letter-spacing: 0.0073529412em;
}

.title-sm {
  font-size: 1.5rem;
  line-height: 2rem;
  letter-spacing: normal;
}

.title-xs {
  font-size: 1.25rem;
  line-height: 2rem;
  letter-spacing: 0.0125em;
}

.text-subtitle {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75rem;
  letter-spacing: 0.009375em;
  color: #424242;
}

.text-body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5rem;
  letter-spacing: 0.03125em;
}

/* Headings are bold */
h1, h2, h3 {
  font-weight: 700;
}

@media (max-width: 768px) {
  .title-xl { line-height: 1.3; }
  .title-lg { line-height: 1.3; }
  .title-md { line-height: 1.3; }
  .title-sm { line-height: 1.4; }
}

@media (max-width: 600px) {
  .title-xl { line-height: 1.2; }
  .title-lg { line-height: 1.2; }
  .title-md { line-height: 1.2; }
  .title-sm { line-height: 1.3; }
}


/* ---------- 3. Grid ----------
   .container  centers the content and limits its width
   .row        puts columns next to each other
   .col-12     full width,  .col-6 half width
   .col-md-*   used on screens 960px and wider
   .col-lg-*   used on screens 1264px and wider
   (12 columns in total, like Bootstrap) */

.container {
  width: 100%;
  padding: 12px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 960px) {
  .container { max-width: 900px; }
}

@media (min-width: 1264px) {
  .container { max-width: 1185px; }
}

@media (min-width: 1904px) {
  .container { max-width: 1785px; }
}

.row {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 auto;
  margin: -12px;
}

.col {
  width: 100%;
  padding: 12px;
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
}

.col-6  { flex: 0 0 50%;  max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 960px) {
  .col-md-3 { flex: 0 0 25%;        max-width: 25%; }
  .col-md-4 { flex: 0 0 33.3333333%; max-width: 33.3333333%; }
  .col-md-6 { flex: 0 0 50%;        max-width: 50%; }
  .col-md-8 { flex: 0 0 66.6666667%; max-width: 66.6666667%; }
}

@media (min-width: 1264px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
}


/* ---------- 4. Helpers ---------- */

.text-center   { text-align: center; }
.justify-center { justify-content: center; }
.align-center  { align-items: center; }

/* Brand brown colour (also adds a little space above block titles) */
.primary-text {
  color: #8D5B2D;
  margin-top: 20px;
}

.text-black {
  color: black;
}
