/* ==========================================================================
   Seifried Digital — v2 placeholder
   Direction: editorial studio (dark). Fraunces + Inter pair.
   Brand:   #06307A
   Cool:    #22d3ee
   Warm:    #f59e0b (only on the live status dot)
   ========================================================================== */

:root {
  --brand:        #06307A;
  --brand-light:  #4f7dd4;
  --warm:         #f59e0b;

  --bg:           #0a1024;

  --text:         #e8ecf5;
  --text-dim:     #9aa6c4;

  --hairline:     rgba(154, 178, 224, 0.14);
  --hairline-2:   rgba(154, 178, 224, 0.28);

  --container:    880px;
  --gutter:       clamp(20px, 4vw, 40px);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset + base ------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--brand-light); }

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
p { margin: 0 0 1em; }

::selection { background: var(--brand-light); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* --- Background: static mesh + film grain (no cursor blobs) -------------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 88% 8%,
      rgba(79, 125, 212, 0.28) 0%,
      rgba(79, 125, 212, 0.10) 35%,
      transparent 65%),
    radial-gradient(ellipse 55% 65% at 8% 92%,
      rgba(34, 211, 238, 0.12) 0%,
      rgba(34, 211, 238, 0.04) 40%,
      transparent 65%),
    var(--bg);
}

/* Very faint film grain so the navy never reads as a flat fill. */
.bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
  background-size: 220px 220px;
}

/* All real content sits above the bg composition. */
.intro,
.intro__inner,
.status { position: relative; z-index: 1; }

/* --- Intro (fills the viewport) --------------------------------------- */

.intro {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(64px, 8vw, 120px);
}

.intro__inner { width: 100%; }

/* --- Brandmark: wordmark only ---------------------------------------- */

.brand {
  margin: 0 0 36px;
  color: var(--text);
}

/* Wordmark — PNG rendered as a background image and inverted to white.   */
/* (CSS `mask: url(png)` is CORS-blocked from file:// origins in Chrome,  */
/* so the original `filter: invert` approach is the safe path here.)      */
.brand__word {
  display: block;
  width: clamp(180px, 22vw, 240px);
  aspect-ratio: 540 / 126;        /* matches the optimized PNG exactly */
  background-image: url('seifried-digital.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
  transition: filter 0.3s var(--ease);
}

.brand:hover .brand__word {
  filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(79, 125, 212, 0.40));
}

/* --- Divider — fades from brand-blue to transparent, full content width */

.intro__divider {
  width: 100%;
  height: 1px;
  margin: 0 0 48px;
  background: linear-gradient(
    90deg,
    rgba(79, 125, 212, 0.65) 0%,
    rgba(79, 125, 212, 0.18) 40%,
    transparent 100%
  );
}

/* --- Headline ----------------------------------------------------------- */
/* Fraunces at display optical size, with a barely-there warm undertone     */
/* that gives the type a finish without reading as a colour gradient.      */

.intro__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'wght' 400;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 28px;
  color: var(--text);
  background: linear-gradient(180deg, #f0f2f8 0%, #d6d2c4 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Subhead ------------------------------------------------------------ */
/* Two paragraphs (web + networking) in a single group so they sit close  */
/* together but the group as a whole keeps the right gap to the status.   */

.intro__sub-group {
  max-width: 560px;
  margin-bottom: 48px;
}

.intro__sub {
  font-size: clamp(17px, 1.55vw, 19px);
  color: var(--text-dim);
  line-height: 1.6;
}

.intro__sub + .intro__sub {
  margin-top: 12px;
}

/* --- Status: editorial, two rows -------------------------------------- */

.status {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.status__row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.005em;
}

.status__indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
  flex-shrink: 0;
}

.status__text {
  font-style: italic;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 14;
  font-size: 14.5px;
  color: var(--text-dim);
}

/* Email link — quiet inline, not a button */
.status__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding-bottom: 2px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  border-bottom: 1px solid var(--hairline-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), gap 0.2s var(--ease);
}

.status__email:hover {
  color: var(--brand-light);
  border-bottom-color: var(--brand-light);
  gap: 12px;
}

.status__email-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* --- Responsive --------------------------------------------------------- */

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

  .intro {
    padding-block: 14vh 24px;
  }

  .brand { margin-bottom: 28px; }
  .brand__word { width: clamp(170px, 46vw, 240px); }

  .intro__divider {
    margin-bottom: 32px;
  }

  .intro__title {
    font-size: clamp(30px, 7.6vw, 56px);
    margin-bottom: 20px;
    /* Fraunces opsz 144 is built for display sizes (60px+). At 30px on
       mobile it draws thin strokes — particularly the H crossbar — too
       fine for sub-pixel rendering. Drop to opsz 36 (subhead range) and
       bump weight slightly. Also flatten the gradient to solid color:
       gradient + small text amplifies the thinning. */
    font-weight: 500;
    font-variation-settings: 'opsz' 36, 'wght' 500;
    background: none;
    -webkit-background-clip: border-box;
            background-clip: border-box;
    -webkit-text-fill-color: var(--text);
  }

  .intro__sub {
    font-size: 16px;
    line-height: 1.55;
  }
  .intro__sub-group {
    margin-bottom: 32px;
  }

  .status {
    gap: 12px;
    margin-bottom: 24px;
  }

  .status__row,
  .status__text { font-size: 14px; }

  .status__email {
    font-size: 14.5px;
    /* comfortable tap target while staying text-style */
    padding: 8px 0 10px;
  }
}

/* --- Short viewports (laptop screens, windowed browsers) -------------- */
/* When viewport height is constrained, content + padding can exceed 100vh */
/* and force a small scroll. Compress the hero for these cases.          */

@media (max-height: 820px) {
  .intro {
    padding-block: clamp(32px, 5.5vh, 72px);
  }

  .brand         { margin-bottom: 24px; }
  .intro__divider { margin-bottom: 32px; }
  .intro__title  {
    font-size: clamp(28px, 4.6vw, 48px);
    line-height: 1.08;
    margin-bottom: 20px;
  }
  .intro__sub-group { margin-bottom: 32px; }
  .status        { margin-bottom: 0; }
}

@media (max-height: 600px) {
  /* Very short windows — tighten further. */
  .intro__title  { font-size: clamp(24px, 4vw, 40px); margin-bottom: 14px; }
  .intro__sub-group { margin-bottom: 22px; }
  .intro__sub    { line-height: 1.5; }
  .brand         { margin-bottom: 18px; }
  .intro__divider { margin-bottom: 22px; }
  .status        { gap: 10px; }
}

/* --- Reduced motion ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}

/* --- Focus visible ----------------------------------------------------- */

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

.status__email:focus-visible {
  outline-offset: 5px;
}
