@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&family=Tektur:wght@800&display=swap');

:root {
  color-scheme: light;
  --paper: #f5f7fa;
  --paper-deep: #e8eef5;
  --ink: #1f3047;
  --muted: #617186;
  --blue: #24466d;
  --accent: #397cc4;
  --line: #d8e1ea;
  --sans: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  --serif: 'DM Serif Display', Georgia, serif;
  --display: 'Tektur', 'Arial Black', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.container { width: min(100% - 64px, 1180px); margin-inline: auto; }
.accent, .brand-dot { color: var(--accent); }

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  z-index: 20;
  padding: 12px 18px;
  background: white;
  color: var(--ink);
}
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); }
.header-inner { height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 25px; font-weight: 700; letter-spacing: -.075em; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: white; font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: -.08em; }
.brand-mark span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 36px); font-size: 13px; font-weight: 700; }
.site-nav a { position: relative; padding-block: 10px; transition: color .2s ease; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current='page']::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); }
.menu-toggle { display: none; }

.hero { min-height: 645px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 42px; padding-block: 78px 76px; }
.hero-copy { position: relative; z-index: 1; isolation: isolate; }
.hero-copy::before { content: ''; position: absolute; z-index: -1; top: -24px; left: -25px; width: min(100%, 470px); height: 250px; background: #e4effa; clip-path: polygon(0 22%, 70% 0, 100% 30%, 88% 100%, 13% 89%); }
.hero-copy::after { content: ''; position: absolute; z-index: -1; top: -55px; right: 4%; width: 115px; height: 115px; border: 2px solid #bdd5ed; transform: rotate(18deg); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow-line { width: 26px; height: 1px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 400; }
.hero h1 { margin: 28px 0 26px; font-family: var(--display); font-size: clamp(42px, 4.8vw, 68px); font-weight: 800; line-height: 1.12; letter-spacing: -.055em; text-transform: uppercase; }
.hero h1 em { color: var(--accent); font-style: normal; font-weight: 800; }
.hero-visual { --cut: 74px; position: relative; width: 100%; height: 498px; isolation: isolate; }
.hero-visual::before { content: ''; position: absolute; z-index: -1; inset: 18px -18px -18px 18px; background: #a7c9eb; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.hero-art { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }

.blog-section { padding-block: 84px 114px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
.section-heading h2 { margin: 17px 0 0; font-family: var(--serif); font-size: clamp(42px, 4.2vw, 61px); line-height: 1; letter-spacing: -.025em; }
.section-heading > p { max-width: 290px; margin: 0 0 4px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.blog-empty { grid-column: 1 / -1; margin: 0; padding: 47px 28px; border: 1px dashed #a9c4df; background: #eaf2f9; color: var(--muted); font-size: 14px; text-align: center; }
.post-card { display: flex; flex-direction: column; min-height: 235px; padding: 28px; border: 1px solid var(--line); background: #fbfcfe; }
.post-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.post-type { display: inline-block; padding: 7px 10px; background: #e3eef8; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.post-card h3 { margin: 27px 0 11px; font-family: var(--serif); font-size: 29px; line-height: 1.1; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.blog-page-intro { padding-block: 96px 85px; }
.blog-page-intro h1 { margin: 19px 0 19px; font-family: var(--serif); font-size: clamp(62px, 7vw, 100px); line-height: 1; }
.blog-page-intro p { max-width: 540px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.blog-page-list { min-height: 380px; }
.rss-simple { min-height: calc(100vh - 196px); padding-block: 110px 120px; }
.rss-simple h1 { margin-bottom: 28px; font-family: var(--serif); font-size: clamp(28px, 4vw, 52px); line-height: 1.1; }
.rss-list { max-width: 780px; }
.rss-empty, .rss-list > p { margin: 0; color: var(--muted); font-size: 16px; }
.rss-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.rss-item:first-child { border-top: 1px solid var(--line); }
.rss-item h2 { margin: 0 0 9px; font-family: var(--serif); font-size: clamp(21px, 2.4vw, 27px); line-height: 1.3; overflow-wrap: anywhere; }
.rss-item h2 a:hover { color: var(--accent); }
.rss-item-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12px; }
.article-shell { min-height: 65vh; padding-block: 44px 120px; }
.article-shell > article { max-width: 780px; margin: 65px auto 0; }
.article-header { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin: 22px 0 19px; font-family: var(--serif); font-size: clamp(48px, 6vw, 78px); line-height: 1.04; }
.article-header time { color: var(--muted); font-size: 12px; }
.article-header p { margin: 24px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.article-content { padding-top: 32px; }
.article-content p { margin-bottom: 25px; font-size: 16px; line-height: 1.9; }
.site-footer { background: #172d49; color: #eaf2fa; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 102px; }
.footer-brand { font-size: 23px; }
.footer-inner > span { color: #aebfd2; font-size: 11px; }

.fuel-simple { min-height: calc(100vh - 196px); padding-block: 110px 120px; }
.fuel-simple h1 { margin-bottom: 18px; font-family: var(--serif); font-size: clamp(28px, 4vw, 52px); line-height: 1.1; white-space: nowrap; }
.fuel-simple p { margin: 0; color: var(--muted); font-size: 16px; }
.back-link { display: inline-flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.back-link:hover { color: var(--accent); }
.back-link span { font-size: 19px; font-weight: 400; }

.admin-page { min-height: 100vh; background: #eaf2f9; }
.admin-shell { width: min(100% - 36px, 760px); margin: 0 auto; padding-block: 45px 80px; }
.admin-panel { margin-top: 55px; padding: clamp(25px, 5vw, 52px); border: 1px solid var(--line); background: #fbfcfe; box-shadow: 0 18px 50px rgba(31,48,71,.08); }
.admin-panel h1 { margin: 16px 0 30px; font-family: var(--serif); font-size: clamp(36px, 5vw, 54px); line-height: 1.05; }
.admin-panel form { display: flex; flex-direction: column; align-items: stretch; }
.admin-panel label { display: block; margin: 19px 0 8px; font-size: 12px; font-weight: 700; }
.admin-panel input:not([type='hidden']), .admin-panel select, .admin-panel textarea { width: 100%; padding: 13px 14px; border: 1px solid #b9c9d9; border-radius: 2px; background: white; color: var(--ink); font: inherit; font-size: 14px; }
.admin-panel textarea { resize: vertical; line-height: 1.6; }
.admin-panel button { align-self: flex-start; margin-top: 28px; padding: 13px 20px; border: 0; background: var(--blue); color: white; font-size: 12px; font-weight: 700; cursor: pointer; }
.admin-panel button:hover { background: #35608d; }
.admin-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.admin-heading h1 { margin-bottom: 22px; }
.admin-heading .admin-logout { margin: 0; padding: 8px 0; background: transparent; color: var(--muted); text-decoration: underline; }
.admin-heading .admin-logout:hover { background: transparent; color: var(--blue); }
.admin-error, .admin-success { padding: 15px 18px; font-size: 13px; line-height: 1.6; }
.admin-error { background: #fce9e7; color: #8b322e; }
.admin-success { background: #e3f1ea; color: #245b3d; }
.admin-success a { text-decoration: underline; }
.admin-hint { margin: 9px 0 0; color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
  .hero { gap: 28px; }
  .hero h1 { font-size: clamp(38px, 5.2vw, 54px); }
}

@media (max-width: 700px) {
  .container { width: min(100% - 36px, 1180px); }
  .header-inner { height: 74px; }
  .brand { font-size: 22px; }
  .brand-mark { width: 34px; height: 34px; font-size: 22px; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
  .menu-toggle span { width: 18px; height: 2px; background: var(--ink); }
  .site-nav { display: none; position: absolute; top: 73px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 18px 18px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 15px 24px rgba(31,48,71,.08); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 15px 5px; }
  .site-nav a[aria-current='page']::after { bottom: 8px; right: auto; width: 37px; }
  .hero { grid-template-columns: 1fr; gap: 45px; padding-block: 65px; }
  .hero h1 { font-size: clamp(32px, 7.7vw, 56px); }
  .hero-visual { --cut: 60px; height: 390px; max-width: 520px; justify-self: center; }
  .hero-copy::before { left: 0; }
  .blog-section { padding-block: 68px 78px; }
  .section-heading { align-items: start; flex-direction: column; gap: 18px; margin-bottom: 30px; }
  .blog-grid { grid-template-columns: 1fr; gap: 18px; }
  .blog-page-intro { padding-block: 72px 65px; }
  .rss-simple { min-height: calc(100vh - 176px); padding-block: 85px 100px; }
  .post-card { min-height: 0; }
  .article-shell > article { margin-top: 46px; }
  .fuel-simple { min-height: calc(100vh - 176px); padding-block: 85px 100px; }
  .footer-inner { flex-wrap: wrap; justify-content: space-between; padding-block: 27px; }
  .footer-inner > span:nth-child(2) { display: none; }
}

@media (max-width: 470px) {
  .hero-visual { --cut: 42px; height: 320px; }
  .hero-copy::after { right: 0; width: 75px; height: 75px; }
  .post-card { padding: 23px; }
  .admin-row { grid-template-columns: 1fr; gap: 0; }
  .admin-heading { flex-direction: column; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
