:root{
  --ato-accent: #de1116;
  --ato-ink: #282e38;
  --ato-ink-2: #5a5e66;
  --ato-bg: #ffffff;
  --ato-card: #ffffff;
  --ato-border: #e7e7ea;

  --ato-radius: 18px;
  --ato-shadow: 0 12px 30px rgba(0,0,0,.08);
  --ato-max: 1120px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ato-ink);
  background: var(--ato-bg);
  line-height: 1.55;
}

a{ color: var(--ato-accent); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--ato-max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ato-border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 18px 0; /* a bit more room for bigger logo */
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 220px;
}

.brand img{
  height: 66px;   /* 50% larger than 44px */
  width: auto;
  display:block;
}

.brand .title{
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ato-ink);
  font-size: 18px;
}

.nav a{
  color: var(--ato-ink);
  font-weight: 600;
  margin-left: 16px;
}
.nav a:hover{ color: var(--ato-accent); text-decoration:none; }

.hero{
  padding: 44px 0 26px;
}
.hero-card{
  border: 1px solid var(--ato-border);
  border-radius: var(--ato-radius);
  background: var(--ato-card);
  box-shadow: var(--ato-shadow);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

/* gear background */
.hero-card:before{
  content:"";
  position:absolute;
  top: -60px;
  right: -70px;
  width: 340px;
  height: 340px;

  background-image: url("../img/gear.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  opacity: 0.10;
  pointer-events: none;
}

@media (max-width: 768px){
  .hero-card:before{ display:none; }
}

.hero h1{
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.hero p{
  margin: 0 0 18px;
  color: var(--ato-ink-2);
  font-size: 16px;
  max-width: 70ch;
}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ato-accent);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.08);
}
.button:hover{ filter: brightness(0.95); text-decoration:none; }

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 20px 0 44px;
}
@media (min-width: 860px){
  .grid{ grid-template-columns: 1.3fr .7fr; }
}

.card{
  border: 1px solid var(--ato-border);
  border-radius: var(--ato-radius);
  background: var(--ato-card);
  box-shadow: var(--ato-shadow);
  overflow:hidden;
}
.card .pad{ padding: 18px; }

.post-list article{
  padding: 18px;
  border-bottom: 1px solid var(--ato-border);
}
.post-list article:last-child{ border-bottom:0; }

.post-title{
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.meta{ color: var(--ato-ink-2); font-size: 13px; }

.site-footer{
  border-top: 1px solid var(--ato-border);
  padding: 26px 0;
  color: var(--ato-ink-2);
  font-size: 14px;
}


/* ===== Primary Navigation ===== */
.nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
}

.nav li{
  margin: 0;
  padding: 0;
}

.nav a{
  display: inline-block;
  color: var(--ato-ink);
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.nav a:hover{
  color: var(--ato-accent);
  text-decoration: none;
}

/* Active menu item */
.nav .current-menu-item > a{
  color: var(--ato-accent);
}

/* Hover underline animation */
.nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0;
  height:2px;
  background: var(--ato-accent);
  transition: width .2s ease;
}

.nav a:hover::after,
.nav .current-menu-item > a::after{
  width:100%;
}

/* ===== Mobile Hamburger Menu ===== */
.menu-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span{
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ato-ink);
  margin: 5px 0;
  transition: all .3s ease;
}

@media (max-width: 768px){
  .menu-toggle{
    display: block;
  }

  .nav ul{
    position: absolute;
    top: 72px;
    right: 16px;
    flex-direction: column;
    background: var(--ato-card);
    border: 1px solid var(--ato-border);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: var(--ato-shadow);
    display: none;
    min-width: 200px;
  }

  .nav ul.is-open{
    display: flex;
  }

  .nav a{
    padding: 8px 0;
  }
}

/* Align hamburger menu to the far right */
.menu-toggle{
  margin-left: auto;
}

@media (max-width: 768px){
  .header-inner{
    gap: 10px;
  }
}
