/* Tuttle Network — Aurora Fusion public theme
   Navy #1A2E50, Or #C4A040, Ink #0F1520, Canvas #F0EEF0 */

* {
  box-sizing: border-box;
}
html, body {
  padding: 0;
  margin: 0;
  min-width: 320px;
}
body {
  background: #D8D5CE;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: #0F1520;
  position: relative;
}

/* === Accent bar top === */
.tn-accent-bar-top {
  height: 5px;
  background: linear-gradient(90deg, #1A2E50, #C4A040);
}
.tn-accent-bar-bottom {
  height: 4px;
  background: linear-gradient(90deg, #C4A040, #1A2E50);
}

/* === TN Nav === */
.tn-nav {
  background: #0F1520;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(15, 21, 32, 0.3);
  position: relative;
  z-index: 10;
}
.tn-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tn-nav__brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #F0EEF0;
  text-decoration: none;
}
.tn-nav__brand-dot {
  color: #C4A040;
  animation: tn-blink 1.2s step-end infinite;
}
.tn-nav__brand-accent {
  color: #C4A040;
}
.tn-nav__tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #A8B0BE;
}

@keyframes tn-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* === Links === */
a {
  color: #1A2E50;
  text-decoration-color: rgba(26, 46, 80, 0.3);
}
a:hover {
  color: #C4A040;
}

/* === Typography === */
label {
  cursor: pointer;
  color: #3A4150;
}
h1, h2, h3, h4 {
  font-weight: 600;
  color: #0F1520;
}

.section {
  margin-bottom: 45px;
}

/* === Forms === */
input[type="text"], input[type="email"], input[type="password"], select {
  padding: 12px 16px;
  border: 1px solid #D5D8DF;
  border-radius: 4px;
  width: 100%;
  font-size: 1em;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus {
  border-color: #1A2E50;
  box-shadow: 0 0 0 3px rgba(26, 46, 80, 0.12);
  outline: none;
}
input:focus::placeholder {
  color: transparent;
}
input[disabled] {
  opacity: 0.5;
}

/* === Utilities === */
.center { text-align: center; }
.right { text-align: right; }
.small { font-size: 0.875em; }
.error { color: #EF4444; }

/* === Buttons === */
.button {
  background: #1A2E50;
  padding: 14px 30px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  display: inline-block;
  min-width: 150px;
  font-size: 1.05em;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  transition: all 0.2s ease;
}
.button:hover {
  background: #152644;
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 46, 80, 0.25);
  transform: translateY(-1px);
}
.button.button-outline {
  background: #F0EEF0;
  border: 1.5px solid #1A2E50;
  color: #1A2E50;
}
.button.button-outline:hover {
  background: #E6E8ED;
  border-color: #152644;
  color: #152644;
}

/* === Layout === */
.container {
  margin: 30px auto 15px auto;
  max-width: 550px;
  position: relative;
  z-index: 1;
}
.wrap {
  background: #F0EEF0;
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(26, 46, 80, 0.06);
  border: 1px solid rgba(26, 46, 80, 0.08);
}

/* === Header (inside wrap) === */
.header {
  border-bottom: 1px solid #D5D8DF;
  padding-bottom: 15px;
  margin-bottom: 30px;
}
.header .logo img {
  width: auto;
  max-width: 150px;
}

/* === Subscription lists === */
.unsub-all {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #D5D8DF;
}
.row {
  margin-bottom: 20px;
}
.lists {
  list-style-type: none;
  padding: 0;
}
.lists li {
  margin: 0 0 5px 0;
}
.lists .description {
  margin: 0 0 15px 0;
  font-size: 0.875em;
  line-height: 1.3rem;
  color: #717988;
  margin-left: 25px;
}
.form .nonce {
  display: none;
}
.form .captcha {
  margin-top: 30px;
}

input[type="checkbox"] {
  accent-color: #1A2E50;
}

/* === Archive === */
.archive {
  list-style-type: none;
  margin: 25px 0 0 0;
  padding: 0;
}
.archive .date {
  display: block;
  color: #717988;
  font-size: 0.875em;
}
.archive li {
  margin-bottom: 15px;
}
.feed {
  margin-right: 15px;
}

/* === Home options === */
.home-options {
  margin-top: 30px;
}
.home-options a {
  margin: 0 7px;
}

/* === Pagination === */
.pagination {
  margin-top: 30px;
  text-align: center;
}
.pg-page {
  display: inline-block;
  padding: 0 10px;
  text-decoration: none;
}
.pg-page.pg-selected {
  text-decoration: underline;
  font-weight: bold;
  color: #1A2E50;
}

/* === Login === */
.login .submit {
  margin-top: 20px;
}
.login button {
  width: 100%;
  vertical-align: middle;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login button img {
  max-width: 24px;
  margin-right: 10px;
}
.login input[name=totp_code] {
  font-size: 2em;
  letter-spacing: 5px;
  text-align: center;
}

/* === Footer === */
.tn-footer {
  background: #0F1520;
  text-align: center;
  padding: 1.5rem 2rem;
}
.tn-footer__brand {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #F0EEF0;
}
.tn-footer__brand-accent {
  color: #C4A040;
}
.tn-footer__tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #A8B0BE;
  margin-top: 0.3rem;
}

/* Legacy footer compat */
footer.container {
  text-align: center;
  color: #A8B0BE;
  font-size: 0.8em;
  margin-top: 30px;
  margin-bottom: 30px;
}
footer.container a {
  color: #717988;
  text-decoration: none;
}
footer.container a:hover {
  color: #C4A040;
}

/* === Responsive === */
@media screen and (max-width: 650px) {
  .wrap {
    margin: 0;
    padding: 30px;
    max-width: none;
    border-radius: 0;
  }
  .tn-nav {
    padding: 0.75rem 1rem;
  }
  .tn-nav__brand {
    font-size: 1.25rem;
  }
  .tn-nav__tagline {
    display: none;
  }
}
