:root {
  --berry:       #5B3FB4;
  --moss:        #3D7A5F;
  --cream:       #F5F0E8;
  --ink:         #1E1C18;
  --amber:       #C4862A;
  --rust:        #B85C38;
  --stone:       #5A5650;
  --light-stone: #D8D4CC;
  --deep-violet: #4D3883;
}

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

body {
  font-family: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  padding: 0;
  margin: 0;
}

ul.topbar {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
ul.topbar li {
  float: left;
  margin-right: 1em;
  margin-left: 1em;
  color: var(--stone);
}
ul.topbar.right li {
  float: right;
}
ul.topbar a {
  color: var(--ink);
}
ul.topbar a:hover {
  color: var(--berry);
  text-decoration: none;
}

a {
  color: var(--berry);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--deep-violet);
  text-decoration: underline;
}

@media (max-width: 767px) {
  body {
    padding-left: 0px;
    padding-right: 0px;
  }
  .navbar-fixed-top {
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
  }
}
@media (max-width: 979px) {
  body {
    padding-left: 0px;
    padding-right: 0px;
  }
  .navbar-fixed-top {
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
  }
}

.container {
  padding: 0 1.5rem;
  max-width: 1100px;
  margin-right: auto;
  margin-left: auto;
}

.container:before,
.container:after {
  display: table;
  line-height: 0;
  content: "";
}

.container:after {
  clear: both;
}

.container-narrow {
  margin: 0 auto;
  max-width: 800px;
  padding: 2rem 1.5rem;
}

.container-narrow p {
  line-height: 1.5em;
}

.page {
  background-color: var(--cream);
  padding: 10px 20px;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.navbar {
  position: relative;
}


.table tr.highlight td {
  background-color: #fff9d6 !important;
}

.hero-unit {
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  border: 1px solid var(--light-stone);
  border-radius: 12px;
}

.hero-unit h1 {
  margin-bottom: 1rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 767px) {
  .hero-unit h1 {
    font-size: 1.75rem;
  }
}

.btn {
  border-radius: 8px;
}
.btn-large {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}
.btn-primary {
  color: #ffffff;
  background-color: var(--berry);
  border: none;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary.disabled,
.btn-primary[disabled] {
  color: #ffffff;
  background-color: var(--deep-violet);
  text-decoration: none;
}

/*.hero-unit {
  background: url(/img/title-bkg.jpg) top center no-repeat;
  padding: 20px 10px;
  text-align: center;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
}
.hero-unit h1 {
  color: #eee;
  margin-top: 40px;
  margin-bottom: 30px;
  font-size: 36pt;
  border-bottom: none;
  font-weight: normal;
}
*/

.webmention-status {
  border-radius: 12px;
  border: 2px var(--light-stone) solid;
  padding: 1em 2em;
  margin-bottom: 2em;
}
.webmention-status.error {
  border: 2px var(--rust) solid;
}
.webmention-status.debug {
  border: 2px var(--light-stone) solid;
  color: var(--stone);
  overflow: scroll;
}
.webmention-status.error h2 {
  color: var(--rust);
}

.site-header {
  background-color: var(--cream);
  border-bottom: 1px solid var(--light-stone);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  padding: 1rem 1.5rem;
  color: var(--ink);
}
.site-header a {
  color: var(--ink);
}

.section {
  background-color: var(--cream);
  border: 1px var(--light-stone) solid;
  margin: -20px -20px 35px -20px;
  padding: 19px;
}

.home-section {
  background-color: var(--cream);
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  border-radius: 12px;
  border: 1px solid var(--light-stone);
}

.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  border-top: 1px var(--light-stone) solid;
  background: var(--cream);
  padding: 1rem 0;
  text-align: center;
}
.footer a {
  color: var(--stone);
}
.footer a:hover {
  color: var(--berry);
}
body {
  padding-bottom: 60px;
}

.footer .item {
  font-size: 0.875rem;
  margin: 0 1.25rem;
  display: inline-block;
}

.intro p {
  font-size: 1.12em;
}

#web-sign-in {
  max-width: 400px;
  margin: 0 auto;
}
#web-sign-in h3 {
  padding: 0;
  margin: 0;
  margin-bottom: 0.5rem;
  font-weight: 400;
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
}
#web-sign-in input {
  border: 1px var(--light-stone) solid;
  border-radius: 8px;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  display: block;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
}
#web-sign-in .form-control {
  width: 100%;
}

/**
 * Headers
 */
h1 {
  border-bottom: 2px var(--light-stone) solid;
  margin-top: 0.8em;
  margin-bottom: 0.2em;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
}

h2 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 400;
  margin-bottom: 0.875rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-stone);
}
h2:first-of-type {
  padding-top: 0;
  border-top: none;
  margin-top: 0;
}

hr {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid var(--light-stone);
}

a.in-page-link {
  margin-left: -18px;
  margin-right: 2px;
  font-size: 16px;
  color: var(--light-stone);
  text-decoration: none;
}

a.in-page-link:hover {
  color: var(--stone);
}

/**
 * Code/Syntax Highlighting
 */
code, pre {
  font: 0.875rem 'JetBrains Mono', 'Fira Code', Inconsolata, Monaco, "Courier New", monospace;
}

pre {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}

pre code {
  display: block;
  margin: 1.25em 0;
  padding: 0.75em 1.0em;
  overflow: auto;
  white-space: pre;
  background-color: rgba(90, 86, 80, 0.08);
  border-radius: 8px;
  border: 1px solid var(--light-stone);
}

code {
  color: var(--berry);
  background: rgba(90, 86, 80, 0.08);
  white-space: nowrap;
  padding: 0.15em 0.3em;
  border-radius: 4px;
}

/* Forms */

input {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px var(--light-stone) solid;
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
}

.button {
  border: 1px var(--berry) solid;
  border-radius: 8px;
  background: var(--berry);
  padding: 0.5rem 1rem;
  color: white;
}

/* mention list */
table.recent-webmentions {
  width: 100%;
}

table.recent-webmentions tr:hover {
  background: rgba(91, 63, 180, 0.05);
}

table.recent-webmentions td {
  word-wrap: break-word;
  word-break: break-all;
}

.recent-webmentions a.delete {
  font-weight: bold;
  color: var(--rust);
  font-size: 16px;
}
.recent-webmentions a.delete:hover {
  text-decoration: none;
  color: #E64152;
}



table.table {
  width: 100%;
  border-collapse: collapse;
}
table.table tr.header {
  font-weight: bold;
}
table.table td {
  border: 1px var(--light-stone) solid;
  padding: 0.5rem;
}


.h-card img {
  max-height: 24px;
  max-width: 24px;
  border-radius: 4px;
}

.hidden {
  display: none;
}

#error-message {
  margin-bottom: 1em;
  border: 1px var(--rust) solid;
  background: rgba(184, 92, 56, 0.1);
  color: var(--rust);
  padding: 1rem;
  border-radius: 8px;
}





/* LOADING SPINNER */
#loading-spinner {
  text-align: center;
}
.lds-ellipsis,
.lds-ellipsis div {
  box-sizing: border-box;
}
.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ellipsis div {
  position: absolute;
  top: 33.33333px;
  width: 13.33333px;
  height: 13.33333px;
  border-radius: 50%;
  background: currentColor;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

/* ── Dark mode ── */
@media (prefers-color-scheme: dark) {
  :root {
    --cream:       #1E1C18;
    --ink:         #F5F0E8;
    --light-stone: #3A3830;
    --stone:       #D0CCC6;
    --berry:       #C0AEF8;
    --deep-violet: #E0D0FF;
  }
  body { background-color: #1E1C18; }
  .hero-unit { background-color: #2A2822; border-color: #3A3830; }
  .home-section { background-color: #2A2822; border-color: #3A3830; }
  .section { background-color: #2A2822; border-color: #3A3830; }
  .page { background-color: #2A2822; }
  .site-header { background-color: #2A2822; border-color: #3A3830; }
  .footer { background-color: #2A2822; border-color: #3A3830; }
  code { background: rgba(208, 204, 198, 0.15); }
  pre code { background: rgba(208, 204, 198, 0.15); border-color: #3A3830; }
  input { background: #2A2822; border-color: #3A3830; color: var(--ink); }
  table.table td { border-color: #3A3830; }
  table.recent-webmentions tr:hover { background: rgba(192, 174, 248, 0.1); }
  #error-message { background: rgba(184, 92, 56, 0.2); border-color: var(--rust); }
}

