/* Amanda Schneck — shared styles for the custom page templates.
   Most layout lives inline in the templates (exported from the approved designs);
   this file holds the reset, focus states, mobile menu and small-screen fixes. */

html { -webkit-text-size-adjust: 100%; }
body.as-site { margin: 0; background: #FFFFFF; color: #1E3447; font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif; }
body.as-site *, body.as-site *::before, body.as-site *::after { box-sizing: border-box; }
body.as-site img { max-width: 100%; }
body.as-site a { color: #3E6C90; }
body.as-site a:hover { color: #1E3447; }
body.as-site a:focus-visible, body.as-site button:focus-visible, body.as-site input:focus-visible,
body.as-site select:focus-visible, body.as-site textarea:focus-visible, body.as-site summary:focus-visible {
  outline: 2px solid #3E6C90; outline-offset: 2px;
}
body.as-site input, body.as-site select, body.as-site textarea, body.as-site button { font-family: inherit; color: #1E3447; }
body.as-site input[type="checkbox"], body.as-site input[type="radio"] { width: 16px; height: 16px; accent-color: #487BA2; margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Form notices */
.as-notice { grid-column: 1 / -1; border-radius: 14px; padding: 16px 18px; font-size: 15px; line-height: 24px; }
.as-notice--ok { background: #E3ECF4; border: 1px solid #B9CDDD; color: #1E3447; }
.as-notice--err { background: #FDF0EE; border: 1px solid #EBC3BC; color: #7A2A1C; }

/* Mobile menu (hidden on desktop) */
.as-nav-mobile { display: none; position: relative; }
.as-nav-mobile summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 9999px; border: 1px solid #DCE5EC; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.as-nav-mobile summary::-webkit-details-marker { display: none; }
.as-nav-mobile summary span { display: block; width: 18px; height: 2px; background: #1E3447; border-radius: 2px; }
.as-nav-mobile nav { position: absolute; right: 0; top: 54px; z-index: 50; width: min(320px, calc(100vw - 32px)); background: #FFFFFF; border: 1px solid #E6ECF1; border-radius: 18px; box-shadow: 0 20px 50px rgba(30,52,71,0.16); padding: 12px; display: flex; flex-direction: column; }
.as-nav-mobile nav a { padding: 14px 14px; border-radius: 12px; color: #1E3447; text-decoration: none; font-size: 16px; font-weight: 500; }
.as-nav-mobile nav a[aria-current="page"] { color: #487BA2; font-weight: 700; background: #F4F8FB; }
.as-nav-mobile nav a.as-nav-cta { margin-top: 6px; background: #487BA2; color: #FFFFFF; text-align: center; font-weight: 600; border-radius: 9999px; }

@media (max-width: 1020px) {
  .as-nav-desktop { display: none !important; }
  .as-nav-mobile { display: block; }
}

/* Small screens: ease the big desktop paddings */
@media (max-width: 700px) {
  body.as-site section { padding-left: 16px !important; padding-right: 16px !important; }
  body.as-site section > div { padding-left: 0 !important; padding-right: 0 !important; }
  body.as-site form, body.as-site article { padding: 24px !important; }
  body.as-site [style*="padding: 72px 56px"], body.as-site [style*="padding: 64px 56px"], body.as-site [style*="padding: 48px;"], body.as-site [style*="padding: 44px"] { padding: 28px 22px !important; }
  body.as-site [style*="min-width: 340px"], body.as-site [style*="minmax(340px"], body.as-site [style*="minmax(320px"] { min-width: 0 !important; }
  body.as-site [style*="grid-template-columns: repeat(auto-fit, minmax(340px, 1fr))"],
  body.as-site [style*="grid-template-columns: repeat(auto-fit, minmax(320px, 1fr))"],
  body.as-site [style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] { grid-template-columns: 1fr !important; }
  body.as-site footer { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ---------- Blog posts, archives, plain pages, 404 ---------- */
.as-wrap { width: 100%; color: #1E3447; background: #FFFFFF; font-size: 16px; line-height: 26px; }
.as-wrap em { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 500; color: #487BA2; }
.as-post-hero { background: radial-gradient(60% 80% at 15% 0%, #FFFFFF 0%, #F4F8FB 55%, #E9F0F6 100%); }
.as-post-hero__inner { max-width: 820px; margin: 0 auto; padding: 64px 24px 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.as-post-hero h1 { margin: 0; font-weight: 700; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -0.03em; }
.as-post-hero h1 em { letter-spacing: -0.01em; }
.as-back { font-size: 14px; font-weight: 600; color: #3E6C90 !important; text-decoration: none; }
.as-back:hover { text-decoration: underline; }
.as-chip { display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px; background: #FFFFFF; border: 1px solid #C9D9E6; border-radius: 9999px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #3E6C90 !important; text-decoration: none; }
.as-chip > span { width: 8px; height: 8px; border-radius: 9999px; background: #729CB1; }
.as-post-dek { margin: 0; font-size: 19px; line-height: 30px; color: #4F5E6B; max-width: 680px; }
.as-byline { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #5A6875; }
.as-byline img { width: 36px; height: 36px; object-fit: contain; }
.as-byline strong { color: #1E3447; }
.as-post-image { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.as-post-image img { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: 0 24px 60px rgba(72,123,162,0.14); }

.as-prose { max-width: 720px; margin: 0 auto; padding: 56px 24px 88px; font-size: 18px; line-height: 31px; color: #3D4C59; }
.as-prose > * { margin: 0 0 22px; }
.as-prose h2 { margin: 44px 0 14px; font-size: 30px; line-height: 38px; font-weight: 700; letter-spacing: -0.02em; color: #1E3447; }
.as-prose h3 { margin: 40px 0 12px; font-size: 23px; line-height: 31px; font-weight: 700; letter-spacing: -0.015em; color: #1E3447; }
.as-prose strong { color: #1E3447; }
.as-prose ul, .as-prose ol { padding-left: 24px; }
.as-prose li { margin: 0 0 10px; padding-left: 4px; }
.as-prose li::marker { color: #487BA2; font-weight: 700; }
.as-prose a { color: #3E6C90; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.as-prose blockquote { margin: 32px 0; padding: 8px 0 8px 24px; border-left: 3px solid #729CB1; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 26px; line-height: 36px; color: #1E3447; }
.as-prose img { height: auto; border-radius: 16px; }
.as-prose > p:last-child { margin-top: 36px; padding: 22px 24px; background: #F4F8FB; border: 1px solid #DCE5EC; border-radius: 16px; font-size: 17px; }

.as-post-more { background: #F4F8FB; border-top: 1px solid #E6ECF1; }
.as-post-more--list { background: #FFFFFF; border-top: 0; }
.as-post-more__inner { max-width: 1232px; margin: 0 auto; padding: 72px 24px 88px; display: flex; flex-direction: column; gap: 32px; }
.as-post-more h2 { margin: 0; font-size: 36px; line-height: 42px; font-weight: 700; letter-spacing: -0.025em; }
.as-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 24px; }
.as-card { text-decoration: none; color: #1E3447 !important; display: flex; flex-direction: column; gap: 14px; }
.as-card__img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: radial-gradient(60% 80% at 80% 20%, rgba(255,255,255,0.6), rgba(255,255,255,0) 60%), linear-gradient(135deg, #B9CDDD, #729CB1); }
.as-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.as-card:hover .as-card__img img { transform: scale(1.03); }
.as-card__meta { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: #3E6C90; }
.as-card__title { font-size: 21px; line-height: 28px; font-weight: 700; letter-spacing: -0.015em; }
.as-card__text { font-size: 15px; line-height: 24px; color: #5A6875; }
.as-pager { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.as-pager a, .as-btn { display: inline-flex; align-items: center; padding: 14px 26px; border-radius: 9999px; border: 1px solid #DCE5EC; background: #FFFFFF; color: #1E3447 !important; text-decoration: none; font-size: 14px; font-weight: 600; }
.as-btn { background: #487BA2; border-color: #487BA2; color: #FFFFFF !important; }
.as-btn--ghost { background: #FFFFFF; border-color: #DCE5EC; color: #1E3447 !important; }
.as-btn--light { background: #FFFFFF; border-color: #FFFFFF; color: #1E3447 !important; }
.as-btn--outline { background: transparent; border-color: rgba(255,255,255,0.6); color: #FFFFFF !important; }
.as-empty { margin: 0; font-size: 17px; color: #5A6875; }
.as-404 .as-post-hero__inner { padding: 96px 24px 112px; }
.as-404-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.as-cta { padding: 0 24px 96px; background: #FFFFFF; }
.as-post-more + .as-cta { background: #F4F8FB; }
.as-cta__box { max-width: 1232px; margin: 0 auto; border-radius: 28px; padding: 56px; background: radial-gradient(60% 90% at 85% 10%, rgba(255,255,255,0.35), rgba(255,255,255,0) 60%), linear-gradient(135deg, #729CB1 0%, #487BA2 100%); color: #FFFFFF; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.as-cta__box > div:first-child { flex: 1 1 460px; }
.as-cta h2 { margin: 0 0 10px; font-size: 34px; line-height: 40px; font-weight: 700; letter-spacing: -0.025em; color: #FFFFFF; }
.as-cta h2 em { color: #FFFFFF; }
.as-cta p { margin: 0; font-size: 17px; line-height: 27px; color: rgba(255,255,255,0.9); }
.as-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 700px) {
  .as-post-hero__inner { padding: 44px 16px 40px; }
  .as-post-image { padding: 0 16px; }
  .as-prose { padding: 40px 16px 64px; font-size: 17px; line-height: 29px; }
  .as-post-more__inner { padding: 56px 16px 64px; }
  .as-cards { grid-template-columns: 1fr; }
  .as-cta { padding: 0 16px 64px; }
  body.as-site .as-cta__box { padding: 32px 24px !important; }
  .as-cta h2 { font-size: 27px; line-height: 33px; }
}
