/* Formudex, LLC — public company website
   Static CSS. No JavaScript, no external fonts, no third-party resources.
   Values transcribed from the approved design (Formudex Site.dc.html). */

:root {
  --off-white: #F7FFFB;   /* page background */
  --dark-green: #173B32;  /* all text and links */
  --primary-green: #1FAB89; /* logo mark + non-text rule accent only */
  --pale-mint: #D7FBE8;   /* dividers, selection */

  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --column: 720px;
  --pad-block: clamp(40px, 5.5vw, 64px);
  --pad-inline: clamp(24px, 4vw, 40px);
  --gap-logo-hero: clamp(36px, 3.6vw, 44px);
  --gap-section: clamp(40px, 4.5vw, 56px);
  --gap-hero-inner: clamp(20px, 2.2vw, 28px);
  --gap-hero-extra: clamp(4px, 1.2vw, 16px);
  --gap-footer: clamp(48px, 5.5vw, 72px);
}

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

body {
  margin: 0;
  background: var(--off-white);
  color: var(--dark-green);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--pale-mint);
  color: var(--dark-green);
}

a {
  color: var(--dark-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  word-break: break-word;
}

a:hover {
  /* Underline is never removed: the link must not rely on colour alone. */
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--dark-green);
  outline-offset: 3px;
  border-radius: 1px;
}

@supports not selector(:focus-visible) {
  a:focus {
    outline: 2px solid var(--dark-green);
    outline-offset: 3px;
  }
}

/* Layout ------------------------------------------------------------------ */

.page {
  box-sizing: border-box;
  min-height: 100vh;
  padding: var(--pad-block) var(--pad-inline);
  display: flex;
  flex-direction: column;
}

.column {
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Logo lockup ------------------------------------------------------------- */

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo__mark {
  display: block;
  flex: none;
  width: 42px;
  height: 42px;
}

.logo__word {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.024em;
  line-height: 1;
  color: var(--dark-green);
}

/* Content ----------------------------------------------------------------- */

.content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-section);
  margin-top: var(--gap-logo-hero);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: var(--gap-hero-inner);
  /* Extra separation so hero -> first section reads as a level change. */
  margin-bottom: var(--gap-hero-extra);
}

.hero__heading {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 15ch;
  text-wrap: balance;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 2px section rule: first 52px primary green, remainder pale mint. */
.section__rule {
  position: relative;
  height: 2px;
  margin-bottom: 8px;
  background: var(--pale-mint);
}

.section__rule::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 52px;
  background: var(--primary-green);
}

.section__heading {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.prose {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
  max-width: 62ch;
  text-wrap: pretty;
}

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

.site-footer {
  /* Pinned to the bottom of short pages; padding-top guarantees the minimum
     gap so it never collides with the content above. */
  margin-top: auto;
  padding-top: var(--gap-footer);
}

.site-footer__rule {
  height: 1px;
  background: var(--pale-mint);
}

.site-footer__legal {
  margin: 0;
  padding: 24px 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 400;
}
