:root {
  --bg: #000;
  --text: #f5e7c8;
  --gold: #d6ad5c;
  --muted: #aaa;
  --line: rgba(214, 173, 92, 0.18);
  --panel: rgba(17, 17, 17, 0.62);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

body {
  min-height: 100vh;
}

body.home {
  display: grid;
  place-items: center;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: absolute;
  top: 18px;
  right: 24px;
  left: 24px;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.identity-nav,
.section-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.identity-nav a,
.section-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  opacity: 0.95;
}

.identity-nav a:hover,
.identity-nav a:focus,
.section-nav a:hover,
.section-nav a:focus {
  color: var(--gold);
}

.nav-home {
  font-weight: 700;
}

.emblem-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-emblem {
  display: block;
  width: 80px;
  max-width: 80px;
  height: auto;
  margin: 0;
}

main {
  width: min(92vw, 1200px);
  margin: 0 auto;
  padding: 150px 20px 56px;
  transition: opacity 420ms ease, transform 420ms ease;
  opacity: 0;
  transform: translateY(6px);
}

body.home main {
  padding-top: 118px;
}

body:not(.home) main {
  padding-top: 170px;
}

.js-ready main {
  opacity: 1;
  transform: none;
}

.hero {
  text-align: center;
}

.hero h1 {
  margin: 0;
}

.hero-head {
  display: inline-block;
  position: relative;
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  display: block;
  width: min(100%, 1100px);
  margin: 0 auto 30px;
}

.hero-ctas {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: 12px;
  margin-top: -12px;
}

.cta {
  background: rgba(17, 17, 17, 0.65);
  border: 1px solid var(--line);
  color: var(--gold);
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
}

.cta:hover,
.cta:focus {
  background: var(--gold);
  color: #000;
}

.coming {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 18px);
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0.35em 0 0.2em;
  color: var(--text);
  font-size: clamp(28px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2,
h3 {
  color: var(--text);
}

p,
li {
  color: var(--gold);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.hero-description-sub {
  max-width: 760px;
  margin: 8px auto 0;
  color: #c0c0c0;
  font-size: clamp(15px, 1.6vw, 20px);
}

.lead {
  margin-top: 0;
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.content-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.content-grid h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.app-logo-link {
  display: inline-flex;
  align-items: center;
}

.app-logo-link img {
  display: block;
  width: 64px;
  max-width: 64px;
  height: auto;
}

.app-hero-panel {
  display: grid;
  grid-template-columns: minmax(128px, 220px) minmax(128px, 220px) minmax(280px, 1fr);
  align-items: center;
  gap: 24px 44px;
  margin: 18px 0 24px;
}

.app-hero-icon {
  display: block;
  width: 100%;
  height: auto;
}

.app-partner-logo-link {
  display: inline-flex;
  align-items: center;
  justify-self: center;
}

.app-partner-logo-link img {
  display: block;
  width: 100%;
  height: auto;
}

.app-store-placeholder {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.app-store-placeholder .eyebrow {
  margin-bottom: 12px;
}

.store-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.brg-store-links .store-link-list {
  grid-template-columns: repeat(2, minmax(150px, 1fr));
}

.store-link-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px dashed rgba(214, 173, 92, 0.4);
  border-radius: 8px;
  color: var(--muted);
  font-size: 16px;
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .app-hero-panel {
    grid-template-columns: repeat(2, minmax(128px, 220px));
    justify-content: center;
  }

  .app-store-placeholder {
    grid-column: 1 / -1;
  }
}

.content-grid p,
.content-grid li,
.note {
  color: var(--muted);
  font-size: 17px;
  letter-spacing: 0;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.text-link,
.button-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.button-link,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #000;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  text-decoration: none;
}

.tonmeister-cv {
  max-width: 1040px;
}

.cv-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(112px, 18vw, 188px);
  align-items: center;
  gap: 28px;
  margin-bottom: 22px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.cv-hero-icon {
  justify-self: end;
  width: 100%;
  max-width: 188px;
  height: auto;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 0 0 36px;
}

.cv-section {
  margin-top: 34px;
}

.cv-section h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.cv-section h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.25;
}

.cv-section p,
.cv-section li {
  color: var(--muted);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.58;
  letter-spacing: 0;
}

.cv-profile p {
  color: var(--gold);
}

.cv-card-grid,
.cv-skill-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cv-card-grid article,
.cv-skill-groups > div,
.cv-timeline article,
.cv-contact {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.cv-card-grid p,
.cv-timeline p,
.cv-skill-groups li,
.cv-contact p {
  margin-bottom: 0;
}

.cv-timeline {
  display: grid;
  gap: 14px;
}

.cv-date {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cv-skill-groups ul {
  margin: 0;
  padding-left: 20px;
}

.cv-skill-groups li + li {
  margin-top: 6px;
}

.cv-contact .button-link {
  margin-top: 6px;
}

.back-to-top {
  margin-top: 28px;
  font-size: 16px;
}

.contact-cta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-form {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

label {
  color: var(--text);
  font-size: 16px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid rgba(181, 157, 112, 0.18);
  color: var(--text);
  border-radius: 6px;
  font-size: 16px;
  font-family: Georgia, "Times New Roman", serif;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  min-height: 1.5em;
  color: var(--text);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 6px 10px;
  background: #111;
  color: var(--text);
  border-radius: 4px;
  z-index: 9999;
}

@media (max-width: 760px) {
  body.home {
    display: block;
  }

  .site-header {
    position: static;
    padding: 14px 16px 0;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  main {
    width: min(100% - 24px, 880px);
    padding: 54px 0 54px;
  }

  body.home main {
    padding-top: 40px;
  }

  body:not(.home) main {
    padding-top: 54px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    margin-top: 0;
  }

  .cv-hero,
  .cv-card-grid,
  .cv-skill-groups {
    grid-template-columns: 1fr;
  }

  .cv-hero {
    gap: 18px;
  }

  .cv-hero-icon {
    justify-self: start;
    max-width: 128px;
  }

  .cv-actions {
    margin-bottom: 30px;
  }
}

@media (max-width: 520px) {
  .identity-nav,
  .section-nav {
    gap: 12px;
  }

  .identity-nav a,
  .section-nav a {
    font-size: 15px;
  }

  .site-emblem {
    width: 64px;
    max-width: 64px;
  }

  .app-hero-panel {
    grid-template-columns: minmax(120px, 160px) minmax(100px, 160px);
    justify-content: center;
    gap: 20px;
  }

  .app-hero-icon {
    max-width: 160px;
  }

  .app-partner-logo-link {
    max-width: 160px;
  }

}
