/* ============================================
   THE SIXTH STANDARD — PUBLIC LAYER
   Institutional shell. Not a marketing site.
   ============================================ */

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

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-secondary: #6b6b6b;
  --color-rule: #d4d4d4;
  --color-rule-light: #e8e8e8;
  --font-serif: Georgia, "Times New Roman", serif;
  --spine-width: 620px;
  --header-height: 72px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-serif);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- HEADER ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-rule-light);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-inner {
  width: 100%;
  max-width: var(--spine-width);
  padding: 0 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.site-name {
  font-size: 0.8125rem;
  font-weight: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
}

.site-name:hover {
  color: var(--color-text-secondary);
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-text);
}

.site-nav a.is-current {
  color: var(--color-text);
}

/* ---- MAIN CONTENT ---- */

.page-content {
  flex: 1;
  width: 100%;
  max-width: var(--spine-width);
  margin: 0 auto;
  padding: 80px 24px 120px;
}

/* ---- PAGE TITLE ---- */

.page-title {
  font-size: 1.625rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  line-height: 1.35;
  margin-bottom: 48px;
}

.page-title--large {
  font-size: 2rem;
  margin-bottom: 56px;
}

/* ---- SECTION BLOCKS ---- */

.section-block {
  margin-bottom: 56px;
}

.section-block:last-child {
  margin-bottom: 0;
}

.section-label {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.section-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
}

.section-text p {
  margin-bottom: 20px;
}

.section-text p:last-child {
  margin-bottom: 0;
}

/* ---- HORIZONTAL RULE ---- */

.section-rule {
  border: none;
  border-top: 1px solid var(--color-rule);
  margin: 56px 0;
}

/* ---- QUIET EMPHASIS ---- */

.quiet {
  color: var(--color-text-secondary);
}

.small-text {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ---- INDEX / REFERENCE MARK ---- */

.index-mark {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--color-rule);
  margin-top: 80px;
}

/* ---- ACCESS FORM ---- */

.access-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}

.access-field label {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.access-field input,
.access-field textarea {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-rule);
  padding: 10px 0;
  outline: none;
  transition: border-color 0.2s ease;
  line-height: 1.6;
}

.access-field input:focus,
.access-field textarea:focus {
  border-bottom-color: var(--color-text);
}

.access-field textarea {
  resize: vertical;
  min-height: 80px;
}

.access-submit {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid var(--color-rule);
  padding: 14px 36px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.access-submit:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

/* ---- CREDENTIAL LIST ---- */

.credential-list {
  list-style: none;
  padding: 0;
}

.credential-list li {
  font-size: 0.9375rem;
  line-height: 1.6;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-rule-light);
  color: var(--color-text);
}

.credential-list li:last-child {
  border-bottom: none;
}

/* ---- FOOTER ---- */

.site-footer {
  border-top: 1px solid var(--color-rule-light);
  padding: 32px 24px;
  text-align: center;
}

.site-footer p {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--color-rule);
}

/* ---- RESPONSIVE ---- */

@media (max-width: 680px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
  }

  .site-header {
    height: auto;
    padding: 0;
  }

  .site-nav {
    gap: 20px;
    flex-wrap: wrap;
  }

  .page-content {
    padding: 56px 20px 80px;
  }

  .page-title {
    font-size: 1.375rem;
  }

  .page-title--large {
    font-size: 1.625rem;
  }
}
