:root{font-family:system-ui,sans-serif;color:#35271f;background:#faf6ef;line-height:1.55}
*{box-sizing:border-box}
body{margin:0}
.wrap{width:min(100% - 3rem, 67rem);margin-inline:auto}
header{background:#f6efe5;border-bottom:1px solid #e7d9ca}
.brand{padding-block:1.1rem;font-size:.9rem;font-weight:650;letter-spacing:.22em}
.hero{background:#3e281d;color:#fff8ea;position:relative;isolation:isolate}
.hero::before,.hero::after{content:"";position:absolute;inset:0;pointer-events:none}
.hero::before{background:url("hero.webp") center 54%/cover;filter:brightness(1.23);z-index:-2}
.hero::after{background:linear-gradient(90deg,#2c1b13bd,#3220178c min(49%,36rem),transparent min(90%,59rem));z-index:-1}
.hero-copy{text-shadow:0 1px 4px #2c1b13aa}
@media(max-width:700px){.hero::after{background:linear-gradient(100deg,#2c1b13c4,#32201780)}}
.hero .wrap{padding-block:clamp(3rem,8vw,7rem)}
h1,h2,h3{font-family:Georgia,serif;font-weight:400;line-height:1.1;margin:0}
h1{font-size:clamp(2.75rem,7vw,5.1rem);letter-spacing:-.04em}
.hero-copy{width:fit-content;max-width:100%}
.hero-copy p{contain:inline-size;font-size:1.07rem;margin:1.15rem 0 1.6rem;color:#fff3e1}
h2{font-size:2.15rem}
h3{font-size:1.55rem;overflow-wrap:anywhere}
button{min-height:46px;padding:.65rem 1.1rem;border:1px solid transparent;border-radius:.4rem;background:#694631;color:#fff9f2;font:inherit;font-weight:600;cursor:pointer}
button:hover{background:#533523}
.hero button{background:#f4e4cd;color:#3d2a20}
.hero button:hover{background:#fff5e8}
.secondary{background:transparent;color:#5a3c2b;border-color:#b9a28d}
.secondary:hover{background:#eadbc9}
:focus-visible{outline:3px solid #a2673d;outline-offset:3px}
.guide{background:#f4ebe0;border-bottom:1px solid #e3d4c3;padding-block:clamp(2rem,5vw,3.25rem)}
.guide-steps{max-width:68ch;margin:1.35rem 0 0;padding-inline-start:1.5rem}
.guide-steps li{padding-inline-start:.45rem}
.guide-steps li+li{margin-top:1.25rem}
.guide-steps li::marker,.guide-steps dt{font-weight:650}
.guide-steps p,.guide-steps dl{margin:.45rem 0 0}
.guide-steps dd{margin:0 0 .55rem}
.content{padding-block:2.35rem 1.5rem}
.empty,.card{background:#fffbf5;border:1px solid #e3d4c3;border-radius:.65rem;padding:1.4rem}
.empty p{margin:0 0 .5rem}
.empty button{margin-top:.6rem}
.places{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr));gap:1rem}
.card{display:flex;flex-direction:column;align-items:start}
.card dl{margin:1rem 0;flex:1}
.card dt{font-size:.9rem;font-weight:650}
.card dd{margin:.2rem 0 .85rem;white-space:pre-wrap;overflow-wrap:anywhere}
.privacy{font-size:.875rem;color:#6c5345}
dialog{width:min(100% - 1.5rem,33rem);max-height:calc(100% - 1.5rem);overflow:auto;border:1px solid #e3d4c3;border-radius:.75rem;background:#fffbf5;color:inherit;padding:clamp(1rem,5vw,2rem)}
dialog::backdrop{background:#26170fb8}
form label{display:block;font-weight:650;margin:1rem 0 .3rem}
input,textarea{width:100%;border:1px solid #a9917d;background:#fffdf9;color:inherit;border-radius:.35rem;padding:.6rem .75rem;font:inherit}
textarea{resize:vertical}
.actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1rem}
#error{color:#8a2e20}
@media(max-width:480px){.wrap{width:calc(100% - 2rem)}.hero::before{background-position:62% center}.content{padding-top:1.65rem}}

.card-actions{display:flex;flex-wrap:wrap;gap:.6rem}
.note-history{width:100%;padding:.7rem 0;margin:0 0 .85rem;border-block:1px solid #e3d4c3}
.note-history summary{font-weight:600;cursor:pointer}
.note-history time{display:block;margin-top:.9rem;font-size:.9rem;color:#6c5345}
.note-history dl{margin:.35rem 0 0}
#post-place{font-weight:600;overflow-wrap:anywhere}

#unlock{margin-top:.85rem}
#lock-error{color:#8a2e20}

.card {
  --place-accent: #79563e;
  --place-tint: #f0e4d7;
  border-inline-start: 4px solid var(--place-accent);
}
.card h3 { display:flex; align-items:center; gap:.65rem; }
.card h3 > span:last-child { min-width:0; }
.place-symbol {
  display:grid; place-items:center; flex:0 0 2rem; height:2rem;
  border-radius:50%; background:var(--place-tint); color:var(--place-accent);
}
.place-visit + .place-visit { border-top:1px solid #e6d8c9; }
#place-style, #place-filter {
  width:100%; min-height:46px; border:1px solid #a9917d; border-radius:.35rem;
  background:#fffdf9; color:inherit; padding:.6rem .75rem; font:inherit;
}

.card[data-appearance="clay"] { --place-accent: #a83c46; --place-tint: #f9e6e7; }
.card[data-appearance="honey"] { --place-accent: #866000; --place-tint: #fff0c6; }
.card[data-appearance="study"] { --place-accent: #704499; --place-tint: #f0e5fa; }
.card[data-appearance="olive"] { --place-accent: #33734a; --place-tint: #e3f3e8; }
.card[data-appearance="water"] { --place-accent: #2a609e; --place-tint: #e3eefc; }
.card[data-appearance="nature"] { --place-accent: #16766e; --place-tint: #dff4ee; }
.card[data-appearance="cafe"] { --place-accent: #a94e1f; --place-tint: #fbe8d8; }
.card[data-appearance="library"] { --place-accent: #92506d; --place-tint: #f9e7f0; }


.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-block: .55rem;
}

.brand-map-logo {
  display: block;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: .5rem;
}

#place-filter-field { max-width: 19rem; margin: 0 0 1rem; }
#place-filter-field label { display: block; margin-bottom: .35rem; font-weight: 600; }

.place-symbol svg, .place-select-icon svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}
.place-select { position: relative; }
.place-select-icon {
  position: absolute;
  inset-inline-start: .75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.place-select-icon:not(:empty) + :is(#place-style, #place-filter) {
  padding-inline-start: 2.5rem;
}
