/* TRR Holding GmbH — Website-Stil
   Zeitungs-/Textstil, angelehnt an berkshirehathaway.com:
   keine Bilder, keine Grafiken, reine Typografie. */

:root {
  --ink: #1a1a1a;
  --paper: #fbfaf7;
  --rule: #1a1a1a;
  --link: #1a3e8f;
  --link-visited: #4b2e83;
  --muted: #555555;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0 auto;
  max-width: 42rem;
  padding: 3rem 1.25rem 5rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

/* Masthead */

header.masthead {
  text-align: center;
  margin-bottom: 2.25rem;
}

.wordmark {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.wordmark a,
.wordmark a:visited,
.wordmark a:hover,
.wordmark a:focus {
  color: var(--link-visited);
  text-decoration: none;
}

.tagline {
  margin: 0.35rem 0 0;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

hr.rule {
  border: none;
  border-top: 3px double var(--rule);
  margin: 0.9rem 0 0;
}

hr.rule-thin {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0.35rem 0 0;
}

nav.main-nav {
  margin: 1.5rem 0 2.5rem;
  text-align: center;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

nav.main-nav a {
  margin: 0 0.55rem;
  white-space: nowrap;
}

nav.main-nav a.current {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

/* Links */

a {
  color: var(--link);
  text-decoration: underline;
}

a:visited { color: var(--link-visited); }
a:hover, a:focus { color: #0d244f; }

/* Content */

main h1 {
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.4rem;
  margin: 0 0 1.5rem;
}

main h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 2.25rem 0 0.75rem;
}

main p { margin: 0 0 1.1rem; }

ul.plain {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

ul.plain li {
  padding: 0.9rem 0;
  border-top: 1px solid #d8d5cd;
}

ul.plain li:first-child { border-top: none; }

ul.plain li strong {
  display: inline-block;
  font-size: 1.05rem;
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

.placeholder {
  font-style: italic;
}

.placeholder::before { content: "["; }
.placeholder::after { content: "]"; }

/* Footer */

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

footer a { color: var(--muted); }

/* Small screens */

@media (max-width: 30rem) {
  .wordmark { font-size: 1.5rem; letter-spacing: 0.05em; }
  nav.main-nav a { display: inline-block; margin: 0.15rem 0.4rem; }
}
