
.top{display:grid;grid-template-columns:1fr auto auto;align-items:center}.top nav{justify-self:end}.theme-bar select,.theme-bar button{font:500 .86rem/1.3 system-ui;color:var(--ink);background:var(--bg);border:1px solid var(--muted);border-radius:1.5rem;padding:.45rem .65rem}
@media(max-width:720px){.top{grid-template-columns:1fr auto}.top nav{grid-row:2;grid-column:1/-1;justify-self:start}.mode-toggle{grid-column:2;grid-row:1;justify-self:end}}
.water-invite .water-links a{font-family:system-ui,sans-serif;font-weight:550;font-size:clamp(.81rem,.94vw,.92rem);letter-spacing:.005em;color:#102e30;background:#fffdf5;border-color:#254747;text-shadow:none;box-shadow:none;filter:none;-webkit-font-smoothing:auto;min-height:2.45rem}
:root[data-mode=dark] .water-invite .water-links a{color:#fcf7e8;background:#172e31;border-color:#b7cfc9}

.mode-toggle{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid transparent;border-radius:50%;background:transparent;color:var(--ink);cursor:pointer}
.mode-toggle:hover{border-color:var(--muted)}
.mode-toggle:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.mode-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.mode-toggle .mode-moon,:root[data-mode="dark"] .mode-sun{display:none}
:root[data-mode="dark"] .mode-moon{display:block}

/* phone: the two links under the invitation sit side by side when they fit */
@media(max-width:699px){.water-invite .water-links{flex-wrap:wrap;gap:.3rem}.water-invite .water-links a{font-size:clamp(.69rem,3.05vw,.81rem);padding:.36em .5em;gap:.25em;white-space:nowrap}}
