/* GifMoth site: blush, cream, mint and teal on a honeycomb. */
:root {
  --blush: #FFB6B9;
  --cream: #FAE3D9;
  --mint: #BBDED6;
  --teal: #61C0BF;
  --ink: #1D3A39;
  --ink-soft: #2B5655;
  --rim: #467F7E;
  --radius: 16px;
  --hand: "Chalkboard SE", "Comic Sans MS", "Marker Felt", "Segoe Print", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--cream); }
body {
  margin: 0;
  font-family: var(--hand);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.02rem;
  background-color: var(--cream);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%23BBDED6' stroke-width='1.2'/%3E%3C/svg%3E");
}
a { color: var(--ink); text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--mint); padding: 6px 12px; border-radius: var(--radius); }

.comb-wrap { max-width: 880px; margin: 0 auto; padding: 0 18px 48px; }

/* Header: moth on a hex, wordmark with a dot */
.hive-top { text-align: center; padding: 36px 0 12px; }
.hive-top .hexbadge {
  width: 118px; height: 128px; margin: 0 auto 10px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--mint);
  display: grid; place-items: center;
}
.hive-top h1 { font-size: 2.5rem; margin: 0; letter-spacing: .5px; }
.hive-top h1 .dot { color: var(--teal); }
.hive-top p.tag { margin: 4px auto 0; max-width: 32ch; color: var(--ink-soft); }

.crumbs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0 8px; padding: 0; list-style: none; }
.crumbs a {
  display: inline-block; padding: 8px 22px; text-decoration: none; font-weight: bold;
  background: var(--teal);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
}
.crumbs a[aria-current="page"] { background: var(--blush); }

h2 { font-size: 1.55rem; margin: 40px 0 12px; display: flex; align-items: center; gap: 10px; }
h2::before {
  content: ""; width: 22px; height: 24px; flex: none; background: var(--teal);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* Honeycomb of feature cells */
.cells { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.cell {
  background: #fff8f4; border: 2px solid var(--mint); border-radius: var(--radius);
  padding: 18px 18px 16px 76px; position: relative; min-height: 96px;
}
.cell .hx {
  position: absolute; left: 14px; top: 18px; width: 48px; height: 54px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: grid; place-items: center; font-weight: bold; font-size: .78rem;
}
.cell.pink .hx { background: var(--blush); }
.cell.mint .hx { background: var(--mint); }
.cell.teal .hx { background: var(--teal); }
.cell.cream .hx { background: var(--cream); border: 0; }
.cell h3 { margin: 0 0 4px; font-size: 1.15rem; }
.cell ol { margin: 6px 0 0; padding-left: 20px; }
.cell p { margin: 0; }

/* Flight notes = FAQ */
.notes details {
  background: var(--mint); border-radius: var(--radius); margin: 10px 0; padding: 4px 16px;
}
.notes details:nth-child(even) { background: var(--blush); }
.notes summary { cursor: pointer; font-weight: bold; padding: 10px 0; list-style: none; }
.notes summary::-webkit-details-marker { display: none; }
.notes summary::after { content: " +"; color: var(--ink-soft); }
.notes details[open] summary::after { content: " −"; }
.notes details p { margin: 0 0 12px; }

/* Letter to the moth */
.letter {
  margin-top: 40px; background: var(--teal); border-radius: var(--radius);
  padding: 24px 20px; text-align: center;
}
.letter h2 { justify-content: center; margin-top: 0; }
.letter h2::before { background: var(--cream); }
.letter .mail {
  display: inline-block; margin: 10px 0; padding: 12px 26px; background: var(--cream);
  font-weight: bold; text-decoration: none; word-break: break-all;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
}

/* Privacy page: a column of numbered hex promises */
.promise-intro { background: #fff8f4; border: 2px dashed var(--teal); border-radius: var(--radius); padding: 16px 18px; }
.promises { list-style: none; counter-reset: wing; padding: 0; margin: 0; }
.promises > li {
  counter-increment: wing; position: relative; padding: 4px 0 18px 62px;
  border-left: 3px dotted var(--teal); margin-left: 22px;
}
.promises > li::before {
  content: counter(wing); position: absolute; left: -24px; top: 0; width: 44px; height: 50px;
  background: var(--blush); display: grid; place-items: center; font-weight: bold;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.promises > li:nth-child(even)::before { background: var(--mint); }
.promises h3 { margin: 8px 0 4px 0; font-size: 1.15rem; }
.promises ul { padding-left: 20px; margin: 6px 0; }
.stamp { display: inline-block; background: var(--mint); padding: 4px 14px; border-radius: var(--radius); font-size: .92rem; }

footer { text-align: center; color: var(--ink-soft); font-size: .9rem; margin-top: 48px; }

@media (min-width: 680px) {
  .cells { grid-template-columns: 1fr 1fr; }
  .cells .cell:nth-child(odd) { transform: translateY(0); }
  .cells .cell:nth-child(even) { transform: translateY(28px); }
  .cells { padding-bottom: 28px; }
  .hive-top h1 { font-size: 3rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hexbadge svg .wing { transform-origin: 60px 60px; animation: flap 2.4s ease-in-out infinite; }
  .hexbadge svg .wing.r { animation-delay: .05s; }
}
@keyframes flap { 0%, 80%, 100% { transform: scaleX(1); } 88% { transform: scaleX(.55); } }
