:root {
  --bg: #f6f3ec;
  --paper: #fffdfb;
  --ink: #24312e;
  --muted: #5d6b67;
  --line: #e4dcd2;
  --sage: #2f6b5c;
  --sage-deep: #245448;
  --clay: #c46b45;
  --sand: #e7d3a1;
  --sky: #d5e4ea;
  --shadow: 0 16px 40px rgba(36, 49, 46, 0.06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(213, 228, 234, 0.7), transparent 36%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
}

a { color: var(--sage-deep); }

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.site-header,
main,
.site-footer {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 12px;
}

.mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--sage);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.4rem;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a,
.site-nav button {
  color: var(--ink);
  font: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav button:hover { color: var(--sage-deep); }

main { padding: 28px 0 72px; }

.site-footer {
  padding-bottom: 36px;
  color: var(--muted);
  font-size: 0.92rem;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--sage-deep);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}

.lede,
.hint { color: var(--muted); }

.hero { max-width: 36rem; margin-bottom: 56px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--sage);
  color: white;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: var(--sage-deep); }

.button-quiet {
  background: transparent;
  color: var(--sage-deep);
  box-shadow: inset 0 0 0 1px var(--sage);
}

.featured,
.page-head { margin-bottom: 36px; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.work-panel {
  display: flex;
  align-items: flex-end;
  min-height: 180px;
  padding: 16px;
  color: var(--ink);
  font-family: var(--serif);
}

.detail-panel { min-height: 280px; border-radius: 22px; margin: 18px 0 8px; }

.tone-sage { background: linear-gradient(160deg, #e7f2ee, #b7d4c8); }
.tone-clay { background: linear-gradient(160deg, #f8efe8, #efc3ae); }
.tone-sand { background: linear-gradient(160deg, #fbf6ea, #ead7a4); }

.work-copy { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.work-title { font-family: var(--serif); font-size: 1.35rem; }
.work-summary { color: var(--muted); }

.detail { max-width: 40rem; }
.narrow { max-width: 28rem; }

.stack { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 0.92rem; }

input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

input:focus {
  outline: 2px solid #c5ddd4;
  border-color: var(--sage);
}

.form-error { color: #9a4030; }

@media (max-width: 640px) {
  .site-header { align-items: flex-start; }
  .hero { max-width: none; }
}
