/* Yhdistysapuri. Light only: warm paper, evergreen, one amber accent. */
:root {
  --paper: #fbfaf6; --panel: #ffffff; --ink: #14201b; --ink-2: #55635c; --ink-3: #8a958f;
  --line: #e6e3d9; --line-strong: #d3cfc2;
  --green: #14553f; --green-deep: #0b2f25; --green-soft: #e5f1ea; --amber: #e9b949;
  --bad: #a3271f; --bad-soft: #fbeae7;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 16px; letter-spacing: -0.02em; border-radius: 8px; }
.brand img { display: block; box-shadow: 0 1px 2px rgba(11,47,37,.2), 0 6px 14px -6px rgba(11,47,37,.45); border-radius: 9px; }

/* Sign-in: the form on paper, beside an evergreen panel. */
.signin { display: grid; grid-template-columns: minmax(0, 1fr); }
.signin-form { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 28px clamp(20px, 5vw, 56px); }
.signin-box { width: 100%; max-width: 380px; margin: auto; padding-block: 48px; }
.signin-box h1 { font-size: clamp(34px, 4.4vw, 44px); }
.signin-box .lead { margin-top: 14px; color: var(--ink-2); font-size: 16px; max-width: 34ch; }

.google { margin-top: 32px; width: 100%; height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel); color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 1px 1px rgba(20,32,27,.04), 0 2px 6px rgba(20,32,27,.05); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.google:hover { border-color: var(--ink-3); box-shadow: 0 1px 1px rgba(20,32,27,.05), 0 10px 24px -8px rgba(20,32,27,.22); transform: translateY(-1px); }
.google:active { transform: translateY(0); box-shadow: 0 1px 1px rgba(20,32,27,.05); }
.google:disabled { cursor: progress; opacity: .65; transform: none; }
.google svg { flex: none; }

.alert { margin-top: 14px; padding: 11px 14px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); font-size: 14px; overflow-wrap: anywhere; }
.notice { display: inline-block; margin-bottom: 22px; padding: 6px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 550; }
.invited { margin-top: 22px; display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; }
.smallprint { color: var(--ink-3); font-size: 13px; }

.signin-art { display: none; }
@media (min-width: 900px) {
  .signin { grid-template-columns: minmax(420px, 5fr) 6fr; }
  .signin-art { display: flex; align-items: flex-end; position: relative; overflow: hidden; margin: 14px 14px 14px 0; border-radius: 26px; padding: clamp(36px, 4.5vw, 64px); color: #f4f1e8;
    background:
      radial-gradient(90% 70% at 85% 8%, rgba(233,185,73,.26), transparent 62%),
      radial-gradient(80% 80% at 8% 100%, rgba(52,160,120,.42), transparent 60%),
      linear-gradient(155deg, #17604a 0%, #0f4435 46%, var(--green-deep) 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
  /* Rings spreading from one point: people gathered around something. */
  .rings { position: absolute; inset: 0; background: repeating-radial-gradient(circle at 74% 30%, transparent 0 46px, rgba(244,241,232,.085) 46px 47px); -webkit-mask-image: radial-gradient(circle at 74% 30%, #000 0%, transparent 68%); mask-image: radial-gradient(circle at 74% 30%, #000 0%, transparent 68%); }
  .rings::after { content: ""; position: absolute; left: 74%; top: 30%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 7px rgba(233,185,73,.2), 0 0 44px 10px rgba(233,185,73,.4); }
  .art-copy { position: relative; max-width: 26ch; }
  .eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,241,232,.68); }
  .statement { margin-top: 18px; font-family: var(--serif); font-size: clamp(30px, 3.3vw, 46px); line-height: 1.12; letter-spacing: -0.02em; }
}

@media (prefers-reduced-motion: no-preference) {
  .signin-box > * { animation: rise .55s cubic-bezier(.2,.7,.2,1) both; }
  .signin-box > :nth-child(2) { animation-delay: .05s; }
  .signin-box > :nth-child(3) { animation-delay: .1s; }
  .signin-box > :nth-child(n+4) { animation-delay: .15s; }
  .art-copy { animation: rise .8s .15s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
}

/* Signed in. */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px clamp(20px, 5vw, 56px); border-bottom: 1px solid var(--line); background: var(--panel); }
.who { display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--ink-2); font-size: 14px; }
.who .email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who form { margin: 0; flex: none; }
.quiet { height: 34px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--panel); color: var(--ink); font-size: 13.5px; font-weight: 550; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.quiet:hover { border-color: var(--ink-3); background: var(--paper); }
.page { max-width: 760px; margin: 0 auto; padding: clamp(40px, 8vw, 88px) clamp(20px, 5vw, 56px); }
.page h1 { font-size: clamp(30px, 4vw, 40px); overflow-wrap: anywhere; }
.page .lead { margin-top: 14px; color: var(--ink-2); font-size: 16px; }
