/* Front pages at the short domains' bare address. Independent of the admin themes:
   only the brand's accent colour (from the brand stylesheet) carries over. */
:root {
  --accent: #1d4ed8; --on-accent: #fff;
  --f-ink: #14171c; --f-ink-2: #4a5260; --f-bg: #f5f6f8; --f-surface: #fff; --f-border: #e3e6eb;
  --f-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.front { font: 16px/1.55 var(--f-sans); color: var(--f-ink); background: var(--f-bg); -webkit-font-smoothing: antialiased; }
.front a { color: inherit; }
.front h1 { margin: 0 0 .35em; line-height: 1.08; letter-spacing: -.02em; font-weight: 750; overflow-wrap: anywhere; }
.f-text { color: var(--f-ink-2); max-width: 38em; overflow-wrap: anywhere; }
.f-logo { display: block; max-height: 44px; max-width: 220px; width: auto; }
.f-name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.f-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.f-btn { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--on-accent) !important;
  font-weight: 650; text-decoration: none; border: 1.5px solid var(--accent); transition: transform .12s ease, filter .12s ease; }
.f-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.f-btn.ghost { background: transparent; color: inherit !important; border-color: currentColor; }
.f-signin { font-weight: 600; text-decoration: none; padding: 8px 16px; border-radius: 999px; border: 1.5px solid currentColor; font-size: 14px; }
.f-signin:hover { background: rgb(255 255 255 / .12); }
.f-foot { font-size: 13px; padding: 18px 24px; opacity: .8; }
.f-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* Background photo (front.css from /brand sets the image) or, without one, an accent gradient */
.front-bg { position: relative; background-color: #1b2230; background-size: cover; background-position: center; background-repeat: no-repeat; }
.no-bg .front-bg { background-image: radial-gradient(120% 90% at 15% 10%, color-mix(in srgb, var(--accent) 85%, #fff) 0%, var(--accent) 45%, color-mix(in srgb, var(--accent) 55%, #000) 100%); }
.f-shade { position: absolute; inset: 0; pointer-events: none; }
.ov-light .f-shade { background: rgb(8 12 20 / .25); }
.ov-medium .f-shade { background: linear-gradient(180deg, rgb(8 12 20 / .35), rgb(8 12 20 / .55)); }
.ov-strong .f-shade { background: rgb(8 12 20 / .7); }
.no-bg .f-shade { background: none; }

/* 1. Classic: the original small card */
.f-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.no-bg .f-page.front-bg { background: var(--f-bg); }
.f-card { position: relative; background: var(--f-surface); border: 1px solid var(--f-border); border-radius: 14px; padding: 32px 34px; width: 100%; max-width: 520px;
  box-shadow: 0 10px 40px rgb(15 20 30 / .12); }
.f-card .f-logo, .f-card .f-name { margin-bottom: 18px; display: block; }
.f-card h1 { font-size: 28px; }
.front-classic .f-foot { position: relative; color: var(--f-ink-2); }
.front-classic.has-bg .f-foot { color: #fff; }

/* 2. Spotlight: full-screen photo, big centred type */
.f-hero { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; color: #fff; }
.f-hero > * { position: relative; }
.f-hero .f-top { padding: 22px clamp(18px, 4vw, 48px); }
.f-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px clamp(18px, 5vw, 64px) 48px; }
.f-hero h1 { font-size: clamp(40px, 8vw, 96px); text-shadow: 0 2px 30px rgb(0 0 0 / .25); }
.f-hero .f-text { color: rgb(255 255 255 / .88); font-size: clamp(17px, 2vw, 21px); margin: 0 auto; }
.f-hero .f-actions { justify-content: center; }
.f-hero .f-btn:not(.ghost) { background: #fff; color: #111 !important; border-color: #fff; }
.f-hero .f-foot { text-align: center; }

/* 3. Split: text pane + photo */
.f-split { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.f-pane { display: flex; flex-direction: column; padding: clamp(24px, 4vw, 56px); background: var(--f-surface); }
.f-pane .f-copy { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; max-width: 520px; }
.f-split h1 { font-size: clamp(36px, 4.6vw, 64px); }
.f-split .f-text { font-size: 18px; }
.f-split .f-foot { padding: 0; color: var(--f-ink-2); }
.f-media { min-height: 260px; }

/* 4. Frosted: glass panel over the photo */
.f-full { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; color: #fff; }
.f-glass { position: relative; width: 100%; max-width: 600px; padding: clamp(28px, 5vw, 48px); border-radius: 22px;
  background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .28); box-shadow: 0 20px 60px rgb(0 0 0 / .25);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .f-glass { background: rgb(20 26 38 / .78); } }
.f-glass .f-logo, .f-glass .f-name { margin-bottom: 22px; display: block; }
.f-glass h1 { font-size: clamp(32px, 5vw, 52px); }
.f-glass .f-text { color: rgb(255 255 255 / .88); font-size: 18px; }
.f-glass .f-btn:not(.ghost) { background: #fff; color: #111 !important; border-color: #fff; }
.front-frosted .f-foot { position: relative; }

/* 5. Banner: photo across the top, text below */
.f-banner { height: clamp(260px, 52vh, 560px); color: #fff; display: flex; flex-direction: column; }
.f-banner .f-top { position: relative; padding: 22px clamp(18px, 4vw, 48px); }
.f-sheet { position: relative; max-width: 860px; margin: -90px auto 0; background: var(--f-surface); border-radius: 18px; border: 1px solid var(--f-border);
  padding: clamp(26px, 5vw, 56px); box-shadow: 0 18px 50px rgb(15 20 30 / .14); width: calc(100% - 32px); }
.f-sheet h1 { font-size: clamp(34px, 5vw, 58px); }
.f-sheet .f-text { font-size: 18px; }
.front-banner .f-foot { text-align: center; color: var(--f-ink-2); padding: 28px; }

/* 6. Editorial: serif type, white space, framed photo */
body.front-editorial { background: #fbfaf7; }
.f-edit { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; max-width: 1280px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 56px); }
.f-edit .f-top { padding: 26px 0; border-bottom: 1px solid #e7e3da; }
.f-edit .f-signin { border-width: 0 0 1.5px; border-radius: 0; padding: 2px 0; }
.f-edit .f-signin:hover { background: none; }
.f-edit-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(36px, 7vw, 96px) 0; }
.f-edit h1 { font-family: var(--f-serif); font-weight: 500; font-size: clamp(44px, 6.6vw, 104px); letter-spacing: -.025em; line-height: 1; }
.f-edit .f-text { font-family: var(--f-serif); font-size: clamp(19px, 1.8vw, 23px); color: #4b4740; line-height: 1.5; }
.f-edit .f-btn { border-radius: 4px; }
.f-frame { aspect-ratio: 4 / 5; border-radius: 4px; box-shadow: 0 1px 0 #e7e3da, 18px 18px 0 color-mix(in srgb, var(--accent) 16%, #fbfaf7); }
.f-edit .f-foot { padding: 22px 0; border-top: 1px solid #e7e3da; color: #6b665d; }

/* Small screens */
@media (max-width: 820px) {
  .f-split { grid-template-columns: 1fr; grid-template-rows: 38vh auto; }
  .f-split .f-media { order: -1; }
  .f-edit-grid { grid-template-columns: 1fr; }
  .f-frame { aspect-ratio: 3 / 2; order: -1; }
  .f-sheet { margin-top: -60px; }
  .f-card { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) { .f-btn { transition: none; } }
