/* emoji.fan — minimal, early-internet, typewriter aesthetic.
   Centered, narrow column for comfortable mobile navigation. No frameworks. */

body {
  font-family: "Courier New", Courier, monospace;
  background: #fdfdf8;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.5;
  font-size: 16px;
}

.wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  text-align: center;
}

header .site-title {
  margin: 0;
  font-size: 3.8rem;
  letter-spacing: 1px;
}

/* Per-page content heading (emoji name, profile name, page titles). The brand in
   the header is a .site-title <p>, so it keeps its own styling above. */
main h1 {
  font-size: 2rem;
  margin: 0.6rem 0;
}

a {
  color: #0000cc;
}

a:visited {
  color: #551a8b;
}

.site-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.tagline {
  margin: 0.2rem 0 0.8rem;
  font-style: italic;
  color: #555;
}

.outbid {
  color: #cc0000;
  font-weight: bold;
}

nav {
  font-size: 0.9rem;
  border-top: 1px dashed #999;
  border-bottom: 1px dashed #999;
  padding: 0.4rem 0;
  margin-bottom: 1.2rem;
}

main {
  text-align: center;
}

.emoji-glyph {
  font-size: 5rem;
  line-height: 1.1;
  margin: 0.5rem 0;
}

.emoji-glyph-lg {
  font-size: 11rem;
}

.emoji-glyph a {
  text-decoration: none;
  color: inherit;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.2rem, 1fr));
  gap: 0.25rem;
  margin: 1rem 0;
}

.emoji-grid a {
  font-size: 1.6rem;
  line-height: 1;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Some emoji (e.g. unsupported ZWJ sequences) fall back to several glyphs;
     keep them on one line and clip anything past the cell so the grid stays aligned. */
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
  /* Skip rendering off-screen cells (~3,900 of them) until they scroll near the
     viewport; contain-intrinsic-size reserves space so the scrollbar stays stable. */
  content-visibility: auto;
  contain-intrinsic-size: 2.2rem 2rem;
  /* Anchor the visually-hidden name (below) to this cell so browser find scrolls
     to the right emoji. */
  position: relative;
}

.emoji-grid a:hover {
  background: #eee;
  border-radius: 4px;
}

/* Present and rendered in the DOM but invisible, so browser find (Ctrl-F) matches
   the text and scrolls to it. Deliberately NOT display:none/visibility:hidden, which
   find-in-page skips. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flashes {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.flash {
  padding: 0.4rem 0.6rem;
  margin: 0.3rem 0;
  border: 1px solid #999;
}

.flash-error {
  border-color: #cc0000;
  color: #cc0000;
}

.flash-success {
  border-color: #007700;
  color: #007700;
}

table {
  margin: 1rem auto;
  border-collapse: collapse;
  width: 100%;
}

th, td {
  border-bottom: 1px dotted #aaa;
  padding: 0.3rem 0.5rem;
  text-align: left;
}

form {
  margin: 1rem auto;
  max-width: 360px;
  text-align: left;
}

label {
  display: block;
  margin: 0.6rem 0 0.2rem;
}

/* Checkbox + its text on one line (the input keeps its natural size). */
.checkbox-label {
  font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-right: 0.4rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.4rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #777;
  background: #fff;
}

button,
input[type="submit"] {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.4rem 1rem;
  margin-top: 0.8rem;
  border: 1px solid #333;
  background: #eee;
  cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
  background: #ddd;
}

.muted {
  color: #777;
  font-size: 0.9rem;
}

.price {
  font-weight: bold;
  font-size: 1.3rem;
}

footer {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: #777;
}

hr {
  border: none;
  border-top: 1px dashed #999;
}

.bar {
  display: inline-block;
  background: #1a1a1a;
  height: 0.7rem;
  vertical-align: middle;
}

.field-error {
  color: #cc0000;
  font-size: 0.85rem;
}
