/*
Theme Name: deason
Theme URI: https://example.com/
Author: Deason
Author URI: https://example.com/
Description: A simple personal WordPress theme for IT tips and tricks with a Mercedes-AMG Petronas inspired palette.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: deason
*/

:root {
  --petronas-black: #000000;
  --petronas-silver: #c8ccce;
  --petronas-dark-grey: #565f64;
  --petronas-tiffany: #00a19b;
  --petronas-white: #ffffff;
  --content-width: 1120px;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--petronas-white);
  background:
    radial-gradient(circle at top left, rgba(0, 161, 155, 0.24), transparent 34%),
    radial-gradient(circle at bottom right, rgba(200, 204, 206, 0.14), transparent 22%),
    linear-gradient(135deg, #050708 0%, #101518 42%, #1e2529 100%);
  min-height: 100vh;
}

a {
  color: var(--petronas-tiffany);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

a:hover,
a:focus {
  color: var(--petronas-white);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--petronas-tiffany);
  outline-offset: 3px;
}

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

.site-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.skip-link {
  z-index: 1000;
}

.custom-logo-link,
.custom-logo {
  display: block;
}

.custom-logo {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--petronas-white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--petronas-tiffany);
}

.hero {
  padding: 2rem 0 2rem;
}

.hero--home {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.hero__panel {
  padding: clamp(1.25rem, 2vw, 2rem);
  border: 1px solid rgba(0, 161, 155, 0.3);
  background:
    linear-gradient(155deg, rgba(0, 161, 155, 0.22), rgba(0, 0, 0, 0.28)),
    rgba(0, 0, 0, 0.56);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero__panel::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -25%;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 161, 155, 0.24), rgba(0, 161, 155, 0));
  pointer-events: none;
}

.hero__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero__panel--home .hero__topline {
  align-items: flex-start;
  margin-bottom: 1rem;
}

.hero__masthead {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0;
  min-height: 3rem;
}

.hero__logo-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  white-space: nowrap;
  margin-bottom: 0;
  min-height: 2.1rem;
  line-height: 1;
}

.hero__panel--home .eyebrow {
  padding: 0.4rem 0.8rem;
  font-size: 0.7rem;
}

.hero__panel--home .site-nav a {
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
}

.site-nav a::before {
  content: "//";
  margin-right: 0.35rem;
}

.hero__masthead .site-nav {
  justify-self: end;
  width: 100%;
}

.hero__masthead .site-nav ul {
  width: 100%;
  justify-content: flex-end;
  gap: 1.25rem;
}

.hero__site-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__site-title a {
  color: var(--petronas-white);
}

.hero__brandlockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  gap: 1.5rem;
  align-items: end;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 0;
  padding: 0.45rem 0.85rem;
  background: rgba(0, 161, 155, 0.16);
  color: var(--petronas-tiffany);
  border: 1px solid rgba(0, 161, 155, 0.4);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__copy h1,
.hero h1,
.hero h2 {
  margin: 0 0 1rem;
  max-width: 12ch;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button-primary {
  background: var(--petronas-tiffany);
  color: var(--petronas-black);
}

.button-secondary {
  border: 1px solid rgba(200, 204, 206, 0.3);
  background: rgba(255, 255, 255, 0.03);
  color: var(--petronas-white);
}

.button-primary:hover,
.button-primary:focus,
.button-secondary:hover,
.button-secondary:focus {
  transform: translateY(-2px);
}

.signal-card {
  padding: 1.25rem;
  border: 1px solid rgba(200, 204, 206, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.18));
  backdrop-filter: blur(10px);
}

.signal-card__label,
.section-heading__eyebrow,
.highlight-card__index {
  display: inline-block;
  color: var(--petronas-tiffany);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.signal-card__value {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--petronas-white);
}

.signal-card__text {
  margin: 0;
  color: var(--petronas-silver);
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-heading--compact h2 {
  font-size: 1.15rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(280px, 0.9fr);
  gap: 2rem;
  padding: 2rem 0 4rem;
}

.content-grid--home {
  align-items: start;
}

.posts-panel,
.sidebar-panel {
  background: rgba(0, 0, 0, 0.46);
  border: 1px solid rgba(200, 204, 206, 0.12);
  box-shadow: var(--shadow-soft);
}

.posts-panel {
  padding: 1.5rem;
}

.posts-panel__title,
.sidebar-panel__title {
  margin: 0 0 1.25rem;
  color: var(--petronas-white);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-card {
  padding: 1.4rem 0;
  border-top: 1px solid rgba(200, 204, 206, 0.12);
}

.post-card:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--petronas-silver);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-card h3,
.single-post__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.post-card h3 a,
.single-post__title a {
  color: var(--petronas-white);
}

.post-card p,
.single-post__content,
.sidebar-panel p,
.sidebar-panel li,
.widget {
  color: #e9eff0;
  line-height: 1.75;
}

.read-more {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--petronas-tiffany);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.navigation.pagination,
.posts-navigation {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(200, 204, 206, 0.12);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(200, 204, 206, 0.2);
  color: var(--petronas-white);
  background: rgba(255, 255, 255, 0.03);
}

.nav-links .page-numbers.current {
  background: var(--petronas-tiffany);
  color: var(--petronas-black);
  border-color: var(--petronas-tiffany);
}

.sidebar-panel {
  padding: 1.5rem;
}

.sidebar-panel--utility {
  background:
    linear-gradient(180deg, rgba(86, 95, 100, 0.4), rgba(0, 0, 0, 0.42)),
    rgba(0, 0, 0, 0.46);
}

.tip-list,
.widget_categories ul,
.widget_archive ul,
.widget_recent_entries ul,
.widget_pages ul,
.widget_meta ul,
.widget_nav_menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tip-list li,
.widget_categories li,
.widget_archive li,
.widget_recent_entries li,
.widget_pages li,
.widget_meta li,
.widget_nav_menu li {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(200, 204, 206, 0.12);
}

.tip-list li:first-child,
.widget_categories li:first-child,
.widget_archive li:first-child,
.widget_recent_entries li:first-child,
.widget_pages li:first-child,
.widget_meta li:first-child,
.widget_nav_menu li:first-child {
  border-top: 0;
  padding-top: 0;
}

.section-spacer {
  height: 1.5rem;
}

.search-form {
  display: grid;
  gap: 0.75rem;
}

.search-form label {
  display: block;
}

.search-field,
.search-submit {
  min-height: 2.9rem;
  border: 1px solid rgba(200, 204, 206, 0.2);
}

.search-field {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--petronas-white);
}

.search-submit {
  padding: 0.8rem 1.2rem;
  background: var(--petronas-tiffany);
  color: var(--petronas-black);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.empty-state,
.single-post {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.46);
  border: 1px solid rgba(200, 204, 206, 0.12);
  box-shadow: var(--shadow-soft);
}

.single-post__meta {
  margin-bottom: 1rem;
  color: var(--petronas-silver);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.site-footer {
  padding: 0 0 3rem;
}

.site-footer__inner {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(200, 204, 206, 0.12);
  color: var(--petronas-silver);
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
}

.site-footer__inner p {
  margin: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 1rem;
  padding: 0.85rem 1rem;
  overflow: visible;
  background: var(--petronas-black);
  color: var(--petronas-white);
  border: 1px solid var(--petronas-tiffany);
  text-decoration: none;
  white-space: normal;
  z-index: 1000;
}

@media (max-width: 900px) {
  .site-footer__inner,
  .content-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero__topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__masthead {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .hero__masthead .site-nav {
    justify-self: start;
  }

  .hero__masthead .site-nav ul {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 1.25rem), var(--content-width));
  }

  .hero__actions,
  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .hero__panel,
  .posts-panel,
  .sidebar-panel,
  .single-post,
  .empty-state {
    padding: 1rem;
  }
}
