/*
 * TradesAtlas brand layer for the current site.
 * Load after /assets/css/app.css. Keep these font files beside this stylesheet
 * in ./fonts/ or adjust the relative URLs when deploying. The logo SVG is an
 * image with outlined lettering; CSS fonts style the site's HTML text only.
 */

@font-face {
  font-family: "TA Saira";
  src: url("./fonts/SairaSemiCondensed-ExtraBold-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "TA Saira";
  src: url("./fonts/SairaSemiCondensed-ExtraBold-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "TA Plex";
  src: url("./fonts/IBMPlexSans-Variable-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "TA Plex";
  src: url("./fonts/IBMPlexSans-Variable-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* These match the live site. Keep the accessible focus blue. */
  --ink: #1c2420;
  --paper: #f4f1ea;
  --card: #fffdf8;
  --line: #ddd4c6;
  --spruce: #1e4a3a;
  --copper: #8a3f1d;
  --focus: #0b57d0;

  --ta-display: "TA Saira", "Arial Narrow", sans-serif;
  --ta-body: "TA Plex", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--ta-display);
  --sans: var(--ta-body);
}

body,
input,
button,
select,
textarea {
  font-family: var(--ta-body);
}

h1,
h2,
h3 {
  font-family: var(--ta-display);
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* 560:112 horizontal SVG stays within the site's existing 270x56 logo slot. */
.site-header .brand img {
  display: block;
  width: clamp(12rem, 24vw, 16.875rem);
  height: auto;
  max-height: 3.5rem;
  object-fit: contain;
  object-position: left center;
}

.site-nav a {
  font-family: var(--ta-body);
  font-weight: 600;
}

.hero h1 {
  max-width: 22ch;
  font-size: clamp(2.8rem, 4.1vw, 3.45rem);
  line-height: 1.09;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero .lede {
  max-width: 44rem;
  line-height: 1.55;
}

.eyebrow {
  font-family: var(--ta-body);
  font-weight: 700;
  letter-spacing: 0.105em;
  color: var(--copper);
}

.search-form {
  border-color: var(--line);
  border-radius: 14px;
  box-shadow: 0 3px 0 rgb(30 74 58 / 4%);
}

.search-fields {
  column-gap: 0.875rem;
  row-gap: 0.75rem;
}

.search-form label {
  font-weight: 600;
}

.search-form input {
  background: #fff;
  border-color: #b7afa3;
  border-radius: 7px;
}

.button {
  font-family: var(--ta-display);
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: var(--spruce);
  color: var(--spruce-ink, #f7f4ee);
}

.group-card {
  border-color: var(--line);
  border-radius: 14px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.group-card h3 {
  font-family: var(--ta-body);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.16;
}

.group-card:hover {
  transform: translateY(-2px);
  border-color: var(--copper);
  box-shadow: 0 7px 22px rgb(28 36 32 / 8%);
}

/* Keep keyboard focus visible on links, cards, controls and form fields. */
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* The live site stacks search at 860px and cards at 640px. */
@media (max-width: 640px) {
  .site-header .brand img {
    width: min(13.5rem, calc(100vw - 2rem));
    max-height: none;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.4rem, 10vw, 3rem);
    line-height: 1.06;
  }

  .search-form {
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .group-card {
    transition: none;
  }

  .group-card:hover {
    transform: none;
  }
}
