@import url('https://cdn.jsdelivr.net/npm/lmweb@0.1.0/style.css');

:root {
  --bg: #e3ecdb;
  --ink: #1e3a2f;
  --ink-soft: #2f4a3d;
  --rule: #8aa48d;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Latin Modern Roman', 'Computer Modern Serif', 'Georgia', serif;
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 20px calc(60px + env(safe-area-inset-bottom));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

main {
  flex: 1;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

a:hover {
  text-decoration-color: var(--ink);
}

a:visited {
  color: var(--ink);
}

.welcome {
  margin: 2rem 0;
}

.welcome h1 {
  font-weight: 400;
  font-size: 2.2rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  font-style: italic;
  text-align: center;
}

.welcome .rule {
  width: 3rem;
  height: 1px;
  background: var(--rule);
  margin: 1.5rem auto 2.5rem;
  border: 0;
}

.welcome .greeting {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 1.5rem;
  text-align: center;
}

.welcome .prose {
  text-align: justify;
  hyphens: auto;
}

.welcome .prose p {
  margin: 0 0 1.25em;
  color: var(--ink-soft);
  text-indent: 1.5em;
}

.welcome .prose p:first-child {
  text-indent: 0;
}

.login-intro {
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 18rem;
  margin: 1.75rem auto 0;
}

.login-form input {
  font: inherit;
  padding: 0.65rem 0.9rem;
  text-align: center;
  letter-spacing: 0.02em;
  border-radius: 4px;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
}

.login-form input::placeholder {
  color: var(--rule);
  font-style: italic;
}

.login-form input:focus {
  outline: none;
  border-color: var(--ink);
}

.login-error {
  color: #8b3a3a;
  font-style: italic;
  margin-top: 1rem;
  text-align: center;
}

footer {
  text-align: center;
  margin-top: auto;
  padding: 2.5rem 0 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

.page {
  margin: 1rem 0 2rem;
}

.page h1 {
  font-weight: 400;
  font-size: 2rem;
  font-style: italic;
  text-align: center;
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}

.page .subtitle {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
}

.page h2 {
  font-weight: 400;
  font-size: 1.2rem;
  font-style: italic;
  margin: 2.5rem 0 0.75rem;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.page h3 {
  font-weight: 400;
  font-size: 1.05rem;
  font-style: italic;
  margin: 1.75rem 0 0.5rem;
  color: var(--ink-soft);
}

.page hr {
  width: 3rem;
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 1.5rem auto 2.5rem;
}

.page p {
  margin: 0.4rem 0;
  color: var(--ink-soft);
}

.socials-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.socials-col h2 {
  margin-top: 0.5rem;
}

.profiles {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profiles li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px dotted var(--rule);
}

.profiles li:last-child {
  border-bottom: 0;
}

.profiles .profile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.profiles .profile:hover .handle {
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 4px;
}

.profiles .icon {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  color: var(--ink);
}

.profiles .handle {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profiles .count {
  flex-shrink: 0;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95em;
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .socials-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

table.insights,
table.pricelist {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 0.5rem;
  font-size: 1rem;
}

table.insights th,
table.pricelist th {
  text-align: left;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--rule);
}

table.insights td,
table.pricelist td {
  padding: 0.55rem 0.5rem;
  color: var(--ink-soft);
  border-bottom: 1px dotted var(--rule);
}

table.insights tr:last-child td,
table.pricelist tr:last-child td {
  border-bottom: 0;
}

table.pricelist td:last-child,
table.pricelist th:last-child {
  text-align: right;
  white-space: nowrap;
}

.stats-list {
  margin: 1rem 0 0.5rem;
  padding: 0;
}

.stats-list dt,
.stats-list dd {
  display: inline-block;
  padding: 0.6rem 0;
  margin: 0;
  vertical-align: baseline;
}

.stats-list dt {
  width: 60%;
  font-style: italic;
  color: var(--ink);
  border-bottom: 1px dotted var(--rule);
}

.stats-list dd {
  width: 40%;
  text-align: right;
  color: var(--ink-soft);
  border-bottom: 1px dotted var(--rule);
  letter-spacing: 0.02em;
}

.stats-list dt:last-of-type,
.stats-list dd:last-of-type {
  border-bottom: 0;
}

.price-item {
  padding: 1.25rem 0;
  border-bottom: 1px dotted var(--rule);
}

.price-item:last-of-type {
  border-bottom: 0;
}

.price-item header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.price-item h3 {
  font-weight: 400;
  font-style: italic;
  font-size: 1.2rem;
  margin: 0;
  color: var(--ink);
  border-bottom: 0;
}

.price-item .price {
  font-style: italic;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.price-item p {
  margin: 0;
  color: var(--ink-soft);
}

.note {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 0.75rem;
}

.socials-stand {
  text-align: center;
  margin-top: 2.5rem;
  opacity: 0.7;
}

footer .sep {
  margin: 0 0.5rem;
  color: var(--rule);
  opacity: 0.6;
}
