/* cloudairtime.com — one small stylesheet, no web fonts, no scripts. */
/* COLOUR SCHEME "ocean" (Phil, 2026-10-06: "the hero section of timemator.com is the colour scheme for cloudairtime"):
   deep navy flowing into teal, a bright cyan accent, white headings on the dark parts.
   The purple scheme it replaces is kept in ../themes/purple-2026-10-05.css — to switch back, copy that file over this one
   (and ../themes/favicon-purple.svg over favicon.svg) and run tools/build-site.py.
   The variable NAMES are the old ones on purpose (--purple is "the main colour", --teal "the accent on dark"), so no page markup changed. */
:root {
  --ink: #041d33; --purple: #006a8e; --plum: #05405f; --teal: #0ff6f6; --teal-deep: #00708f;
  --paper: #f5fafc; --card: #ffffff; --line: #dbe8ee; --text: #14283a; --muted: #5a6b78;
  --radius: 16px; --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--purple); }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 18px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand.light { color: #fff; }
.mark { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--teal), var(--plum) 62%, var(--purple)); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 8px 10px; border-radius: 10px; white-space: nowrap; }
.nav a:hover { background: #e6f3f7; color: var(--purple); }

/* buttons */
.btn { display: inline-block; background: var(--purple); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; padding: 13px 22px; border-radius: 999px; border: 2px solid var(--purple); transition: transform .12s ease, background .12s ease; }
.btn:hover { background: var(--plum); border-color: var(--plum); transform: translateY(-1px); }
.btn.small { font-size: 14px; padding: 8px 16px; white-space: nowrap; }
.btn.ghost { background: transparent; color: var(--purple); }
.btn.ghost:hover { background: #e6f3f7; }
.btn.ghost.light { color: #fff; border-color: rgba(15,246,246,.75); }
.btn.ghost.light:hover { background: rgba(255,255,255,.12); }

/* hero */
.hero { color: #fff; background:
  radial-gradient(900px 420px at 85% 115%, rgba(15,246,246,.30), transparent 62%),
  radial-gradient(700px 420px at 0% 120%, rgba(10,143,176,.55), transparent 60%),
  linear-gradient(180deg, #041d33 0%, #05405f 48%, #006a8e 100%); }
.heroin { padding: 72px 20px 78px; max-width: 880px; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero h1 { color: #fff; font-size: clamp(34px, 6vw, 58px); font-weight: 800; letter-spacing: -0.02em; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: rgba(255,255,255,.86); max-width: 640px; margin: 18px 0 0; }
.lede.dark { color: var(--muted); }
.herobtns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .btn { background: #fff; border-color: #fff; color: #05233c; }
.hero .btn:hover { background: #dffcfc; border-color: #dffcfc; }
.hero .btn.ghost { background: transparent; }

/* sections */
.block { padding: 46px 20px 8px; }
.block.first { padding-top: 40px; }
.head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.head h2 { font-size: 26px; }
.head a { font-weight: 700; font-size: 15px; text-decoration: none; }
.block h1 { font-size: clamp(30px, 5vw, 44px); margin: 6px 0 4px; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.leadrow { margin-bottom: 18px; }
.card { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--text); transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(4,29,51,.10); border-color: #b7dbe6; }
.card h3 { font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card.big { padding: 30px; background: linear-gradient(180deg, #fff, #f0f8fb); }
.card.big h3 { font-size: clamp(22px, 3.2vw, 30px); max-width: 760px; }
.card.big p { font-size: 17px; max-width: 720px; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-deep); background: #dff5f8; padding: 4px 10px; border-radius: 999px; }
.more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--purple); }
.shelves { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.shelf { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); background: #e8f3f7; border-radius: var(--radius); padding: 22px; transition: background .14s ease; }
.shelf:hover { background: #d9ecf3; }
.shelf h3 { font-size: 18px; }
.shelf p { margin: 0; font-size: 15px; color: var(--muted); }

/* article */
.post { max-width: 760px; padding-top: 34px; padding-bottom: 10px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
.post h1 { font-size: clamp(30px, 5.4vw, 46px); font-weight: 800; letter-spacing: -0.02em; }
.meta { color: var(--muted); font-size: 14.5px; margin: 14px 0 26px; }
.pull { font-size: clamp(20px, 3vw, 24px); font-weight: 700; color: var(--ink); border-left: 5px solid #0bc5d6; padding: 6px 0 6px 18px; margin: 0 0 26px; }
.prose { font-size: 18.5px; line-height: 1.72; }
.prose p { margin: 0 0 20px; }
.prose h2 { font-size: 25px; margin: 34px 0 12px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 24px; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--plum); font-weight: 700; }
.prose a { font-weight: 600; }
.video { position: relative; padding-top: 56.25%; margin: 0 0 26px; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.vcard { text-decoration: none; color: var(--ink); font-weight: 700; display: flex; flex-direction: column; gap: 10px; }
.vcard img { border-radius: 14px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }

/* call to action */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; margin: 34px 0 40px; padding: 30px; border-radius: 22px; color: #fff;
  background: radial-gradient(520px 260px at 100% 0%, rgba(15,246,246,.26), transparent 65%), linear-gradient(135deg, #041d33, #006a8e); }
.cta h2 { color: #fff; font-size: 26px; }
.cta p { margin: 8px 0 0; color: rgba(255,255,255,.86); max-width: 520px; font-size: 16.5px; }
.ctabtns { display: flex; flex-wrap: wrap; gap: 10px; }
.cta .btn { background: #fff; border-color: #fff; color: #05233c; }
.cta .btn:hover { background: #dffcfc; border-color: #dffcfc; }
.cta .btn.ghost { background: transparent; color: #fff; border-color: rgba(15,246,246,.75); }
.cta .btn.ghost:hover { background: rgba(255,255,255,.12); }

/* footer */
/* Footer in a dark teal, not the navy of the top part (Phil, 2026-10-06). */
.foot { margin-top: 40px; background: #054a5e; color: rgba(255,255,255,.82); font-size: 15px; }
.footgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; padding: 44px 20px 26px; }
.foot h3 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.foot a { color: rgba(255,255,255,.86); display: block; padding: 4px 0; text-decoration: none; }
.foot p a { display: inline; text-decoration: underline; }
.foot a:hover { color: var(--teal); }
.fine { border-top: 1px solid rgba(255,255,255,.14); padding: 16px 20px 26px; font-size: 13px; color: rgba(255,255,255,.6); }
.fine a { display: inline; }

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .bar { flex-wrap: wrap; padding-top: 8px; padding-bottom: 6px; gap: 8px 12px; }
  .nav { order: 3; width: 100%; margin-left: -8px; }
  .btn.small { margin-left: auto; }
  .heroin { padding: 48px 20px 54px; }
  .footgrid { grid-template-columns: 1fr; gap: 22px; }
  .prose { font-size: 17.5px; }
  .cta { padding: 24px; }
}

.post h1 + .prose { margin-top: 20px; }
.feedbox { background: #e8f3f7; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15.5px; overflow-wrap: anywhere; }
.fx { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin: 6px 0 0; }

/* live search */
.search { position: relative; flex: 0 1 250px; min-width: 150px; }
.search input { width: 100%; font: inherit; font-size: 15px; color: var(--text); background: #edf5f8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b78' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6'/%3E%3C/svg%3E") no-repeat 12px center / 17px;
  border: 1.5px solid transparent; border-radius: 999px; padding: 9px 14px 9px 38px; outline: none; -webkit-appearance: none; appearance: none; }
.search input:focus { background-color: #fff; border-color: var(--plum); box-shadow: 0 0 0 4px rgba(0,106,142,.16); }
.search input::placeholder { color: var(--muted); }
.qres { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: min(460px, 92vw); max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 22px 50px rgba(29,21,36,.18); padding: 6px; }
.qhit { display: block; padding: 11px 12px; border-radius: 11px; text-decoration: none; color: var(--text); }
.qhit:hover, .qhit.on { background: #edf5f8; }
.qhit strong { display: block; color: var(--ink); font-size: 15.5px; line-height: 1.3; margin: 3px 0; }
.qtag { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-deep); }
.qsnip { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.qres mark { background: #c9f6f8; color: inherit; border-radius: 3px; padding: 0 1px; }
.qnone, .qfoot { padding: 12px; font-size: 14px; color: var(--muted); }
.qfoot { border-top: 1px solid var(--line); margin-top: 4px; font-size: 12.5px; }
@media (max-width: 760px) {
  .search { order: 2; flex: 1 1 100%; }
  .qres { left: 0; right: auto; width: 100%; }
  .search input { font-size: 16px; }   /* 16px: an iPhone does not zoom in when the box is tapped */
}
