/* GustMM station site: one mast, five instruments, cloud-bubble cards. */
:root {
  --blush: #FFC7C7;
  --petal: #FFE2E2;
  --mist: #F6F6F6;
  --dusk: #8785A2;
  --dusk-strong: #615F75;
  --ink: #444251;
  --bubble: 18px;
  --head: "Arial Hebrew", "Arial Black", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --body: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cups { animation: none !important; }
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 16px/1.6 var(--body);
}

a { color: var(--dusk-strong); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--dusk); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.2; margin: 0 0 .4em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 0 0 12px 0; }
.skip:focus { left: 0; }

/* ---- Station frame: mast on the left, readings on the right ---- */
.station {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.mast {
  background: var(--petal);
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 3px 8px rgba(135, 133, 162, .18);
}

.mast .vane { flex: 0 0 auto; width: 44px; height: 44px; }
.cups { transform-origin: 28px 28px; animation: spin 2.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.mast ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.mast a.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 64px; min-height: 52px; padding: 6px 8px;
  border-radius: var(--bubble);
  background: var(--mist);
  color: var(--ink);
  text-decoration: none;
  font: 700 11px/1.2 var(--head);
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(135, 133, 162, .2);
}
.mast a.tile svg { width: 20px; height: 20px; margin-bottom: 3px; }
.mast a.tile[aria-current="page"] { background: var(--dusk-strong); color: #fff; }

.readings { padding: 22px 18px 48px; max-width: 760px; width: 100%; }

@media (min-width: 820px) {
  .station { grid-template-columns: 112px 1fr; }
  .mast {
    flex-direction: column; justify-content: flex-start;
    height: 100vh; padding: 22px 0;
    overflow: visible;
  }
  .mast::after {
    content: ""; position: absolute; top: 92px; bottom: 24px; left: 54px;
    width: 4px; border-radius: 2px; background: rgba(135, 133, 162, .45); z-index: -1;
  }
  .mast .vane { width: 56px; height: 56px; }
  .mast ul { flex-direction: column; gap: 12px; position: relative; }
  .readings { padding: 44px 40px 72px; }
}

/* ---- Masthead ---- */
.masthead { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.masthead svg { flex: 0 0 auto; width: 72px; height: 72px; }
.masthead h1 { font-size: clamp(30px, 7vw, 42px); margin: 0; }
.masthead p { margin: 2px 0 0; color: var(--dusk-strong); font-size: 14px; }

.ticker {
  font: 700 12px/1.4 var(--head);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--dusk-strong);
  border-top: 2px dashed var(--blush); border-bottom: 2px dashed var(--blush);
  padding: 8px 0; margin: 18px 0 26px;
}

/* ---- Cloud bubble card: two puffs on the crown ---- */
.bubble {
  position: relative;
  background: var(--petal);
  border-radius: var(--bubble);
  padding: 20px 18px 18px;
  margin: 30px 0 18px;
  box-shadow: 0 3px 10px rgba(135, 133, 162, .2);
}
.bubble::before, .bubble::after {
  content: ""; position: absolute; background: inherit; border-radius: 50%;
}
.bubble::before { width: 34px; height: 34px; top: -14px; left: 18px; }
.bubble::after { width: 24px; height: 24px; top: -9px; left: 46px; }
.bubble.flat { background: #fff; border: 1.5px solid var(--blush); box-shadow: none; }
.bubble.flat::before, .bubble.flat::after { display: none; }
.bubble.alert { background: var(--blush); }

.label {
  display: inline-block;
  font: 700 11px/1 var(--head); letter-spacing: .1em; text-transform: uppercase;
  background: var(--dusk-strong); color: #fff;
  padding: 6px 10px; border-radius: 10px; margin-bottom: 10px;
}

.bubble h2 { font-size: 22px; }
.bubble p:last-child, .bubble ol:last-child, .bubble ul:last-child { margin-bottom: 0; }
.bubble ol { padding-left: 22px; }
.bubble li { margin-bottom: 6px; }

.units { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.units li { background: var(--mist); border-radius: var(--bubble); padding: 4px 12px; font: 700 13px/1.6 var(--head); margin: 0; }

/* ---- FAQ ---- */
details { background: #fff; border-radius: var(--bubble); margin: 10px 0; border: 1.5px solid var(--blush); }
summary { cursor: pointer; padding: 14px 16px; font: 700 16px/1.35 var(--head); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "\2193"; display: inline-block; margin-right: 10px; color: var(--dusk-strong); transition: transform .2s; }
details[open] summary::before { transform: rotate(180deg); }
details p { margin: 0; padding: 0 16px 16px 40px; }

.mailbtn {
  display: inline-block; margin-top: 8px;
  background: var(--dusk-strong); color: #fff; text-decoration: none;
  font: 700 16px/1 var(--head);
  padding: 15px 22px; border-radius: var(--bubble);
  word-break: break-all;
}

footer { margin-top: 40px; font-size: 13px; color: var(--dusk-strong); }

/* ---- Privacy page: observation sheet ---- */
.sheet { width: 100%; border-collapse: separate; border-spacing: 0 6px; margin: 8px 0 0; font-size: 15px; }
.sheet th, .sheet td { text-align: left; padding: 10px 12px; background: #fff; vertical-align: top; }
.sheet th { font: 700 14px/1.4 var(--head); }
.sheet td:last-child { border-radius: 0 12px 12px 0; }
.sheet th:first-child { border-radius: 12px 0 0 12px; }
.sheet .cap { text-align: left; font-size: 13px; color: var(--dusk-strong); padding-bottom: 2px; }
.sheet .no { font-weight: 700; color: var(--dusk-strong); white-space: nowrap; }

.obs { counter-reset: obs; }
.obs .bubble { counter-increment: obs; }
.obs .bubble .label::before { content: "OBS " counter(obs, decimal-leading-zero) " \00B7  "; }
