/* Tanager Group LLC website, version 1. Light and navy (dark mode) themes. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Brand colors, then the light theme */
:root {
  --navy: #102640;
  --copper: #C96B32;
  --cream: #F7F2E8;
  --stone: #D8D0C4;
  --white: #FFFFFF;
  --charcoal: #20242A;

  --bg: var(--cream);
  --bg-alt: var(--white);
  --card-bg: var(--white);
  --card-line: var(--stone);
  --band-bg: var(--navy);
  --band-line: rgba(216, 208, 196, 0.22);
  --heading: var(--navy);
  --text: var(--charcoal);
  --link: var(--navy);
  --logo-ink: var(--navy);
  --pill-bg: var(--cream);
  --pill-line: var(--stone);
  --pill-text: var(--navy);
  --everywater-ink: #373536;
  --sharknits-ink: var(--charcoal);
  --tg-copper: var(--copper);

  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

/* Navy theme: follows the visitor's dark mode setting */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #102640;
    --bg-alt: #0C1F36;
    --card-bg: #15304F;
    --card-line: rgba(216, 208, 196, 0.16);
    --band-bg: #0A1A2E;
    --band-line: rgba(216, 208, 196, 0.18);
    --heading: #F7F2E8;
    --text: #D8D0C4;
    --link: #F7F2E8;
    --logo-ink: #F7F2E8;
    --pill-bg: rgba(247, 242, 232, 0.07);
    --pill-line: rgba(216, 208, 196, 0.3);
    --pill-text: #F7F2E8;
    --everywater-ink: #F7F2E8;
    --sharknits-ink: #F7F2E8;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .sl-light { display: none; }
  :root:not([data-theme="light"]) .sl-dark { display: block; }
}

:root[data-theme="dark"] {
  --bg: #102640;
  --bg-alt: #0C1F36;
  --card-bg: #15304F;
  --card-line: rgba(216, 208, 196, 0.16);
  --band-bg: #0A1A2E;
  --band-line: rgba(216, 208, 196, 0.18);
  --heading: #F7F2E8;
  --text: #D8D0C4;
  --link: #F7F2E8;
  --logo-ink: #F7F2E8;
  --pill-bg: rgba(247, 242, 232, 0.07);
  --pill-line: rgba(216, 208, 196, 0.3);
  --pill-text: #F7F2E8;
  --everywater-ink: #F7F2E8;
  --sharknits-ink: #F7F2E8;
  color-scheme: dark;
}

:root[data-theme="dark"] .sl-light { display: none; }
:root[data-theme="dark"] .sl-dark { display: block; }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--link); }

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  max-width: 1184px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 16px;
  z-index: 10;
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  font-weight: 600;
}

.skip:focus { left: 16px; }

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

/* Logo */

.logo {
  display: block;
  width: 264px;
  height: auto;
  aspect-ratio: 1545 / 372;
  color: var(--logo-ink);
}

/* Header */

.site-header { background: var(--bg); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.brand { display: block; }

.site-nav a {
  display: inline-block;
  padding: 8px 0;
  font-weight: 600;
  font-size: 16px;
  color: var(--link);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { border-bottom-color: var(--copper); }

/* Headings */

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--heading);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 14em;
}

h2 {
  font-weight: 700;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1::after, h2::after, .statement-text::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 24px;
  background: var(--copper);
}

/* Opening section */

.hero { padding: 64px 0 120px; }

.lede {
  max-width: 34em;
  margin: 28px 0 0;
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.55;
  text-wrap: pretty;
}

/* Our companies */

.companies {
  background: var(--bg-alt);
  padding: 96px 0 112px;
}

.intro {
  max-width: 46em;
  margin: 24px 0 48px;
  text-wrap: pretty;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  border-radius: 12px;
}

.card h3 {
  display: flex;
  align-items: center;
  height: 56px;
  margin-bottom: 24px;
}

.logo-everywater { width: 200px; height: auto; color: var(--everywater-ink); }
.logo-sharknits { width: 150px; height: auto; color: var(--sharknits-ink); }
.logo-sureline { width: 180px; }
.sl-dark { display: none; }

.card p {
  margin: 0 0 24px;
  text-wrap: pretty;
}

.card-link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.card-link:hover { text-decoration-thickness: 3px; }

.soon {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  align-self: flex-start;
  padding: 4px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--pill-text);
  background: var(--pill-bg);
  border: 1px solid var(--pill-line);
  border-radius: 999px;
}

/* Closing statement */

.statement {
  background: var(--bg);
  padding: 112px 0;
}

.statement-text {
  max-width: 21em;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--heading);
  text-wrap: pretty;
}

/* Contact */

.contact {
  background: var(--band-bg);
  color: var(--cream);
  padding: 96px 0 72px;
}

.contact h2 { color: var(--white); }

.contact p {
  margin: 28px 0 0;
  font-size: clamp(19px, 1.7vw, 22px);
}

.contact a {
  color: var(--white);
  font-weight: 600;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  background: var(--band-bg);
  color: var(--stone);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 48px;
  border-top: 1px solid var(--band-line);
}

.site-footer .logo {
  width: 200px;
  color: var(--cream);
}

.site-footer p {
  margin: 0;
  font-size: 15px;
}

/* Page not found */

.notfound { padding: 64px 0 160px; }
.notfound p { margin: 28px 0 0; max-width: 34em; }
.notfound a {
  font-weight: 600;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Smaller screens */

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .header-inner { padding-top: 24px; padding-bottom: 24px; }
  .site-header .logo { width: 200px; }
  .hero { padding: 40px 0 80px; }
  .companies { padding: 72px 0 80px; }
  .intro { margin-bottom: 32px; }
  .card { padding: 28px 24px; }
  .statement { padding: 80px 0; }
  .contact { padding: 72px 0 56px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
