/* Melret — coming soon. Warm apricot, tiled steps, soft cards. Written by hand. */

:root {
  --bg: #fff8f3;
  --ink: #2a1d16;
  --muted: #8a7263;
  --line: #f0e0d4;
  --card: #ffffff;
  --apricot: #e2703a;
  --apricot-soft: #fdeadd;
  --plum: #7a3f5f;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(120, 70, 40, .09);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--apricot); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 2px; border-radius: 8px; }

.page { max-width: 1000px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding: 24px 0 clamp(28px, 6vw, 56px);
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--ink); font-weight: 700; letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand b {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--apricot); color: #fff;
  font-size: .84rem; font-weight: 800;
}
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--muted); font-size: .88rem; font-weight: 500; }
.top nav a:hover, .top nav a.active { color: var(--apricot); }

/* hero */
.hero { max-width: 42rem; margin-bottom: clamp(34px, 6vw, 60px); }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 22px;
  padding: 6px 15px 6px 12px;
  border-radius: 999px;
  background: var(--apricot-soft); color: #a8481c;
  font-size: .73rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--apricot); }
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 780;
}
.hero h1 span { color: var(--apricot); }
.tagline { margin: 0 0 14px; color: #5b4437; font-size: 1.08rem; }
.intro { margin: 0; color: var(--muted); }

/* three tiles */
.tiles {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: clamp(30px, 5vw, 50px);
}
.tile {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.tile b {
  display: block; margin-bottom: 10px;
  color: var(--apricot);
  font-size: .78rem; font-weight: 800; letter-spacing: .12em;
}
.tile h2 { margin: 0 0 6px; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--muted); font-size: .89rem; }

/* contact + developer */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(22px, 3.4vw, 32px);
  box-shadow: var(--shadow);
}
.card > h2 {
  margin: 0 0 4px;
  font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em;
}
.card .hint { margin: 0 0 20px; color: var(--muted); font-size: .9rem; }

.field { margin-bottom: 15px; }
.field label {
  display: block; margin-bottom: 6px;
  font-size: .8rem; font-weight: 600; color: #4a352a;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: .96rem;
  color: var(--ink);
  background: #fffaf6;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field textarea { resize: vertical; min-height: 116px; }
.field input:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--apricot);
  box-shadow: 0 0 0 4px rgba(226, 112, 58, .14);
}
.field .invalid { border-color: #c0392b; background: #fff6f4; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 50px; padding: 0 24px;
  font: inherit; font-size: .96rem; font-weight: 700;
  color: #fff; background: var(--apricot);
  border: 0; border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(226, 112, 58, .26);
  transition: transform .18s, background .18s, box-shadow .18s;
}
.btn:hover { background: #cf5f2c; transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.status { margin: 13px 0 0; min-height: 1.2em; font-size: .89rem; }
.status.ok { color: #1f7a4d; font-weight: 600; }
.status.err { color: #b23a2f; font-weight: 600; }

.pairs { margin: 0; }
.pairs > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.pairs > div:last-child { border-bottom: 0; padding-bottom: 0; }
.pairs dt { color: var(--muted); font-size: .86rem; }
.pairs dd { margin: 0; text-align: right; font-weight: 600; font-size: .92rem; word-break: break-word; }

/* footer */
.base {
  margin-top: clamp(32px, 5vw, 56px);
  padding: 22px 0 38px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: .84rem;
}
.base nav { display: flex; gap: 20px; }
.base a { color: var(--muted); }
.base a:hover { color: var(--apricot); }
.base p { margin: 0; }

/* legal */
.docpage { max-width: 780px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px) 56px; }
.docpage .top { padding-bottom: 26px; }
.doc {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow);
}
.doc .chip { margin-bottom: 16px; }
.doc h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4.6vw, 2.5rem);
  letter-spacing: -.03em;
}
.stamp {
  display: inline-block; margin: 0 0 28px;
  padding: 5px 13px; border-radius: 999px;
  background: #fbf1e9; color: var(--muted); font-size: .79rem;
}
.doc h2 {
  margin: 30px 0 10px;
  font-size: 1.06rem; font-weight: 700; letter-spacing: -.015em;
  text-transform: none; color: var(--ink);
}
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { color: #57402f; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: .5em; }
.doc-actions {
  margin-top: 38px; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px;
}
.doc-actions .btn { width: auto; min-width: 165px; }
.soft { background: #fbf1e9; color: var(--apricot); box-shadow: none; }
.soft:hover { background: #f6e6da; box-shadow: none; }

@media (max-width: 880px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .pairs > div { flex-direction: column; gap: 2px; }
  .pairs dd { text-align: left; }
  .base { flex-direction: column; }
}
