:root {
  --bg: #f6efd8;
  --paper: #fffaf0;
  --ink: #263029;
  --muted: #6f7768;
  --leaf: #4f8a62;
  --leaf-dark: #2f6849;
  --sand: #e7d4a9;
  --clay: #d4874d;
  --water: #9fc9c3;
  --line: #dccba6;
  --shadow: rgba(83, 72, 45, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12px 12px, rgba(79, 138, 98, .16) 2px, transparent 2px) 0 0 / 30px 30px,
    linear-gradient(180deg, #f8f2df, #efe6c9);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
}

.island-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 18px auto 32px;
}

.site-header {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border: 2px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 240, .94);
  box-shadow: 0 12px 26px var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50% 45% 52% 44%;
  background: var(--leaf);
  color: #fff;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .08);
}

nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--leaf-dark);
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 999px;
}

nav a:hover {
  background: #e8f2d8;
}

main {
  margin-top: 18px;
}

.intro {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 26px;
  align-items: end;
  padding: clamp(28px, 6vw, 62px);
  border: 2px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(90deg, rgba(255,250,240,.96), rgba(255,250,240,.7)),
    url("./assets/cozy-banner.png") center / cover;
  box-shadow: 0 18px 38px var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--clay);
  font-weight: 900;
}

h1, h2, h3 {
  line-height: 1.16;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(54px, 9vw, 96px);
}

.lead {
  max-width: 620px;
  color: #525d52;
  font-size: 18px;
  line-height: 1.85;
}

.search-panel {
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 253, 246, .96);
  box-shadow: 0 10px 22px rgba(83, 72, 45, .1);
}

.search-panel label {
  display: block;
  margin-bottom: 10px;
  font-weight: 900;
}

.search-panel div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 10px;
}

input, button {
  font: inherit;
}

input {
  min-width: 0;
  height: 44px;
  border: 2px solid #d7c79f;
  border-radius: 18px;
  padding: 0 14px;
  background: white;
}

button {
  border: 0;
  border-radius: 18px;
  background: var(--leaf);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

button:hover {
  background: var(--leaf-dark);
}

small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.section, .results {
  margin-top: 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 2px solid var(--line);
  border-radius: 34px;
  background: rgba(255,250,240,.95);
  box-shadow: 0 12px 28px var(--shadow);
}

.hidden {
  display: none;
}

.section-title {
  margin-bottom: 20px;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
}

.work-list {
  border-top: 2px solid var(--line);
}

.work-row {
  min-height: 86px;
  display: grid;
  grid-template-columns: 130px minmax(180px, .8fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 8px;
  border-bottom: 2px solid var(--line);
  text-decoration: none;
}

.work-row:hover {
  background: rgba(232, 242, 216, .58);
}

.work-date {
  color: var(--clay);
  font-weight: 900;
}

.work-name {
  font-size: 24px;
  font-weight: 900;
}

.work-desc {
  color: var(--muted);
  line-height: 1.6;
}

.muted-row {
  color: #55594e;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notice-list li {
  padding: 14px 0;
  border-bottom: 1px dashed #d4c49e;
  line-height: 1.7;
}

.notice-list span {
  color: var(--clay);
  font-weight: 900;
  margin-right: 8px;
}

.author-note, .contact-card {
  padding: 20px;
  border: 2px solid #e0cfaa;
  border-radius: 26px;
  background: #fffdf6;
}

.author-note h3 {
  margin: 0 0 10px;
}

.author-note p, .contact p {
  color: #586150;
  line-height: 1.75;
}

.signature {
  font-family: ui-serif, "Songti SC", "STSong", serif;
  font-size: 20px;
  color: var(--leaf-dark) !important;
}

.contact-card {
  display: inline-grid;
  gap: 4px;
  min-width: 260px;
}

.contact-card span {
  color: var(--muted);
  font-weight: 800;
}

.contact-card strong {
  font-size: 28px;
}

.result-title {
  margin: 0 0 12px;
  font-size: 30px;
}

.result-card {
  border: 2px solid var(--line);
  border-radius: 24px;
  background: #fffdf6;
  padding: 16px;
}

.result-card + .result-card {
  margin-top: 12px;
}

.result-card h3 {
  margin: 0 0 8px;
}

.result-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

footer {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #6d745f;
  font-size: 14px;
}

@media (max-width: 880px) {
  .site-header, footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro, .split {
    grid-template-columns: 1fr;
  }

  .work-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .island-shell {
    width: min(100% - 18px, 1120px);
    margin-top: 9px;
  }

  .intro {
    padding: 24px 18px;
  }

  .search-panel div {
    grid-template-columns: 1fr;
  }

  button {
    min-height: 44px;
  }
}
