* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden; /* no page scrolling on any device */
  overscroll-behavior: none;
}

body {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #111111;
}

.page {
  height: 100vh;
  height: 100dvh; /* accounts for mobile browser toolbars so content never overflows */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 24px 28px;
  padding-top: calc(24px + env(safe-area-inset-top));
  z-index: 100;
}

.mark {
  color: #111111;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.mark:focus-visible,
.toggle:focus-visible,
.menu a:focus-visible,
.contact-bar a:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
}

.toggle {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: border-color 0.2s, background 0.2s;
}

.toggle:hover {
  border-color: #111111;
  background: #f7f7f7;
}

.toggle span {
  width: 16px;
  height: 1.5px;
  background: #111111;
}

/* Nav sheet */
.menu {
  position: absolute;
  top: 64px;
  right: 28px;
  min-width: 160px;
  width: auto;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1000;
}

.menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu a {
  display: block;
  padding: 10px 13px;
  border-radius: 8px;
  color: #111111;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.menu a:hover {
  background: #f4f4f4;
}

.menu a.active {
  background: #f5f5f7;
  font-weight: 600;
}

/* Image frame — nearly fills the page below the header.
   Drop feet.jpg / contact.jpg next to these files and they show automatically;
   until then this area is a plain light-grey placeholder. */
.frame {
  flex: 1 1 auto;
  min-height: 0; /* lets flex shrink correctly instead of overflowing the page */
  margin: 0 28px 28px;
  background-color: #f2f2f2;
  background-repeat: no-repeat;
  background-size: cover; /* crops the photo to fill the box on any screen ratio */
  background-position: center;
}

#landingFrame {
  background-image: url("feet.jpg");
}

#contactFrame {
  background-image: url("contact.jpg");
}

#fundingFrame {
  background-image: url("venmo.jpg");
  background-size: contain;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-position: center;
}

/* Contact footer */
.contact-bar {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  padding: 6px 28px 32px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
}

.contact-bar a {
  color: #111111;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.contact-bar a:hover {
  border-color: #111111;
}

.contact-bar .pending {
  color: #999999;
  font-size: 14px;
  border-bottom: 1px dashed #cccccc;
  padding-bottom: 2px;
}

/* Suggestions page */
.suggestion-frame {
  background-color: #ffffff;
  border: 1px solid #ececec;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 12px;
  overflow: hidden;
}

.suggestion-form {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.suggestion-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: #111111;
  background: #ffffff;
}

.suggestion-form input:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.suggestion-form button {
  flex-shrink: 0;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.suggestion-form button:hover {
  opacity: 0.85;
}

.suggestion-form button:disabled {
  opacity: 0.5;
  cursor: default;
}

.suggestion-status {
  min-height: 16px;
  font-size: 13px;
  color: #b3261e;
  flex-shrink: 0;
}

.suggestion-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.suggestion-item {
  padding: 12px 14px;
  background: #f7f7f7;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.suggestion-item p {
  margin: 0;
}

.suggestion-time {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #999999;
}

.suggestion-list .empty {
  color: #999999;
  font-size: 14px;
  text-align: center;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .bar {
    padding: 18px 20px;
    padding-top: calc(18px + env(safe-area-inset-top));
  }

  .menu {
    top: 58px;
    right: 20px;
  }

  .frame {
    @media (max-width: 600px) {
  #fundingFrame {
    margin: 10px 16px 20px; /* Gives nice margins on small phone screens */
  }
}
  }

  .suggestion-frame {
    padding: 16px;
  }

  .contact-bar {
    gap: 20px;
    padding: 6px 20px 26px;
    padding-bottom: calc(26px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .toggle,
  .menu,
  .contact-bar a {
    transition: none;
  }
}