/* Poiein – main stylesheet
   Brand colors: Ink #1F1D1C · Umber #6C5842 · Bronze #A47B3A · Gold #C99529 · Paper #F7F3EA · Stone #DDD3C0 */
/* ========== 1. DESIGN TOKENS (colors, theme) ========== */
:root {
  --bg: #F7F3EA;
  --fg: #1F1D1C;
  --mu: #6C5842;
  --ln: #DDD3C0;
  --cd: #fff;
  --ac: #A47B3A;
  --r1: #C99529;
  --r2: #A47B3A;
  --r3: #6C5842;
  --r4: #1F1D1C;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px)
}

@media(prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --bg: #141312;
    --fg: #F7F3EA;
    --mu: #C9B89B;
    --ln: #34302B;
    --cd: #1D1B19;
    --ac: #C99529;
    --r4: #F7F3EA
  }
}

:root[data-theme="dark"] {
  --bg: #141312;
  --fg: #F7F3EA;
  --mu: #C9B89B;
  --ln: #34302B;
  --cd: #1D1B19;
  --ac: #C99529;
  --r4: #F7F3EA
}

/* ========== 2. BASE ========== */
html {
  scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px));
  scroll-behavior: smooth;
  height: 100%
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 Inter, system-ui, sans-serif
}

h1,
h2,
h3,
.wm {
  font-family: Sora, Inter, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 0;
  line-height: 1.12
}

a {
  color: inherit
}

.mk {
  display: block;
  flex: none
}

.dk {
  --r4: #F7F3EA
}

/* ========== 3. HEADER & NAVIGATION ========== */
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 9;
  background: var(--bg);
  border-bottom: 1px solid var(--ln)
}

.hd {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px
}

.lg {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto
}

.wm {
  font-size: 22px
}

nav {
  display: flex;
  gap: 22px;
  font-size: 15px
}

nav a {
  text-decoration: none;
  color: var(--mu)
}

nav a:hover {
  color: var(--fg)
}

/* ========== 4. BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  background: #C99529;
  color: #1F1D1C;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid #C99529;
  cursor: pointer;
  font-family: inherit
}

.btn.o {
  background: transparent;
  color: #F7F3EA;
  border-color: #6C5842
}

.btn.s {
  padding: 9px 18px;
  font-size: 14px
}

/* ========== 5. HERO ========== */
.hero {
  background: #1F1D1C;
  color: #F7F3EA;
  position: relative;
  overflow: hidden
}

.hero .mk.bg {
  position: absolute;
  right: -18vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(90vw, 760px);
  height: min(90vw, 760px);
  opacity: .28
}

.hi {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px 20px 104px
}

.hero h1 {
  font-size: clamp(42px, 8vw, 84px);
  max-width: 11em
}

.hero p {
  font-size: 20px;
  color: #DDD3C0;
  max-width: 30em;
  margin: 22px 0 32px
}

/* ========== 6. SECTIONS (shared) ========== */
.eb {
  font: 600 13px Sora, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 14px
}

.hero .eb {
  color: #C99529
}

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

section.s {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 20px
}

section h2 {
  font-size: clamp(30px, 5vw, 44px);
  margin-bottom: 14px
}

.lead {
  color: var(--mu);
  max-width: 38em;
  margin: 0 0 36px
}

/* ========== 7. CARDS & GRIDS ========== */
.g {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))
}

.c {
  background: var(--cd);
  border: 1px solid var(--ln);
  border-radius: 14px;
  padding: 26px
}

.c h3 {
  font-size: 21px;
  margin-bottom: 10px
}

.c p {
  margin: 0 0 12px;
  color: var(--mu)
}

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

.c li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 15.5px
}

.c li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C99529
}

.n {
  font: 600 14px Sora, sans-serif;
  color: var(--ac);
  letter-spacing: .1em;
  margin-bottom: 10px
}

.band {
  background: var(--cd);
  border-block: 1px solid var(--ln)
}

/* ========== 8. QUOTE FORM & CONTACT ========== */
form {
  display: grid;
  gap: 14px;
  max-width: 560px
}

label {
  font-size: 14px;
  font-weight: 600;
  display: grid;
  gap: 6px
}

input,
select,
textarea {
  font: inherit;
  color: var(--fg);
  background: var(--cd);
  border: 1.5px solid var(--ln);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #C99529;
  outline-offset: 1px
}

textarea {
  min-height: 130px;
  resize: vertical
}

.ct {
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start
}

.note {
  font-size: 14px;
  color: var(--mu)
}

/* ========== 9. FOOTER ========== */
footer {
  background: #1F1D1C;
  color: #DDD3C0;
  font-size: 14px
}

.fi {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap
}

.fi .wm {
  color: #F7F3EA;
  font-size: 20px
}

.fi span {
  margin-left: auto
}

/* ========== 10. RESPONSIVE ========== */
@media(max-width:640px) {
  nav {
    display: none
  }

  body {
    font-size: 16px
  }

  section.s {
    padding: 60px 20px
  }

  .hi {
    padding: 70px 20px 80px
  }
}

footer a {
  color: #F7F3EA
}

