/* StartupMalta: retained typography, borders, shadows and layout from design/styles.css. */
:root {
  --f-sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-serif-italic: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --bg: #fafafa;
  --bg-elev: #fff;
  --card: #fff;
  --ink: #000;
  --ink-2: #1a1a1a;
  --ink-mute: #666;
  --tint-yellow: #ffe98a;
  --tint-cream: #f2f2f2;
  --accent: #cf142b;
  --accent-on: #fff;
  --btn-primary-bg: var(--accent);
  --btn-primary-fg: var(--accent-on);
  --pad-x: clamp(20px, 4vw, 56px);
  --section-y: clamp(64px, 8vw, 112px);
  --r-sm: 4px;
  --r-md: 8px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--f-sans); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.block-red :focus-visible { outline-color: #fff; }
.content-card :focus-visible { outline-color: var(--accent); }
.wrap { width: calc(100% - 2 * var(--pad-x)); max-width: 1120px; margin-inline: auto; }
.block { position: relative; padding-block: var(--section-y); }
.block + .block { border-top: 2px solid var(--ink); }
.block-cream { background: var(--tint-cream); }
.block-yellow { background: var(--tint-yellow); }
.block-red { background: var(--accent); color: #fff; }
h1, h2, .display { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -.065em; line-height: 1.02; }
h1 { font-size: clamp(48px, 7vw, 88px); }
h2 { max-width: 11ch; font-size: clamp(40px, 5vw, 64px); }
h1 em, h2 em, .display em { font-family: var(--f-serif-italic); font-style: italic; font-weight: 400; color: var(--accent); }
p { margin: 0 0 1.25em; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 30px; font-family: var(--f-mono); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg-elev); border-bottom: 2px solid var(--ink); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: baseline; font-family: var(--f-display); font-size: 24px; font-weight: 700; letter-spacing: -.04em; flex-shrink: 0; }
.wordmark span:nth-child(2) { color: var(--accent); }
.flag-dot { display: inline-block; width: .34em; height: .34em; border-radius: 50%; background: var(--accent); margin-left: .18em; }
.flag-mark { display: inline-block; width: 30px; height: 20px; object-fit: contain; outline: 1px solid var(--ink); flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-link { display: inline-flex; padding: 12px 8px; font-size: 15px; font-weight: 500; }
.nav-link:hover, .footer-links a:hover { color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 32px; padding: 14px 22px; border: 2px solid var(--ink); border-radius: var(--r-sm); background: #fff; color: var(--ink); font-weight: 600; font-size: 16px; box-shadow: var(--shadow-sm); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.btn-sm { padding: 8px 14px; font-size: 14px; gap: 18px; }
.hero-block { overflow: hidden; padding-top: clamp(64px, 8vw, 110px); }
.hero-block .wrap { position: relative; z-index: 1; }
.hero-title { max-width: 1000px; font-size: clamp(56px, 7.8vw, 106px); line-height: .98; letter-spacing: -.075em; }
.hero-title em { display: block; margin-top: .08em; }
.hero-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-top: 44px; }
.intro { max-width: 680px; margin: 0; font-size: clamp(18px, 2vw, 22px); line-height: 1.6; color: var(--ink-2); }
.hero-grid .btn { min-width: 180px; flex-shrink: 0; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.section-actions { margin-top: 28px; }
.maltese-cross { fill: var(--accent); }
.hero-cross { position: absolute; width: clamp(180px, 25vw, 340px); right: -70px; top: -70px; opacity: .08; transform: rotate(12deg); pointer-events: none; }
.section-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.section-grid > * { min-width: 0; }
.card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow); }
.content-card { padding: clamp(24px, 4vw, 44px); color: var(--ink); }
.content { font-size: 18px; line-height: 1.7; overflow-wrap: anywhere; }
.content > :first-child { margin-top: 0; }
.content > :last-child { margin-bottom: 0; }
.content p { margin: 0 0 1.2em; }
.content h2, .content h3, .content h4 { max-width: none; font-family: var(--f-sans); font-size: 23px; line-height: 1.25; font-weight: 700; letter-spacing: -.035em; margin: 1.7em 0 .55em; }
.content h2 { font-size: 28px; }
.content a { text-decoration: underline; text-underline-offset: 4px; }
.content a:hover { color: var(--accent); }
.content ul, .content ol { padding-left: 1.4em; }
.content blockquote { margin-inline: 0; padding-left: 20px; border-left: 3px solid var(--accent); }
.content figure { margin: 24px 0; }
.content figure img { border-radius: var(--r-sm); }
.content figcaption { color: var(--ink-mute); font-family: var(--f-mono); font-size: 14px; margin-top: 8px; }
.content pre { overflow: auto; padding: 16px; background: var(--tint-cream); border: 1px solid var(--ink); border-radius: var(--r-sm); }
.content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.content td, .content th { border: 1px solid var(--ink); padding: 8px 12px; }
.content hr { border: 0; border-top: 2px solid var(--ink); margin-block: 32px; }
/* Native Automad button blocks inherit the site's button treatment. */
.content .am-block-buttons a { display: inline-flex; padding: 12px 20px; border: 2px solid var(--ink); background: var(--accent); color: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow-sm); text-decoration: none; }
.site-footer { padding-top: 48px; background: var(--bg-elev); border-top: 2px solid var(--ink); }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding-bottom: 36px; }
.footer-grid p { margin: 16px 0 0; max-width: 410px; color: var(--ink-mute); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; font-weight: 500; }
.footer-links a { padding-block: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0; border-top: 1px solid #ddd; font-family: var(--f-mono); font-size: 14px; color: var(--ink-mute); }
.footer-bottom span:last-child { margin-left: auto; text-align: right; }
.standalone-page { min-height: 60vh; }
.page-content { max-width: 1120px; margin-inline: auto; }
.page-content > h1 { margin-bottom: clamp(28px, 4vw, 48px); }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 10px 16px; background: #fff; border: 2px solid var(--ink); }
.skip-link:focus { top: 10px; }
@media (max-width: 760px) {
  .nav-wrap { min-height: 100px; flex-wrap: wrap; justify-content: center; gap: 8px; padding-block: 12px; }
  .nav-links { width: 100%; justify-content: center; gap: 8px; }
  .section-grid { grid-template-columns: 1fr; }
  .hero-grid { flex-direction: column; align-items: flex-start; gap: 28px; margin-top: 30px; }
  h2 { max-width: 16ch; }
  .footer-grid { flex-direction: column; }
  html { scroll-padding-top: 132px; }
}
@media (max-width: 480px) {
  .wordmark { font-size: 23px; }
  .nav-link { font-size: 14px; padding: 8px 4px; }
  .btn-sm { padding: 6px 10px; gap: 8px; }
  .hero-title { font-size: clamp(46px, 12vw, 58px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
