:root {
  color-scheme: light;
  --ink: #18221c;
  --muted: #647066;
  --paper: #fbfbfa;
  --soft: #f2f3ef;
  --panel: #e9ebe5;
  --line: #d8dbd4;
  --forest: #2f4639;
  --leaf: #6f8d5f;
  --copper: #c66b3d;
  --blue: #2f68a3;
  --shadow: 0 26px 80px rgba(24, 34, 28, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

code {
  background: rgba(47, 70, 57, 0.08);
  border: 1px solid rgba(47, 70, 57, 0.12);
  border-radius: 6px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
  padding: 0.08em 0.36em;
}

.page {
  min-height: 100vh;
}

.nav {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(251, 251, 250, 0.88);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  border-radius: 12px;
  height: 38px;
  width: 38px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  font-weight: 750;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  align-items: center;
  background: var(--paper) url("assets/fumiori-hero-writing.jpg") center / cover no-repeat;
  display: flex;
  min-height: clamp(560px, 78vh, 760px);
  padding: clamp(52px, 7vw, 92px) clamp(20px, 5vw, 72px);
}

.hero-copy {
  align-self: center;
  max-width: 720px;
  min-width: 0;
}

h1 {
  font-size: clamp(36px, 4.9vw, 66px);
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0;
  max-width: min(760px, calc(100vw - 40px));
  overflow-wrap: normal;
  word-break: keep-all;
}

.mobile-break {
  display: none;
}

.lead {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.82;
  margin: 28px 0;
  max-width: 700px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border: 1px solid var(--forest);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--forest);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--forest);
}

.screenshot,
.feature-image {
  background: #111713;
  border: 1px solid rgba(24, 34, 28, 0.16);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin: 0;
  min-width: 0;
  overflow: hidden;
}

.screenshot img,
.feature-image img {
  display: block;
  max-width: 100%;
  width: 100%;
}

.section {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 940px;
  min-width: 0;
}

.section-heading h2 {
  font-size: clamp(30px, 4.5vw, 58px);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 18px;
  max-width: min(940px, calc(100vw - 40px));
  overflow-wrap: anywhere;
  word-break: break-all;
}

.section-heading p,
.feature-copy p,
.feature-copy li,
.workflow p,
.release-panel p,
.footer {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.concept {
  background: var(--soft);
}

.feature-tour {
  display: grid;
  gap: clamp(52px, 7vw, 92px);
}

.overview-showcase {
  display: grid;
  gap: clamp(24px, 4vw, 42px);
}

.overview-copy {
  max-width: 980px;
  min-width: 0;
}

.overview-copy h3 {
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.1;
  margin: 0 0 18px;
  max-width: 1060px;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.overview-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
  margin: 0;
  max-width: 980px;
}

.overview-image {
  background: #fbfbfa;
  border: 1px solid rgba(24, 34, 28, 0.14);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin: 0;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

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

.feature-row {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.22fr);
}

.feature-row.reverse {
  grid-template-columns: minmax(420px, 1.22fr) minmax(280px, 0.78fr);
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-row.reverse .feature-image {
  order: 1;
}

.feature-row.highlight {
  background: #eef4eb;
  border: 1px solid #d9e3d3;
  border-radius: 18px;
  padding: clamp(18px, 3vw, 30px);
}

.feature-number {
  color: var(--copper);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 14px;
}

.feature-copy h3 {
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.12;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.feature-copy {
  min-width: 0;
}

.feature-copy p {
  margin: 0;
}

.feature-copy ul {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding-left: 1.2em;
}

.feature-copy li::marker {
  color: var(--leaf);
}

.feature-image {
  aspect-ratio: 16 / 10;
}

.feature-image.portrait {
  aspect-ratio: 4 / 5;
}

.feature-image.wide {
  aspect-ratio: 16 / 4.5;
}

.feature-image.focus-mode {
  aspect-ratio: 3 / 2;
}

.feature-image.tall {
  aspect-ratio: 7 / 10;
}

.feature-image.contain {
  background: #fbfbfa;
}

.feature-image img {
  height: 100%;
  object-fit: cover;
}

.feature-image.contain img {
  object-fit: contain;
}

.feature-image.focus-mode img {
  object-fit: cover;
  object-position: 50% 50%;
}

.focus-left img {
  object-position: 0% 52%;
}

.focus-toolbar img,
.focus-top img {
  object-position: 48% 8%;
}

.focus-editor img {
  object-position: 68% 42%;
}

.workflow-section {
  background: var(--forest);
  color: #fff;
}

.workflow-section .section-heading p {
  color: rgba(255, 255, 255, 0.74);
}

.workflow {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.workflow article {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  padding-top: 18px;
}

.workflow span {
  color: #b6cf9a;
  display: block;
  font-weight: 900;
  margin-bottom: 22px;
}

.workflow h3 {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 10px;
}

.workflow p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  margin: 0;
}

.download-section {
  background: var(--soft);
}

.release-panel {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin-top: 30px;
  padding: 24px;
}

.release-panel strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

.release-panel p {
  margin: 0;
}

.footer {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 72px);
}

@media (max-width: 1040px) {
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-image {
    order: initial;
  }

  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page,
  .nav,
  .hero,
  .section,
  .footer {
    max-width: 100vw;
    width: 100%;
  }

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

  .nav-links {
    gap: 10px 12px;
    font-size: 12px;
    line-height: 1.35;
  }

  .hero {
    background-position: 38% center;
    display: block;
    min-height: 620px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 42px;
  }

  .hero-copy,
  .section-heading,
  .feature-copy {
    max-width: 100%;
    width: 100%;
  }

  .screenshot,
  .feature-image,
  .overview-copy,
  .overview-image {
    max-width: 100%;
    width: 100%;
  }

  h1 {
    font-size: 34px;
    max-width: 100%;
    word-break: break-all;
  }

  .mobile-break {
    display: inline;
  }

  .section-heading h2,
  .overview-copy h3,
  .feature-copy h3 {
    font-size: 28px;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .lead,
  .section-heading p,
  .feature-copy p,
  .feature-copy li,
  .workflow p,
  .release-panel p,
  .footer {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .lead {
    font-size: 16px;
  }

  .feature-row.highlight {
    border-radius: 12px;
    margin-left: -8px;
    margin-right: -8px;
    padding: 16px;
  }

  .feature-image {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  .workflow {
    grid-template-columns: 1fr;
  }

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