@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;0,900;1,400&display=swap");

@font-face {
  font-family: "Huben";
  src: url("/assets/Minor-Praxis-Huben-Regular.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  color-scheme: light;
  --color-light: #fff;
  --color-primary: #302220;
  --color-primary-hover: #943519;
  --color-accent: #cf4a27;
  --color-accent-hover: #883b22;
  --color-secondary: #a6958b;
  --color-surface: #fdfcfc;
  --color-surface-muted: #f1f1f1;
  --color-border: #a5a5a5;
  --color-footer: var(--color-primary); //#a8958a;
  --radius-card: 1.3rem;
  --radius-pill: 5rem;
  background: var(--color-surface);
  color: var(--color-primary);
  font-family: "Lato", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }

.layout {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.header {
  display: flex;
  width: 100%;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 15px max(24px, calc((100% - 1400px) / 2));
  background: var(--color-surface-muted);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 184px;
  height: 70px;
  object-fit: contain;
}

.header-label {
  color: #605751;
  font-size: 0.875rem;
  font-weight: 700;
}

.main {
  width: min(1400px, calc(100% - 48px));
  flex: 1;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 4.5rem) 0 clamp(5rem, 8vw, 8rem);
}

.hero {
  display: flex;
  min-height: clamp(410px, 42vw, 590px);
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-primary);
  color: var(--color-surface);
}

.hero-content {
  width: min(100%, 920px);
  padding: clamp(2.5rem, 7vw, 7.5rem);
}

.eyebrow {
  display: block;
  color: #f28b6c;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

h1,
h2,
p { margin-top: 0; }

h1 {
  max-width: 8.5em;
  margin-bottom: 1.5rem;
  font-family: "Huben", "Lato", Arial, sans-serif;
  font-size: clamp(3rem, 6.6vw, 4rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.intro {
  max-width: 58ch;
  margin-bottom: 0;
  color: #e8e2df;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.button {
  display: inline-flex;
  min-height: 2.875rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
  padding: 0.875rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-surface);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms cubic-bezier(0.25, 1, 0.5, 1), border-color 180ms cubic-bezier(0.25, 1, 0.5, 1), color 180ms cubic-bezier(0.25, 1, 0.5, 1);
}

.button-light {
  border-color: var(--color-surface);
  background: var(--color-surface);
  color: var(--color-primary);
}

.button:hover { background: var(--color-accent-hover); }
.button-light:hover { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-surface); }

.error-main {
  display: flex;
  align-items: center;
}

.error-hero {
  width: 100%;
  min-height: clamp(410px, 38vw, 540px);
}

.error-hero h1 { max-width: 10em; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin: clamp(4rem, 7vw, 7rem) 0 2rem;
  scroll-margin-top: 2rem;
}

.section-heading h2,
.more-intro h2 {
  margin-bottom: 0;
  // font-family: "Lato", Arial, sans-serif;
  font-family: "Huben", "Lato", Arial, sans-serif;
  font-size: clamp(2rem, 4.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.section-heading p {
  max-width: 31rem;
  margin-bottom: 0.35rem;
  color: #605751;
  font-size: 1rem;
  line-height: 1.6;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  display: grid;
  min-height: 290px;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.75rem 1.5rem;
  padding: clamp(1.75rem, 3.5vw, 3.25rem);
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  background: var(--color-surface-muted);
  text-decoration: none;
  transition: border-color 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1), transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.card-icon {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  grid-column: 1 / -1;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-pill);
  background: #e6ddd8;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
}

.card-icon-pro { background: #f3d8cf; color: var(--color-accent-hover); }

.card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  grid-column: 1 / -1;
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.card-title > span {
  flex: none;
  color: var(--color-accent);
  font-size: 1.5rem;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.card-description {
  grid-column: 1 / -1;
  align-self: start;
  color: #605751;
  font-size: 1rem;
  line-height: 1.55;
}

.card-path {
  width: fit-content;
  align-self: end;
  grid-column: 1;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}

.card:hover,
.card:focus-visible {
  border-color: rgb(48 34 32 / 24%);
  box-shadow: 0 1rem 2.5rem rgb(48 34 32 / 12%);
  transform: translateY(-4px);
}

.card:hover .card-title > span,
.card:focus-visible .card-title > span { transform: translate(4px, -4px); }

.more {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(3rem, 7vw, 8rem);
  margin-top: clamp(4.5rem, 9vw, 9rem);
  padding: clamp(2rem, 5.5vw, 5.5rem);
  border-radius: var(--radius-card);
  background: var(--color-surface-muted);
}

.more-intro h2 { max-width: 9ch; }

.more-intro p {
  max-width: 35ch;
  margin: 1.5rem 0 0;
  color: #605751;
  font-size: 1rem;
  line-height: 1.6;
}

.more-links { display: grid; }

.more-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.5rem;
  gap: 0.35rem 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgb(48 34 32 / 24%);
  text-decoration: none;
}

.more-link:first-child { padding-top: 0; }
.more-link:last-child { padding-bottom: 0; border-bottom: 0; }

.more-link-title {
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.more-link-description {
  grid-column: 1;
  color: #605751;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.more-link-arrow {
  align-self: center;
  grid-column: 2;
  grid-row: 1 / 3;
  justify-self: end;
  color: var(--color-accent);
  font-size: 1.25rem;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.more-link:hover .more-link-title,
.more-link:focus-visible .more-link-title { color: var(--color-primary-hover); }

.more-link:hover .more-link-arrow,
.more-link:focus-visible .more-link-arrow { transform: translate(3px, -3px); }

:is(.brand, .button, .card, .more-link):focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.footer {
  width: 100%;
  padding: 2.5rem max(24px, calc((100% - 1400px) / 2));
  background: var(--color-primary);
  color: var(--color-light);
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer a {
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.footer a:hover { color: var(--color-primary-hover); }

@media (min-width: 2561px) {
  .header { padding-right: calc((100% - 1600px) / 2); padding-left: calc((100% - 1600px) / 2); }
  .main { width: min(1600px, calc(100% - 48px)); }
  .footer { padding-right: calc((100% - 1600px) / 2); padding-left: calc((100% - 1600px) / 2); }
}

@media (max-width: 800px) {
  .header { min-height: 76px; padding: 10px 20px; }
  .brand { gap: 0.75rem; }
  .brand-logo { width: 124px; height: 47px; }
  .header-label { display: none; }
  .main { width: min(100% - 32px, 1400px); padding-top: 1.5rem; padding-bottom: 4rem; }
  .hero { min-height: 430px; }
  .hero-content { padding: 2.25rem; }
  h1 { font-size: clamp(3rem, 15vw, 3.5rem); }
  .section-heading { display: block; margin-top: 4rem; }
  .section-heading p { margin: 1rem 0 0; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 250px; }
  .more { display: block; margin-top: 4.5rem; padding: 2rem; }
  .more-intro h2 { max-width: 12ch; }
  .more-links { margin-top: 2.5rem; }
  .footer { padding: 2rem 20px; }
}

@media (max-width: 480px) {
  .hero { min-height: 400px; }
  .hero-content { padding: 1.75rem; }
  .eyebrow { font-size: 1rem; }
  h1 { max-width: 100%; font-size: clamp(2.5rem, 13vw, 3rem); }
  .intro { font-size: 1rem; }
  .button { width: 100%; }
  .card { padding: 1.5rem; }
  .card-title { font-size: 1.6rem; }
  .more { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button,
  .card,
  .card-title > span,
  .more-link-arrow { transition: none; }
}
