/* Aman-style minimal, light palette */

html,
body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #111111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.6;
}

/* ---- Layout ---- */
nav {
  max-width: 36rem; /* tailwind max-w-xl */
  margin: 0 auto;
  padding: 3rem 2rem 3rem; /* py-12 and mb-12 equivalent */
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem; /* text-xs */
}

nav .logo {
  font-size: 1.125rem; /* text-lg */
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

nav .logo:hover {
  color: #374151; /* gray-700 */
}

nav ul.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem; /* space-x-6 */
}

nav ul.menu li {
  margin: 0;
}

nav ul.menu a {
  color: #6b7280; /* text-gray-500 */
}

nav ul.menu a:hover {
  color: #374151; /* gray-700 */
}

main.container {
  max-width: 36rem; /* tailwind max-w-xl */
  margin: 0 auto;
  padding: 0 2rem 0;
  font-size: 0.875rem; /* text-sm */
}

main.container p {
  margin-bottom: 2rem; /* space-y-8 */
}

/* ---- Footer ---- */
footer {
  max-width: 36rem;
  margin: 0 auto 0; /* equal margins top & bottom handled by inner elements */
  padding: 0 2rem 3rem; /* bottom padding to mirror nav top padding */
  font-size: 0.75rem; /* text-xs */
}

ul.links {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.25rem; /* each link separated slightly */
}

ul.links a {
  color: #6b7280; /* text-gray-500 */
}

ul.links a:hover {
  text-decoration: underline;
  color: #374151; /* gray-700 */
}

.subscribe-fixed {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  max-width: 36rem;
  width: 90%;
  text-align: center;
  z-index: 10;
}

/* ---- Email form ---- */
.email-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 0;
  margin-bottom: 3rem;
}

.email-form input[type="email"] {
  flex: 1;
  border: none;
  border-bottom: 1px solid #d1d5db;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  background: transparent;
  color: inherit;
}

.email-form input[type="email"]:focus {
  outline: none;
  border-bottom-color: #111111;
}

.email-form button {
  border: none;
  background: none;
  font-size: 0.875rem;
  color: #0066cc;
  cursor: pointer;
}

.email-form button:hover {
  text-decoration: underline;
}

/* ---- Typography ---- */
a {
  text-decoration: none;
  color: inherit;
}

a.underline {
  text-decoration: underline;
}

a:hover {
  text-decoration: underline;
}

/* ---- bookmarks page ---- */
ul.bookmark-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.bookmark-list li {
  margin-bottom: 0.5rem;
}

ul.bookmark-list span.date {
  float: right;
  color: #6b7280;
  font-size: 0.75rem;
}

/* ---- Toast notifications ---- */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 0.875rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
