/* ==========================================================================
   PolicyCraft — policycraft360.com
   Under-construction landing page. Dark theme.
   No dependencies, no build step.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand palette */
  --background: #231f20;
  --foreground: #ffffff;
  --primary: #fc791c;
  --primary-foreground: #231f20;

  --card: #2c2728;
  --muted: #322d2e;
  --muted-foreground: #bbb6b7;
  --border: #4c4140;
  --ring: var(--primary);

  /* Text tones, darkest-to-lightest use */
  --text-body: #c8c2c3;
  --text-subtle: #d4cfd0;
  --text-faint: #aaa3a5;
  --text-accent-soft: #f4d0b9;

  /* Hairlines drawn over the background */
  --rule: rgb(255 255 255 / 12.5%);

  --radius: 0.5rem;
  --font-sans: Arial, Helvetica, sans-serif;

  /* Horizontal page gutter, shared by every full-width band */
  --gutter: clamp(24px, 6.5vw, 104px);

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  min-height: 100svh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* Keyboard-only skip link. Off-screen until focused. */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-120%);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3. Shell — full-height column, brand rule on top
   -------------------------------------------------------------------------- */

.site-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 0 var(--gutter);
  border-top: 5px solid var(--primary);
  isolation: isolate;
  overflow: hidden;
}

/* Two faint architectural guide lines: one vertical at 74%, one horizontal
   at 34%. Decorative only, sits behind all content. */
.site-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent 74%,
      rgb(252 121 28 / 3.92%) 74% calc(74% + 1px),
      transparent calc(74% + 1px)
    ),
    linear-gradient(
      0deg,
      transparent 34%,
      rgb(252 121 28 / 2.75%) 34% calc(34% + 1px),
      transparent calc(34% + 1px)
    );
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 42px 0;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: block;
  width: clamp(240px, 28vw, 370px);
  height: auto;
}

.brand-link {
  display: block;
  border-radius: 2px;
}

.brand-link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 6px;
}

.header-note {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   5. Main
   -------------------------------------------------------------------------- */

.site-main {
  flex: 1;
  width: 100%;
  padding: clamp(64px, 9vh, 112px) 0 80px;
}

/* Status pill: pulse dot + tracked-out label */
.status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 30px;
  color: var(--text-accent-soft);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  /* Authored in sentence case so screen readers and translation tools get
     real words; presented in caps. */
  text-transform: uppercase;
}

.status::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgb(252 121 28 / 8.24%);
}

.headline {
  margin: 0 0 30px;
  font-size: clamp(2.8rem, 6.8vw, 7rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.headline span {
  color: var(--primary);
}

.intro {
  max-width: 610px;
  margin: 0;
  color: var(--text-body);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   6. Contact block
   -------------------------------------------------------------------------- */

.contact {
  width: fit-content;
  max-width: 100%;
  margin-top: 52px;
  padding-left: 24px;
  border-left: 2px solid var(--primary);
}

.contact h2 {
  margin: 0 0 12px;
  color: var(--text-subtle);
  font-size: 1rem;
  font-weight: 400;
}

.contact-note {
  margin: 8px 0 0;
  color: var(--text-faint);
  font-size: 0.875rem;
}

/* Inline links inside body copy */
.contact-note a,
.intro a {
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-note a:hover,
.intro a:hover {
  text-decoration-thickness: 2px;
}

.contact-note a:focus-visible,
.intro a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.email {
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: 44px; /* comfortable touch target */
  padding: 4px 0 8px;
  font-size: clamp(1.125rem, 2.1vw, 1.75rem);
  letter-spacing: -0.025em;
  text-decoration: none;
}

/* Long address may break mid-word rather than overflow on narrow screens */
.email-address {
  overflow-wrap: anywhere;
}

.email-arrow {
  color: var(--primary);
  font-size: 1.75rem;
}

.email:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.email:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--ring);
  outline-offset: 7px;
}

/* --------------------------------------------------------------------------
   7. Footer
   -------------------------------------------------------------------------- */

/* Legal identity, then the copyright / CIN line. */
.site-footer {
  display: grid;
  gap: 14px;
  padding: 24px 0 26px;
  border-top: 1px solid var(--rule);
  color: var(--text-faint);
  font-size: 0.875rem;
  line-height: 1.6;
}

.legal-name {
  margin: 0 0 2px;
  color: var(--text-subtle);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}

/* <address> is italic by default; the registered office is not emphasis. */
.legal-address {
  margin: 0;
  font-style: normal;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  margin: 0;
}

.footer-sep {
  /* Decorative divider: same ink as the line, dimmed. */
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   8. Narrow viewports
   -------------------------------------------------------------------------- */

@media (max-width: 700px) {
  .site-header {
    padding: 28px 0;
  }

  .header-note {
    display: none;
  }

  .brand {
    width: min(310px, 100%);
  }

  .site-main {
    padding: 58px 0 64px;
  }

  .status {
    margin-bottom: 26px;
    font-size: 0.75rem;
    letter-spacing: 0.07em;
  }

  .headline {
    font-size: clamp(2.65rem, 9.6vw, 4.3rem);
  }

  .intro {
    max-width: 31rem;
  }

  /* Let the intro wrap naturally instead of at the authored break */
  .desktop-break {
    display: none;
  }

  .contact {
    margin-top: 40px;
    padding-left: 16px;
  }

  .email {
    gap: 16px;
  }

  .site-footer {
    gap: 16px;
    padding: 22px 0;
  }

  /* Stack the copyright and CIN instead of running them on one line */
  .footer-meta {
    flex-direction: column;
    gap: 4px;
  }

  .footer-sep {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   9. Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .site-main {
    animation: arrive 0.65s ease-out both;
  }
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   10. Print
   -------------------------------------------------------------------------- */

@media print {
  :root {
    --background: #ffffff;
    --foreground: #231f20;
    --text-body: #333333;
    --text-subtle: #333333;
    --text-faint: #555555;
    --text-accent-soft: #333333;
    --rule: #cccccc;
  }

  .site-shell {
    min-height: 0;
  }

  .site-shell::before,
  .skip-link {
    display: none;
  }

  .site-main {
    animation: none;
  }
}
