/* Syntax Research – static landing page
   Fonts are self-hosted (SIL Open Font License) so the page makes no third-party requests. */

@font-face {
  font-family: "Didact Gothic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/didact-gothic-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/lato-700-latin.woff2") format("woff2");
}

/* ---------- Design tokens (taken from the Syntax Research logo) ---------- */

:root {
  --ink: #231f20;            /* logo charcoal */
  --ink-2: #3a3536;
  --ink-soft: #4a4547;
  --muted: #6f6a6c;
  --red: #ed1c24;            /* logo red – accents */
  --red-dark: #b8141b;       /* red dark enough for text and white-on-red */
  --red-tint: rgba(237, 28, 36, 0.09);
  --red-light: #ff6b70;      /* red that stays readable on dark panels */
  --white: #ffffff;

  --radius-xl: 24px;
  --radius-md: 12px;

  --font-body: "Didact Gothic", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --font-label: "Lato", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */

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

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

/* Background: no photo. A smooth warm canvas with a red and peach glow in
   the top corners, fading to soft charcoal at the bottom. */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: #f3efeb;
  background-image:
    radial-gradient(70rem 50rem at -10% -15%, rgba(237, 28, 36, 0.20), rgba(237, 28, 36, 0) 60%),
    radial-gradient(60rem 45rem at 110% 0%, rgba(255, 160, 110, 0.24), rgba(255, 160, 110, 0) 60%),
    radial-gradient(80rem 50rem at 50% 125%, rgba(35, 31, 32, 0.20), rgba(35, 31, 32, 0) 65%),
    linear-gradient(180deg, #faf8f6 0%, #ede9e4 100%);
  background-repeat: no-repeat;
}

/* Content sits in the vertical middle of the screen; on tall screens the
   spare room is shared above and below instead of piling up at the bottom. */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
}

h2,
p {
  margin: 0;
}

a {
  color: inherit;
}

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

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 30;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-label);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Shared bits: section header, icon badge, small label ---------- */

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: var(--radius-md);
  background: rgba(237, 28, 36, 0.16);
  color: var(--red-light);
}

.badge--light {
  background: var(--red-tint);
  color: var(--red-dark);
}

.badge .icon {
  width: 19px;
  height: 19px;
}

.label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  line-height: 1.3;
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 36px;
  text-align: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 640px;
}

.logo {
  margin: 0 0 30px;
  width: 100%;
  line-height: 0;
}

.logo img {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto;
}

.tagline {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.14em;
  color: var(--ink);
}

/* small red rule between the tagline and the access card */
.tagline::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 24px auto 28px;
  border-radius: 3px;
  background: var(--red);
}

/* ---------- Client access card ---------- */

.notice {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  max-width: 520px;
  padding: 24px;
  border: 1px solid rgba(35, 31, 32, 0.07);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 1px 2px rgba(35, 31, 32, 0.05), 0 22px 48px -18px rgba(35, 31, 32, 0.30);
  text-align: left;
}

.notice .label {
  color: var(--ink);
}

.notice__text {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.client-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 4px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  color: var(--white);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 10px 24px -8px rgba(35, 31, 32, 0.55);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.client-portal .icon {
  width: 17px;
  height: 17px;
}

.client-portal .icon--arrow {
  transition: transform 0.25s var(--ease);
}

.client-portal:hover {
  background: linear-gradient(180deg, #d01a21 0%, var(--red-dark) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 14px 28px -8px rgba(184, 20, 27, 0.55);
  transform: translateY(-1px);
}

.client-portal:hover .icon--arrow {
  transform: translateX(4px);
}

.client-portal:active {
  transform: translateY(0);
}

/* ---------- Info panel: office, email, disclosures ---------- */

.info {
  padding: 4px 24px 40px;
}

.info-panel {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #332e2f 0%, #1f1b1c 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 26px 56px -20px rgba(20, 17, 18, 0.6);
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 28px 28px;
}

.info-item + .info-item {
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.info-item .label {
  color: var(--white);
}

.info-item__body {
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.info-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.info-link__arrow {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.info-link:hover {
  color: var(--red-light);
  text-decoration-color: currentColor;
}

.info-link:hover .info-link__arrow {
  color: var(--red-light);
  transform: translateX(3px);
}

.info-panel :focus-visible {
  outline-color: var(--red-light);
}

.chip {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  vertical-align: 2px;
  text-decoration: none;
}

/* ---------- Footer ---------- */

.footer {
  padding: 8px 24px 28px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Gentle entrance (position only, so content is never hidden) ---------- */

@keyframes rise {
  from {
    transform: translateY(14px);
  }
  to {
    transform: none;
  }
}

.logo,
.tagline,
.notice,
.info-panel {
  animation: rise 0.7s var(--ease) both;
}

.tagline {
  animation-delay: 0.06s;
}

.notice {
  animation-delay: 0.12s;
}

.info-panel {
  animation-delay: 0.18s;
}

/* ---------- Tablets & small laptops ---------- */

@media (max-width: 1100px) {
  .info-panel {
    font-size: 16px;
  }

  .info-item {
    padding: 24px 22px 26px;
  }
}

/* Below 900px the three columns stack */
@media (max-width: 900px) {
  .info-panel {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .info-item + .info-item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }
}

/* ---------- Phones ---------- */

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  main {
    padding: 8px 0;
  }

  .hero {
    padding: 36px 16px 24px;
  }

  .logo {
    margin-bottom: 24px;
  }

  .tagline {
    font-size: 13.5px;
    letter-spacing: 0.1em;
  }

  .notice {
    padding: 20px 18px;
  }

  .notice__text {
    font-size: 15px;
  }

  .info {
    padding: 0 16px 32px;
  }

  .info-item {
    padding: 22px 20px;
  }
}

/* ---------- Accessibility preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .client-portal:hover {
    transform: none;
  }
}

/* No blur support: solid card so text stays readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .notice {
    background: rgba(255, 255, 255, 0.96);
  }
}

/* ---------- Print ---------- */

@media print {
  body {
    background: none;
  }

  .notice,
  .client-portal,
  .info-panel {
    box-shadow: none;
  }

  .info-panel {
    background: none;
    border-color: #ccc;
  }

  .info-panel,
  .info-item .label,
  .info-item__body,
  .info-link {
    color: var(--ink);
  }
}
