:root {
  --black: #000000;
  --dark: #0a0a0a;
  --card: #111111;
  --border: #1a1a1a;
  --gray-1: #888888;
  --gray-2: #555555;
  --gray-3: #333333;
  --white: #ffffff;
  --off-white: #e5e5e5;
  --display: 'Manrope', sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --max: 1100px;
  --narrow: 720px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--display);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: #fff; color: #000; }

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  z-index: 100;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-logo img { height: 40px; width: auto; }

.nav-right {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.nav-right a { color: var(--gray-1); transition: color 0.2s; }
.nav-right a:hover { color: var(--white); }

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.nav-links a { color: var(--gray-1); transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }


.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 24px; height: 18px; position: relative;
}

.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--white); position: absolute; left: 0;
}

.nav-toggle span:first-child { top: 0; }
.nav-toggle span:last-child { bottom: 0; }

.kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-1);
  margin-bottom: 1rem;
}

.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px clamp(1.5rem, 4vw, 3rem) 2rem;
  max-width: var(--narrow);
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-sub {
  font-size: 1rem;
  color: var(--gray-1);
  line-height: 1.9;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.cta {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.9rem 2.2rem;
  border-radius: 4px;
  background: var(--white);
  color: var(--black);
  transition: all 0.25s;
  border: 1px solid var(--white);
}

.cta:hover { background: transparent; color: var(--white); }

.cta-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--gray-3);
}

.cta-ghost:hover { border-color: var(--white); }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--gray-1);
  max-width: 520px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  text-align: left;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.card:hover { border-color: var(--gray-3); transform: translateY(-3px); }
.card-inner { padding: 2rem; }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.card p { font-size: 0.9rem; color: var(--gray-1); line-height: 1.7; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  text-align: left;
}

.blog-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.blog-card:hover { border-color: var(--gray-3); transform: translateY(-3px); }

.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.blog-card-body { padding: 1.5rem; }

.blog-card h4 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.blog-card p {
  font-size: 0.85rem;
  color: var(--gray-1);
  line-height: 1.7;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--gray-3);
  border-radius: 4px;
  transition: border-color 0.2s;
}

.blog-card:hover .read-more { border-color: var(--white); }

.blog-date {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: var(--gray-2);
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--gray-2);
  padding: 3rem;
  font-size: 0.95rem;
}

.section-about { text-align: center; }

.about-tagline {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gray-1);
  margin-bottom: 2.5rem;
}

.about-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.about-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-1);
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--gray-3);
  border-radius: 4px;
  transition: all 0.2s;
}

.about-links a:hover { color: var(--white); border-color: var(--white); }

.about-body { max-width: var(--narrow); margin: 0 auto; }
.about-text { text-align: left; }

.about-text h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--gray-1);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-text strong { color: var(--off-white); }

.section-cta { padding: 3rem clamp(1.5rem, 4vw, 3rem) 4rem; }

.cta-box { text-align: center; max-width: 600px; margin: 0 auto; }

.cta-logo { height: 60px; width: auto; margin: 0 auto 2rem; }

.cta-box h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}

.cta-box > p {
  font-size: 0.95rem;
  color: var(--gray-1);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cta-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.footer {
  border-top: 1px solid var(--border);
  padding: 4rem clamp(1.5rem, 4vw, 3rem);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 0;
  align-items: stretch;
}

.footer-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.footer-left img.footer-photo {
  width: 306px;
  height: 306px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  filter: grayscale(100%);
  transition: filter 0.3s;
}
.footer-left img.footer-photo:hover { filter: grayscale(0%); }

.footer-left .footer-cta-text {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--off-white);
}

.footer-divider {
  width: 1px;
  background: var(--border);
  margin: 0 2rem;
}

.footer-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.footer-logo { height: 40px; width: auto; margin: 0 auto 1.25rem; }
.footer-tagline { font-size: 0.9rem; color: var(--gray-1); margin-bottom: 1.5rem; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.footer-links a { font-size: 0.85rem; color: var(--gray-1); font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

.footer-email { border-top: 1px solid var(--border); padding-top: 2rem; margin-bottom: 2rem; }
.footer-email > p:first-child { font-size: 0.9rem; color: var(--off-white); font-weight: 600; margin-bottom: 1rem; }

.email-row { display: flex; gap: 0.5rem; max-width: 400px; margin: 0 auto; }

.email-row input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--white);
  font-family: var(--display);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.email-row input:focus { border-color: var(--gray-2); }
.email-row input::placeholder { color: var(--gray-2); }

.email-row button {
  padding: 0.75rem 1.5rem;
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 4px;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.email-row button:hover { opacity: 0.85; }

.sub-msg { font-size: 0.8rem; margin-top: 0.5rem; height: 1.2em; }
.sub-msg.error { color: #e74c3c; }
.sub-msg.success { color: var(--gray-1); }
.copyright { font-size: 0.75rem; color: var(--gray-2); }

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px clamp(1.5rem, 4vw, 3rem) 3rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.page-hero p { font-size: 0.95rem; color: var(--gray-1); max-width: 520px; margin: 0 auto; line-height: 1.7; }

.page-content { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3rem) 5rem; }

.post-hero { max-width: var(--narrow); margin: 0 auto; padding: 140px clamp(1.5rem, 4vw, 3rem) 2rem; }

.post-back { font-size: 0.8rem; color: var(--gray-2); margin-bottom: 2rem; display: inline-block; transition: color 0.2s; }
.post-back:hover { color: var(--white); }

.post-hero .post-date { font-size: 0.75rem; color: var(--gray-2); letter-spacing: 0.05em; margin-bottom: 0.75rem; }

.post-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.post-hero .post-excerpt { font-size: 1.1rem; color: var(--gray-1); line-height: 1.8; }

.post-body { max-width: var(--narrow); margin: 0 auto; padding: 2rem clamp(1.5rem, 4vw, 3rem) 5rem; }

.post-body h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; margin: 2.5rem 0 1rem; }
.post-body h3 { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.post-body p { color: var(--gray-1); margin-bottom: 1.25rem; line-height: 1.85; }
.post-body ul, .post-body ol { color: var(--gray-1); padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-body li { margin-bottom: 0.5rem; line-height: 1.7; }

.post-body blockquote {
  border-left: 3px solid var(--gray-3);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--card);
  border-radius: 0 8px 8px 0;
  color: var(--gray-1);
  font-style: italic;
}

.post-body code { background: var(--card); padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.9rem; color: var(--off-white); }
.post-body strong { color: var(--white); font-weight: 600; }

.admin-wrap { max-width: 800px; margin: 0 auto; padding: 120px clamp(1.5rem, 4vw, 3rem) 3rem; }

.admin-login { max-width: 360px; margin: 0 auto; text-align: center; }

.admin-login input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--white);
  font-family: var(--display);
  font-size: 0.9rem;
  outline: none;
  margin-bottom: 1rem;
}

.admin-login input:focus { border-color: var(--gray-2); }
.admin-panel { animation: fadeUp 0.4s ease both; }

.editor-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.editor-box input,
.editor-box textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--white);
  font-family: var(--display);
  font-size: 0.9rem;
  outline: none;
  margin-bottom: 0.75rem;
}

.editor-box input:focus, .editor-box textarea:focus { border-color: var(--gray-2); }

.editor-box textarea {
  min-height: 500px;
  resize: vertical;
  line-height: 1.7;
  font-family: var(--serif);
}

.editor-box input.title-field { font-size: 1.1rem; font-weight: 600; }

.admin-row { display: flex; gap: 0.5rem; justify-content: flex-end; flex-wrap: wrap; }

.btn-sm {
  font-family: var(--display);
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--gray-1);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sm:hover { border-color: var(--gray-1); color: var(--white); }
.btn-sm.danger:hover { border-color: #e74c3c; color: #e74c3c; }
.btn-sm.primary { background: var(--white); color: var(--black); border-color: var(--white); font-weight: 600; }
.btn-sm.primary:hover { opacity: 0.85; }

.post-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.post-row h4 { font-size: 0.95rem; font-weight: 500; }
.post-row span { font-size: 0.75rem; color: var(--gray-2); }
.post-row-actions { display: flex; gap: 0.5rem; }
.hint { font-size: 0.72rem; color: var(--gray-2); margin-bottom: 0.75rem; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .nav-right {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--black);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    text-align: center;
  }
  .nav-right.open { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--black);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    text-align: center;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero h1 br { display: none; }
  .hero-sub br { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .cta-links { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; }
  .footer-divider { width: 100%; height: 1px; margin: 1rem 0; }
  .footer-left, .footer-right { padding: 1.5rem 0; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}