/*
Theme Name: Jasikov
Theme URI: https://jasikov.de
Author: Alexander Jasikov
Description: A simple one-page WordPress greeting theme for jasikov.de.
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jasikov
*/

:root {
  --paper: #e8dfce;
  --paper-light: #f4eddf;
  --charcoal: #292a2f;
  --charcoal-deep: #191a1d;
  --ink: #332631;
  --muted: #6f6870;
  --teal: #9fd8da;
  --teal-deep: #6aaeb6;
  --edge: rgba(52, 40, 50, 0.16);
  --max: 980px;
  --radius: 8px;
  --font-main: "Trebuchet MS", "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 12%, rgba(159, 216, 218, 0.24), transparent 26%),
    linear-gradient(135deg, #111214 0%, #24262a 42%, #111214 100%);
  font-family: var(--font-main);
  line-height: 1.48;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%);
  background-size: 16px 16px;
  content: "";
  opacity: 0.34;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  padding: 24px clamp(18px, 4vw, 48px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper-light);
  text-decoration: none;
}

.brand__logo {
  width: 36px;
  height: 54px;
  object-fit: contain;
  transform: rotate(90deg);
  transform-origin: center;
}

.brand__text {
  font-size: 1rem;
  font-weight: 800;
}

.welcome {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 104px 20px 84px;
}

.welcome__card {
  display: grid;
  width: min(var(--max), 100%);
  min-height: min(680px, calc(100vh - 188px));
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(232, 223, 206, 0.32);
  border-radius: var(--radius);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
}

.welcome__paper {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 440px;
  padding: 64px clamp(28px, 8vw, 96px) 52px;
  text-align: center;
}

.welcome__kicker {
  margin: 0 0 18px;
  color: var(--teal-deep);
  font-size: clamp(0.9rem, 2vw, 1.08rem);
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 9vw, 7.4rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.welcome__slogan {
  width: min(620px, 100%);
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-style: italic;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.welcome__dark {
  position: relative;
  min-height: 150px;
  background:
    linear-gradient(90deg, transparent 0%, transparent calc(100% - 2px), var(--teal) calc(100% - 2px)),
    linear-gradient(135deg, rgba(159, 216, 218, 0.16), transparent 42%),
    var(--charcoal);
}

.welcome__dark::before {
  position: absolute;
  right: clamp(24px, 5vw, 54px);
  bottom: 28px;
  width: min(220px, 42vw);
  height: 4px;
  background: var(--teal);
  content: "";
}

.welcome__mail {
  display: inline-flex;
  margin-top: 20px;
  color: var(--teal-deep);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.welcome__mail:hover,
.welcome__mail:focus {
  color: var(--ink);
}

.site-footer {
  position: fixed;
  right: clamp(18px, 4vw, 48px);
  bottom: 24px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: rgba(244, 237, 223, 0.7);
  font-size: 0.9rem;
}

.page-main {
  width: min(780px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 132px 0 96px;
  color: var(--paper-light);
}

.page-title {
  margin: 0 0 24px;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 500;
  line-height: 1;
}

@media (max-width: 760px) {
  body.admin-bar .site-header {
    top: 0;
  }

  .site-header {
    padding: 18px;
  }

  .welcome {
    align-items: stretch;
    padding: 88px 14px 82px;
  }

  .welcome__card {
    min-height: calc(100vh - 170px);
  }

  .welcome__paper {
    min-height: 390px;
    padding: 54px 24px 44px;
  }

  .welcome__dark {
    min-height: 130px;
  }

  .welcome__mail {
    max-width: 100%;
    justify-content: center;
  }

  .site-footer {
    right: 18px;
    bottom: 18px;
    left: 18px;
    justify-content: space-between;
  }
}
