:root {
  color-scheme: light;
  --background: #fdfdfc;
  --surface: #f6f6f3;
  --text: #1b1b18;
  --muted: #72726d;
  --line: #e8e7e2;
  --link: #246fa8;
  --accent: #1b1b18;
  --accent-soft: #f1f1ee;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body[data-accent="dawnary"] {
  --accent: #8f541e;
  --accent-soft: #f7f1e9;
  --link: #8f541e;
}

body[data-accent="filefacet"] {
  --accent: #0969da;
  --accent-soft: #edf6ff;
  --link: #0969da;
}

body[data-accent="assetly"] {
  --accent: #5b58e8;
  --accent-soft: #f2f0ff;
  --link: #514ed7;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
  border-radius: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(100% - 48px, 720px);
  margin-inline: auto;
}

.site-header {
  padding: 36px 0 18px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.875rem;
}

.nav__brand {
  font-weight: 650;
  text-decoration: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.nav__links a:hover {
  color: var(--text);
}

main {
  padding: 64px 0 112px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
  font-weight: 650;
}

h2 {
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 650;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 650;
}

p {
  margin-bottom: 18px;
}

.lede {
  max-width: 36rem;
  color: #44443f;
  font-size: 1.05rem;
}

.section {
  margin-top: 84px;
}

.section + .section {
  padding-top: 0;
}

.text-link {
  color: var(--link);
  font-weight: 550;
}

.home-intro {
  max-width: 39rem;
}

.home-intro__role {
  color: var(--muted);
  font-size: 0.92rem;
}

.work-list,
.writing-list,
.contact-list,
.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.work-item:last-child {
  border-bottom: 1px solid var(--line);
}

.work-item__name {
  font-weight: 650;
}

.work-item__name a {
  text-decoration: none;
}

.work-item__body p {
  margin-bottom: 5px;
  color: #4f4f49;
}

.work-item__meta {
  color: var(--muted);
  font-size: 0.83rem;
}

.writing-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.writing-link span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
}

.contact-list span {
  color: var(--muted);
}

.site-footer {
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.product-main {
  padding-top: 54px;
}

.product-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
  font-size: 0.9rem;
  font-weight: 650;
}

.product-identity img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.product-title {
  max-width: 42rem;
  font-family: ui-serif, Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.22;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.product-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 30px 0 44px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.button:hover {
  filter: brightness(0.94);
}

.product-shot {
  margin: 0;
}

.product-shot img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(28, 28, 24, 0.11);
}

.phone-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  max-width: 610px;
  margin-inline: auto;
}

.phone-pair img {
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(28, 28, 24, 0.12);
}

.phone-pair img:nth-child(2) {
  margin-top: 54px;
}

.product-copy {
  max-width: 39rem;
}

.product-copy h2 {
  font-family: ui-serif, Georgia, "Songti SC", "STSong", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.feature-list {
  border-top: 1px solid var(--line);
}

.feature-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.feature-list strong {
  font-weight: 650;
}

.feature-list span {
  color: #4f4f49;
}

.product-end {
  margin-top: 82px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-end p:last-child {
  margin-bottom: 0;
}

.quiet-page {
  min-height: calc(100vh - 180px);
}

.quiet-page p {
  color: #4f4f49;
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 36px, 720px);
  }

  .site-header {
    padding-top: 24px;
  }

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

  .nav__links {
    gap: 13px;
  }

  main {
    padding-top: 46px;
    padding-bottom: 82px;
  }

  .section {
    margin-top: 66px;
  }

  .work-item,
  .feature-list li {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .writing-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .contact-list li {
    grid-template-columns: 80px 1fr;
  }

  .footer-row {
    flex-direction: column;
    gap: 4px;
  }

  .product-title {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .phone-pair {
    gap: 10px;
  }

  .phone-pair img {
    border-radius: 14px;
  }

  .phone-pair img:nth-child(2) {
    margin-top: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
