/* SCOAZE — corporate vintage stylesheet */

@font-face {
  font-family: 'IBM Plex Mono';
  src: local('IBM Plex Mono');
}

:root {
  --cream:  #f5f5b8;
  --peach:  #f2ad78;
  --olive:  #718600;
  --ink:    #172713;
}

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

html { font-size: 16px; }

body {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-weight: 400;
  color: var(--ink);
  background-color: var(--cream);
  min-height: 100vh;
  position: relative;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* paper grain overlay, kept subtle */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  background-image:
    repeating-linear-gradient(0deg, #172713 0px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, #172713 0px, transparent 1px, transparent 3px);
  mix-blend-mode: multiply;
}

.theme-olive::before,
.theme-ink::before {
  background-image:
    repeating-linear-gradient(0deg, #f5f5b8 0px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, #f5f5b8 0px, transparent 1px, transparent 3px);
  mix-blend-mode: screen;
  opacity: 0.08;
}

a { color: inherit; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.6rem 2.2rem;
  background-color: inherit;
}

.site-header .brand-mark,
.site-header .person-link { pointer-events: auto; }

.brand-mark {
  pointer-events: auto;
  display: block;
  width: 108px;
}

.brand-mark svg,
.brand-mark img { display: block; width: 100%; height: auto; }

.person-link {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: opacity 0.2s ease;
}

.person-link:hover { opacity: 0.55; }

.person-link svg { width: 18px; height: 18px; display: block; }

/* ---------- layout shell ---------- */

.shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

.side-menu {
  position: fixed;
  top: 108px;
  left: 0;
  bottom: 0;
  width: 200px;
  overflow-y: auto;
  z-index: 30;
  background-color: inherit;
  padding: 0 1.6rem 2.5rem 2.2rem;
}

.side-menu nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.side-menu .rule {
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  margin: 0.3rem 0 1rem;
}

.side-menu a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.side-menu a.current {
  opacity: 1;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.side-menu a:hover { opacity: 1; }

main {
  margin-left: 200px;
  padding: 7.5rem 2.5rem 6rem;
  display: flex;
  justify-content: center;
}

main.no-sidebar {
  margin-left: 0;
}

.content {
  width: 100%;
  max-width: 560px;
  text-align: justify;
  text-align-last: center;
  text-justify: inter-word;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 1.4rem;
  text-align: center;
}

h1 {
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  text-align: center;
}

h1 small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  opacity: 0.6;
  margin-top: 0.6rem;
}

.ornament {
  width: 46px;
  margin: 0 auto 1.8rem;
  opacity: 0.75;
}

p { margin-bottom: 1.1rem; font-size: 0.92rem; }

p.small { font-size: 0.78rem; opacity: 0.75; }

.divider {
  width: 100%;
  border: none;
  border-top: 1px solid currentColor;
  opacity: 0.3;
  margin: 2rem auto;
}

.divider.short { width: 60px; }

.stamp {
  display: inline-block;
  border: 1px solid currentColor;
  padding: 0.5rem 1.1rem;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-top: 1rem;
  text-align: center;
}

/* ---------- footer / cookie bar ---------- */

.cookie-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 0.85rem 2.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-align: center;
  border-top: 1px solid currentColor;
  opacity: 0.85;
  background: inherit;
}

.cookie-bar a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- login form ---------- */

.form-box {
  border: 1px solid currentColor;
  padding: 2.2rem 2rem;
  margin-top: 1rem;
  text-align: left;
  text-align-last: left;
}

.field {
  margin-bottom: 1.2rem;
}

.field label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.4rem;
}

.field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid currentColor;
  font-family: inherit;
  font-size: 0.9rem;
  color: inherit;
  padding: 0.35rem 0.1rem;
  outline: none;
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.8rem;
}

.btn {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.65rem 1.6rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

/* page color themes */
.theme-cream { background-color: var(--cream); color: var(--ink); }
.theme-peach { background-color: var(--peach); color: var(--ink); }
.theme-olive { background-color: var(--olive); color: var(--cream); }
.theme-ink   { background-color: var(--ink);   color: var(--cream); }

.theme-olive .btn:hover, .theme-ink .btn:hover {
  background: currentColor;
}
.theme-olive .btn:hover { color: var(--olive); }
.theme-ink .btn:hover { color: var(--ink); }

.theme-cream .btn:hover, .theme-peach .btn:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

@media (max-width: 640px) {
  .side-menu {
    position: static;
    width: auto;
    bottom: auto;
    margin-top: 108px;
    padding: 0 1.4rem 1.5rem;
  }
  .side-menu nav { flex-direction: row; flex-wrap: wrap; gap: 1rem 1.2rem; }
  main, main.no-sidebar { margin-left: 0; padding: 7rem 1.4rem 4rem; }
  .site-header { padding: 1.2rem 1.4rem; }
}
