/* Mercury Fly – standalone three-page site. Mobile first.
   Colours: Delft Blue #1F305E, cyan #00A6D6, Mercury Fly orange #E9693D, Dutch Orange #C76E00.
   Font: Inconsolata, bundled in assets/fonts (SIL Open Font License). */

/* ---------- font ---------- */
@font-face{font-family:"Inconsolata";font-style:normal;font-weight:400;font-display:swap;
  src:url("../fonts/inconsolata-latin-400-normal.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inconsolata";font-style:normal;font-weight:700;font-display:swap;
  src:url("../fonts/inconsolata-latin-700-normal.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inconsolata";font-style:normal;font-weight:400;font-display:swap;
  src:url("../fonts/inconsolata-latin-ext-400-normal.woff2") format("woff2");
  unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inconsolata";font-style:normal;font-weight:700;font-display:swap;
  src:url("../fonts/inconsolata-latin-ext-700-normal.woff2") format("woff2");
  unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ---------- tokens ---------- */
:root{
  --mercuryfly-blue: #0070C0;
  --mercuryfly-orange: #F79646;
  --delft:#1F305E; --delft-2:#283B70; --delft-3:#3A4E88;
  --cyan:#00A6D6; --cyan-ink:#007EA3; --cyan-wash:#E6F6FB;
  --orange:#E9693D; --orange-wash:#FDF0EA; --dutch:#C76E00;
  --ink:#16203A; --body:#34405F; --muted:#55607A; --line:#DCE2EC;
  --paper:#EEF1F7; --white:#FFFFFF;
  --font:"Inconsolata","Noto Sans JP","Hiragino Sans","Yu Gothic UI","Meiryo","Noto Sans SC","PingFang SC","Microsoft YaHei",Consolas,Menlo,"DejaVu Sans Mono",monospace;
  --logo-h:24px;
  --radius:8px;
}

/* ---------- base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;display:flex;flex-direction:column;min-height:100vh}
a{color:var(--cyan-ink);text-underline-offset:3px}
a:hover{color:var(--delft)}
:focus-visible{outline:3px solid var(--cyan);outline-offset:2px;border-radius:4px}
img{max-width:100%;height:auto}
h1,h2,h3{color:var(--delft);line-height:1.25;margin:0 0 10px;text-wrap:balance}
h1{font-size:30px;letter-spacing:-.4px}
h2{font-size:23px}
h3{font-size:18px}
p{margin:0 0 14px;color:var(--body)}
.lead{font-size:17px;color:var(--body)}
.muted{color:var(--muted);font-size:15px}
.small{font-size:14px;color:var(--muted)}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;left:-9999px;top:0;background:var(--delft);color:#fff;padding:10px 16px;z-index:50;border-radius:0 0 var(--radius) 0}
.skip:focus{left:0}

/* ---------- top bar ---------- */
.top{background:var(--mercuryfly-blue);border-bottom:4px solid var(--mercuryfly-orange);position:sticky;top:0;z-index:20}
.top-in{max-width:980px;margin:0 auto;padding:12px 18px;display:flex;flex-wrap:wrap;gap:10px 20px;align-items:center;justify-content:space-between}
.brand{display:inline-flex;align-items:center;flex:none}
.logo{height:var(--logo-h);width:auto;display:block}
.nav ul{list-style:none;display:flex;gap:6px;margin:0;padding:0;flex-wrap:wrap}
.nav a{display:inline-block;padding:7px 12px;border-radius:6px;color:#D9E2F2;text-decoration:none;font-size:15px;font-weight:700}
.nav a:hover{background:rgba(255,255,255,.12);color:#fff}
.nav a[aria-current]{background:var(--mercuryfly-orange);color:#0B1F3A}

/* ---------- layout ---------- */
.main{flex:1 0 auto;display:flex;flex-direction:column;width:100%}
.sheet{background:var(--white);flex:1 0 auto}
.wrap{padding:0 18px;max-width:780px;margin:0 auto;width:100%}
section{padding:30px 0}
.hero{padding:40px 0 44px}
.hero .lead{margin-top:16px}
.foot{flex:none;background:var(--paper)}
.foot p{padding:22px 0 30px;margin:0;color:var(--muted);font-size:14px;text-align:center}
.foot a{white-space:nowrap}        /* never split "Contact us" across two lines */

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;
  border-radius:var(--radius);border:2px solid var(--delft);background:var(--delft);color:#fff;
  text-decoration:none;font:inherit;font-weight:700;cursor:pointer;text-align:center}
.btn:hover{background:var(--delft-2);border-color:var(--delft-2);color:#fff}
.btn.alt{background:transparent;color:var(--delft)}
.btn.alt:hover{background:var(--cyan-wash);color:var(--delft)}
.btn.cyan{background:var(--cyan);border-color:var(--cyan);color:#0B1F3A}
.btn.cyan:hover{background:#0091BC;border-color:#0091BC;color:#0B1F3A}
.btn.wide{width:100%}
.actions{display:flex;flex-direction:column;gap:12px;margin-top:26px}
.actions .btn{width:100%}

/* ---------- landing choices ---------- */
.choices{list-style:none;margin:28px 0 0;padding:0;display:grid;gap:16px}
.choice{border:1px solid var(--line);border-left:5px solid var(--cyan);border-radius:var(--radius);
  background:var(--white);padding:20px 20px 22px;transition:border-color .15s,box-shadow .15s,transform .15s}
.choice:nth-child(2){border-left-color:var(--mercuryfly-orange)}
.choice:hover{box-shadow:0 6px 20px rgba(31,48,94,.10);transform:translateY(-2px)}
.choice h2{font-size:20px;margin-bottom:6px}
.choice p{margin-bottom:16px;font-size:15px}
.choice .btn{min-width:190px}

/* ---------- forms ---------- */
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.field label{font-weight:700;color:var(--delft);font-size:15px}
.field input,.field select,.field textarea{width:100%;min-height:46px;padding:10px 12px;
  border:1px solid #C3CCDA;border-radius:var(--radius);font:inherit;font-size:16px;color:var(--ink);background:#fff}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--cyan)}
.field textarea{min-height:150px;resize:vertical}
.field .hint{font-weight:400;color:var(--muted)}
.check{display:flex;gap:10px;align-items:flex-start;font-size:15px;margin-bottom:18px;color:var(--body)}
.check input{width:20px;height:20px;margin-top:3px;flex:none}
.hp{position:absolute;left:-5000px;width:1px;height:1px;overflow:hidden}

/* ---------- banners ---------- */
.banner{padding:12px 14px;border-radius:var(--radius);margin:0 0 18px;font-size:15px}
.banner.ok{background:#E3F4EA;color:#14532D}
.banner.err{background:#FBE4E4;color:#8A1C1C}

/* The landing page sits in the middle of a tall screen instead of hugging the top. */
body.lede .sheet{display:flex;align-items:center}
body.lede .hero{width:100%}

/* ---------- centred page (the log-in) ---------- */
body.centre .sheet{display:flex;align-items:center;justify-content:center;padding:28px 18px}
.card{width:100%;max-width:440px;background:var(--white);border:1px solid var(--line);
  border-top:5px solid var(--cyan);border-radius:12px;padding:30px 26px 28px;
  box-shadow:0 10px 34px rgba(31,48,94,.10);text-align:left}
.card .card-head{text-align:center;margin-bottom:22px}
.card .card-head h1{font-size:26px;margin-bottom:8px}
.card .card-head p{margin:0;font-size:15px;color:var(--muted)}
.card .btn{width:100%}
.card .after{margin:20px 0 0;text-align:center;font-size:14px;color:var(--muted)}
.card .after a{white-space:nowrap}
.card .who{background:var(--cyan-wash);border-radius:var(--radius);padding:12px 14px;margin:0 0 18px;
  font-size:15px;color:var(--delft);text-align:center;word-break:break-word}

@media (min-width:640px){
  body{font-size:17px}
  .wrap{padding:0 28px}
  h1{font-size:38px}
  h2{font-size:26px}
  .actions{flex-direction:row;flex-wrap:wrap}
  .actions .btn{width:auto;min-width:200px}
  .choices{grid-template-columns:1fr 1fr}
  .choice{padding:24px 24px 26px}
  .hero{padding:56px 0 52px}
  :root{--logo-h:28px}
  .card{padding:36px 34px 32px}
  body.centre .sheet{padding:48px 18px}
}
@media (min-width:980px){
  .wrap{padding:0 20px}
  h1{font-size:42px}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* ---------- members page: three choices ---------- */
.choices.members .choice:nth-child(3){border-left-color:var(--cyan)}
@media (min-width:760px){ .choices.members{grid-template-columns:1fr 1fr 1fr} }

/* ---------- required-field error (calm red) ---------- */
.field input.invalid,.field input.invalid:focus{border-color:#C0504D;box-shadow:0 0 0 1px #C0504D}
.field-err{margin:0;font-size:14px;color:#B4443F}
.field-err[hidden]{display:none}
