@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --bg:#f3f4f6;
  --card:#ffffff;
  --ink:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --radius: 14px;

  /* spacing scale */
  --s1: 6px;
  --s2: 10px;
  --s3: 14px;
  --s4: 18px;
  --s5: 24px;
  --s6: 32px;
  --s7: 44px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'DM Sans', sans-serif;
  line-height:1.6;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

/* ===== Header ===== */
header.navbar{
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.nav-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--s4) var(--s5);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--s4);
}

.brand{
  display:flex;
  align-items:center;
  gap:8px;
}

.brand img{
  display:block;
  height:28px;
  width:auto;
}

/* slightly larger STEPOFF */
.logo-top{
  height:34px;
}

/* slightly smaller STUDIO */
.logo-bottom{
  height:26px;
}

.menu{
  display:flex;
  align-items:center;
  gap: var(--s3);
  flex-wrap:wrap;
}

.menu a{
  font-weight:600;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--ink);
}

.menu a:hover{
  background:#f9fafb;
  text-decoration:none;
}

.menu a.active{
  background:#f3f4f6;
}

/* Mobile: logo on top, nav links stacked below */
@media (max-width: 768px) {
  header.navbar .nav-inner{
    display: block;
    text-align: center;
  }
  header.navbar .brand{
    display: flex;
    justify-content: center;
    margin-bottom: var(--s4);
  }
  header.navbar .menu{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin: 0 auto;
  }
  header.navbar .menu a{
    text-align: center;
  }
}

/* ===== Page wrapper ===== */
.wrap{
  max-width: 1100px;
  margin: var(--s6) auto 0;   /* no bottom margin */
  padding: 0 var(--s5) var(--s7); /* bottom padding creates real space */
}

/* ===== Card ===== */
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--s6);
  margin-top: 64px;
}

/* ===== Typography ===== */
h1,h2,h3{ margin:0; }
h1{
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h2{
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
p{
  margin: 0;
  color: #374151;
}
strong{ color: var(--ink); }

.small{
  font-size: 0.95rem;
  color: var(--muted);
}

.footer{
  margin-top: var(--s5);
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* ===== Vertical rhythm helper ===== */
.stack > * + *{
  margin-top: var(--s4);
}
.stack.tight > * + *{
  margin-top: var(--s3);
}

/* ===== Form layout ===== */
.form-row{
  display:flex;
  gap: var(--s4);
  align-items: center;
  flex-wrap: wrap;
}

.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s4);
  margin-bottom: var(--s4);
}
@media (max-width: 640px) {
  .form-grid{ grid-template-columns: 1fr; }
}

input[type="email"],
input[type="text"]{
  flex: 1;
  min-width: 260px;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  outline: none;
  background: #fff;
}

input[type="email"]:focus,
input[type="text"]:focus{
  border-color: #9ca3af;
}

button{
  background-color: #000000;
  color: #ffffff;
  border: none;
  padding: 0.9rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  min-width: 160px;
  transition: background 0.2s ease;
}

button:hover{
  background-color: #1a1a1a;
}

/* Notice box */
.notice{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: var(--s4);
}

/* Blog post cards */
.post{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: var(--s5);
}

.post .meta{
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: var(--s2);
}

/* Honeypot */
.hidden-field{
  position:absolute;
  left:-9999px;
  top:-9999px;
  height:1px;
  width:1px;
  overflow:hidden;
}

/* ===== Modal popup ===== */
.modal{
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal.modal-visible{
  opacity: 1;
  visibility: visible;
}
.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.modal-content{
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--s6);
  max-width: 420px;
  width: 100%;
}
.modal-title{
  margin: 0 0 var(--s3);
  font-size: 1.25rem;
}
.modal-message{
  margin: 0 0 var(--s5);
  color: var(--muted);
  font-size: 0.95rem;
}
.modal-close{
  min-width: auto;
  padding: 0.6rem 1.25rem;
}