/* Ask page — sits on top of the body-fixed perlin canvas. Header
   matches blog/forum (handled by blog.css), 1000px centered content,
   two side-by-side option cards. */

@font-face {
  font-family: 'Yellowtail Blank';
  src: url('https://fonts.noisefactor.io/fonts/yellowtail/Yellowtail-Blank.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Yellowtail';
  src: url('https://fonts.noisefactor.io/fonts/yellowtail/Yellowtail-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  background: var(--hf-bg-base);
  color: var(--hf-text-normal);
  font-family: var(--hf-font-family);
  min-height: 100vh;
}

/* Background canvas — full viewport, fixed, behind everything */
.ask-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Match the blog header but make it transparent over the canvas
   so the soothing shader still shows through subtly. The base
   .blog-header rule from blog.css gives us padding, sticky, and
   border-bottom; we override the background to be glassy. */
.blog-header {
  position: relative;
  z-index: 10;
  background: color-mix(in srgb, var(--hf-bg-surface) 65%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

/* Dark gradient overlay at the top of the page, under the header and
   above the content. Improves legibility of the intro heading/tagline
   against the perlin canvas without needing an explicit container. */
.ask-top-fade {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50vh;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Centered 1000px container for the body content, sits above the canvas */
.ask-main {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.ask-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.ask-intro h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--hf-text-bright);
  margin: 0;
  background: none;
  padding: 0;
  display: block;
  line-height: 1.15;
}

.ask-tagline {
  font-family: 'Yellowtail', 'Yellowtail Blank', cursive;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--hf-accent);
  line-height: 1;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.ask-tagline-just {
  font-family: var(--hf-font-family);
  font-weight: 800;
  font-size: 0.55em;
  vertical-align: middle;
  margin-right: 0.15em;
}

.ask-lede {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--hf-text-dim);
  max-width: 720px;
  margin: 0 auto;
}

/* Two-card grid */
.ask-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.ask-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--hf-radius-lg);
  border: 1px solid color-mix(in srgb, var(--hf-accent) 25%, transparent);
  background: color-mix(in srgb, var(--hf-bg-base) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 0 18px color-mix(in srgb, var(--hf-accent) 6%, transparent);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ask-card:hover {
  border-color: color-mix(in srgb, var(--hf-accent) 45%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--hf-accent) 12%, transparent);
}

.ask-card-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hf-text-bright);
  background: none;
  padding: 0;
  display: block;
}

.ask-card-desc {
  margin: 0 0 0.75rem 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--hf-text-dim);
}

.ask-card-desc strong {
  color: var(--hf-text-normal);
  font-weight: 600;
}

.ask-card-desc a {
  color: var(--hf-link-color);
  text-decoration: none;
}

.ask-card-desc a:hover {
  color: var(--hf-link-hover);
}

.ask-card-note {
  margin: 0 0 1.25rem 0;
  padding-left: 0.75rem;
  border-left: 2px solid color-mix(in srgb, var(--hf-accent) 40%, transparent);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--hf-text-dim);
  flex: 1 1 auto;
}

.ask-field {
  display: block;
  margin-bottom: 0.75rem;
}

.ask-field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hf-text-dim);
  margin-bottom: 0.4rem;
}

.ask-field input[type="email"] {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--hf-border-subtle);
  border-radius: var(--hf-radius-sm, 4px);
  background: color-mix(in srgb, var(--hf-bg-base) 60%, transparent);
  color: var(--hf-text-normal);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease;
}

.ask-field input[type="email"]:focus {
  outline: none;
  border-color: var(--hf-accent);
  background: color-mix(in srgb, var(--hf-bg-base) 80%, transparent);
}

.ask-field input[type="email"][aria-invalid="true"] {
  border-color: var(--hf-red, #e57373);
}

.ask-error {
  font-size: 0.8rem;
  color: var(--hf-red, #e57373);
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.ask-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: var(--hf-radius-sm, 4px);
  border: 1px solid var(--hf-border-subtle);
  background: transparent;
  color: var(--hf-text-normal);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.ask-btn-primary {
  background: var(--hf-accent);
  color: var(--hf-color-1);
  border-color: var(--hf-accent);
}

.ask-btn-primary:hover {
  opacity: 0.9;
}

/* Footnotes container — same glassy panel as .ask-card, full width,
   holds meta info that applies to both support paths. */
.ask-notes {
  margin-top: 0;
  padding: 1.5rem 1.75rem;
  border-radius: var(--hf-radius-lg);
  border: 1px solid color-mix(in srgb, var(--hf-accent) 25%, transparent);
  background: color-mix(in srgb, var(--hf-bg-base) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 0 18px color-mix(in srgb, var(--hf-accent) 6%, transparent);
}

.ask-notes p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--hf-text-dim);
}

.ask-notes p + p {
  margin-top: 0.75rem;
}

.ask-notes a {
  color: var(--hf-link-color);
  text-decoration: none;
}

.ask-notes a:hover {
  color: var(--hf-link-hover);
}

@media (max-width: 720px) {
  .ask-options {
    grid-template-columns: 1fr;
  }
  .ask-main {
    padding: 2rem 1rem 3rem;
  }
}
