/* ==========================================================
   ELOURA - the panels.

   Shared by the guest list a couple opens and the console the
   owner opens. Both are tools rather than invitations: a bar
   across the top that stays put, figures that can be read at a
   glance, and a table underneath that can be searched, filtered
   and taken away as a file. The brand is in the colour and the
   type, not in decoration.
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --paper:  #F7F4EE;
  --panel:  #FFFDF9;
  --ink:    #2E2926;
  --soft:   #6B615B;
  --faint:  #A1968E;
  --rose:   #C08A80;
  --deep:   #9A554D;
  --green:  #5F7E53;
  --amber:  #B8863B;
  --line:   rgba(46, 41, 38, .1);
  --line-2: rgba(46, 41, 38, .06);
  --lift:   0 1px 2px rgba(46,41,38,.04), 0 8px 24px rgba(120,90,80,.06);
  --ease:   cubic-bezier(.22, .61, .18, 1);
}

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.wrap { width: min(1120px, 94vw); margin: 0 auto; }

/* ---------------- the bar across the top ---------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 238, .88);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 10px 0;
}
.mark {
  font-family: "Cormorant Garamond", serif;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-indent: .34em;
  color: var(--deep);
  white-space: nowrap;
}
.mark small {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: .52rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-indent: .26em;
  color: var(--faint);
  margin-top: 2px;
}
.top .who {
  flex: 1;
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--deep);
  white-space: nowrap;
}
.chip.plain { color: var(--soft); font-weight: 500; }

/* ---------------- figures ---------------- */
.figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: clamp(18px, 4vw, 28px) 0 0;
}
@media (min-width: 680px) { .figures { grid-template-columns: repeat(4, 1fr); } }

.fig {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 14px;
  box-shadow: var(--lift);
}
.fig b {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.fig span {
  display: block;
  margin-top: 2px;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.fig.yes b   { color: var(--green); }
.fig.no b    { color: #B5615C; }
.fig.heads b { color: var(--deep); }

/* ---------------- controls ---------------- */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: clamp(16px, 3.5vw, 24px) 0 12px;
}
.seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--panel);
}
.seg button {
  padding: 8px 15px;
  border: 0;
  border-radius: 100px;
  background: none;
  font: inherit;
  font-size: .8rem;
  font-weight: 500;
  color: var(--soft);
  cursor: pointer;
  white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.search {
  flex: 1 1 180px;
  min-width: 0;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--panel);
  font: inherit;
  font-size: .88rem;
  color: var(--ink);
  outline: none;
}
.search:focus { border-color: var(--rose); }

.act {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--panel);
  font: inherit;
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.act:hover { border-color: var(--rose); }
.act.solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.act svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------------- the table ---------------- */
.sheet {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--lift);
  overflow: hidden;
}
.sheet table { width: 100%; border-collapse: collapse; }
.sheet thead th {
  background: #FBF8F3;
  padding: 11px 16px;
  text-align: left;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.sheet tbody td {
  padding: 14px 16px;
  border-top: 1px solid var(--line-2);
  vertical-align: top;
}
.sheet tbody tr:first-child td { border-top: 0; }
.sheet tbody tr:hover { background: rgba(192, 138, 128, .045); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.name { font-weight: 600; }
.said { margin: 3px 0 0; font-size: .86rem; color: var(--soft); }
.ago  { font-size: .78rem; color: var(--faint); white-space: nowrap; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.yes { color: var(--green); background: rgba(95, 126, 83, .1); }
.pill.no  { color: #B5615C;      background: rgba(181, 97, 92, .1); }

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(154, 85, 77, .1);
  color: var(--deep);
}
.tag.signature { background: rgba(184, 134, 59, .14); color: var(--amber); }
.tag.essential { background: rgba(46, 41, 38, .07);  color: var(--soft); }

/* on a phone the table becomes a stack of cards */
@media (max-width: 700px) {
  .sheet thead { display: none; }
  .sheet table, .sheet tbody, .sheet tr, .sheet td { display: block; width: 100%; }
  /* the name and the message take the width; the answer, the headcount and
     the time sit together on the line under them */
  .sheet tbody tr {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px 12px;
    align-items: baseline;
    padding: 14px 16px;
    border-top: 1px solid var(--line-2);
  }
  .sheet tbody tr:first-child { border-top: 0; }
  .sheet tbody td { padding: 0; border: 0; }
  .sheet tbody td:first-child { grid-column: 1 / -1; }
  .sheet tbody td.num { text-align: right; }
  .stackrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .stackrow + .stackrow { margin-top: 6px; }
}

.empty {
  padding: clamp(34px, 8vw, 58px) 22px;
  text-align: center;
  color: var(--soft);
}
.empty h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0 0 6px;
  color: var(--ink);
}
.foot {
  padding: clamp(26px, 6vw, 48px) 0;
  text-align: center;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}
.foot a { color: var(--deep); text-decoration: none; }
[hidden] { display: none !important; }
