:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR",
    sans-serif;
  color: #252824;
  background: #faf8f4;
  font-size: 16px;
  line-height: 1.6;
  --orange: #e65522;
  --green: #263e32;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
  min-height: 44px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #9e492b;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.header {
  max-width: 1160px;
  margin: auto;
  padding: 25px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e9e4da;
  gap: 20px;
}
.brand {
  font-size: 30px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -1.4px;
  white-space: nowrap;
}
.brand span {
  font-size: 14px;
  font-weight: 500;
  color: #6b7068;
  margin-left: 16px;
  letter-spacing: 0;
}
.header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  white-space: nowrap;
}
.quiet {
  padding: 8px 10px;
  border-radius: 10px;
  color: #5f635c;
}
.quiet:hover {
  background: #eeeae1;
}
main {
  max-width: 1120px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 58px;
  padding: 0 28px;
  min-height: 65vh;
}
.profile {
  align-self: start;
  position: sticky;
  top: 24px;
}
.avatar {
  width: 70px;
  height: 70px;
  border-radius: 23px;
  background: var(--green);
  color: #eaf0ce;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 14px;
  color: var(--orange);
  font-weight: 700;
  margin: 0 0 10px;
}
h1 {
  font-size: 36px;
  line-height: 1.28;
  letter-spacing: -1.2px;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin: 0;
}
h3 {
  font-size: 22px;
  letter-spacing: -0.5px;
  margin: 22px 0 10px;
}
p {
  margin: 0 0 16px;
}
.profile > p:not(.eyebrow) {
  color: #696e65;
}
.handle {
  font-size: 14px;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 16px;
}
.primary,
.outline {
  border-radius: 14px;
  padding: 11px 19px;
  font-weight: 700;
}
.primary {
  background: var(--orange);
  color: white;
}
.primary:hover {
  background: #c64419;
}
.outline {
  border: 1px solid #a4a99b;
  background: transparent;
}
.outline:hover {
  background: #eeeae1;
}
.fine {
  font-size: 14px;
}
.privacy-note {
  display: flex;
  gap: 12px;
  border-top: 1px solid #e2ddd3;
  padding-top: 24px;
  margin-top: 28px;
  color: #71766b;
}
.privacy-note span {
  font-size: 28px;
}
.privacy-note p {
  font-size: 14px;
  margin: 0;
  line-height: 1.7;
}
.feed-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}
.post {
  background: white;
  border: 1px solid #eae5dc;
  border-radius: 20px;
  overflow: hidden;
  min-width: 0;
}
.author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.author-avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #fff0e7;
  color: var(--orange);
  border-radius: 50%;
}
.photos {
  position: relative;
  background: #efebe3;
  aspect-ratio: 1/1.05;
  overflow: hidden;
}
.photos img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photos .photo-control {
  position: absolute;
  bottom: 12px;
  background: #fffdf5ed;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  min-height: 40px;
  font-size: 20px;
  box-shadow: 0 2px 6px #0002;
}
.prev {
  left: 12px;
}
.next {
  right: 12px;
}
.photo-count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #1e271ee0;
  color: white;
  font-size: 12px;
  border-radius: 20px;
  padding: 2px 10px;
}
.photo-error {
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  font-size: 14px;
  color: #777;
  padding: 16px;
}
.post-body {
  padding: 17px;
}
.post h3 {
  font-size: 19px;
  margin: 0 0 4px;
  line-height: 1.4;
}
.address {
  font-size: 14px;
  color: #74796f;
  overflow-wrap: anywhere;
}
.caption {
  font-size: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
  margin: 12px 0;
}
.meta {
  font-size: 12px;
  color: #8a6956;
  display: block;
}
.empty {
  border-radius: 22px;
  text-align: center;
  padding: 28px 24px 36px;
  border: 1px dashed #cccfc1;
}
.empty figure {
  max-width: 250px;
  margin: 0 auto;
}
.empty img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 100px 100px 24px 24px;
}
.empty figcaption {
  font-size: 12px;
  color: #808579;
  margin-top: 6px;
}
.empty p {
  color: #70766b;
  margin: 0;
}
.more {
  display: block;
  margin: 28px auto;
}
#status {
  font-size: 14px;
  color: #70766b;
}
footer {
  max-width: 1064px;
  padding: 50px 28px 30px;
  margin: auto;
  font-size: 13px;
  color: #858a7d;
}
dialog {
  border: 0;
  border-radius: 24px;
  max-width: 430px;
  width: calc(100% - 32px);
  padding: 30px;
  box-shadow: 0 24px 80px #0003;
  color: #252824;
  background: #faf8f4;
}
dialog::backdrop {
  background: #14211788;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 28px;
  margin: 0 0 14px;
}
dialog p {
  color: #6b7268;
  font-size: 14px;
}
dialog label {
  display: block;
  margin: 16px 0 6px;
  font-size: 14px;
  font-weight: 700;
}
dialog input {
  width: 100%;
  border: 1px solid #bdc3b5;
  background: white;
  padding: 12px;
  border-radius: 12px;
  min-width: 0;
}
dialog .primary {
  width: 100%;
  margin-top: 18px;
}
.close {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 26px;
  width: 40px;
}
#login-error {
  color: #b53620;
  margin-top: 12px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  width: max-content;
  background: #253c31;
  color: white;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 14px;
  box-shadow: 0 8px 30px #0002;
  z-index: 20;
}
.loading {
  opacity: 0.6;
}
@media (max-width: 800px) {
  .brand span {
    display: none;
  }
  main {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 600px;
    margin-top: 28px;
    padding: 0 20px;
  }
  .profile {
    position: static;
  }
  .avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    font-size: 24px;
    margin-bottom: 18px;
  }
  h1 {
    font-size: 30px;
  }
  .profile-actions {
    margin-top: 18px;
  }
  .privacy-note {
    padding-top: 16px;
    margin-top: 16px;
  }
  .profile > p {
    margin-bottom: 10px;
  }
  .header {
    padding: 16px 20px;
  }
  .header nav {
    gap: 8px;
  }
  .brand {
    font-size: 27px;
  }
  .posts {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .photos {
    aspect-ratio: 1.16;
  }
  .empty img {
    height: 145px;
  }
  .empty {
    padding: 24px;
  }
  .post h3 {
    font-size: 21px;
  }
  .post-body {
    padding: 20px;
  }
  footer {
    padding: 30px 20px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background 0.15s ease;
  }
  .post {
    animation: appear 0.2s ease;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  border: 1px solid #747775;
  border-radius: 12px;
  background: #fff;
  color: #1f1f1f;
  padding: 12px;
  margin: 24px 0;
  font-weight: 600;
}
.google-login span {
  font-size: 22px;
  color: #4285f4;
}
.app-complete {
  margin: 24px auto;
  padding: 20px;
  max-width: 650px;
  border-radius: 16px;
  background: #e1eddc;
  color: #263e32;
  text-align: center;
}

.post-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.post-location .address {
  margin: 0;
}
.map-button {
  border: 1px solid #e8d9cc;
  border-radius: 12px;
  padding: 10px 14px;
  background: #fff8f1;
  color: #9b481e;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.map-button:disabled {
  opacity: 0.5;
  cursor: default;
}
.place-map-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: 90dvh;
  border: 0;
  border-radius: 20px;
  padding: 20px;
  box-sizing: border-box;
}
.place-map-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}
.map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.map-heading h2 {
  margin: 0;
  font-size: 22px;
}
.place-map-frame {
  width: 100%;
  height: min(55dvh, 480px);
  border: 0;
  border-radius: 12px;
}

/* Photo-first feed: quiet chrome and a single reading column. */
:root {
  background: #fff;
  color: #171717;
  --orange: #171717;
}
.header {
  max-width: 960px;
  padding: 14px 24px;
  min-height: 68px;
  border-color: #eee;
}
.brand {
  font-size: 27px;
  letter-spacing: -1.2px;
  color: #171717;
}
.brand span {
  display: none;
}
.header nav {
  gap: 12px;
  font-size: 13px;
}
main {
  display: block;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px;
}
.profile {
  position: static;
  padding: 18px 0;
  margin: 0;
  border-bottom: 1px solid #eee;
}
body:not(.personal-feed) .profile {
  display: none;
}
.profile .avatar,
.profile .eyebrow,
#profile-description,
.privacy-note {
  display: none;
}
.profile h1 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.5px;
}
.profile-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}
.profile-actions button {
  padding: 6px 12px;
  min-height: 36px;
  border-radius: 8px;
  font-size: 13px;
}
.feed {
  min-width: 0;
  padding: 0;
}
.feed-heading {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.feed-heading h2 {
  font-size: 14px;
  margin: 0;
}
.feed-heading button {
  font-size: 12px;
  min-height: 36px;
}
.posts {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.post {
  border: 0;
  border-bottom: 1px solid #eee;
  border-radius: 0;
  margin: 0 0 18px;
  box-shadow: none;
}
.author {
  padding: 12px 0;
  font-size: 13px;
  line-height: 1.5;
}
.author-avatar {
  width: 32px;
  height: 32px;
  color: #333;
  background: #f1f1f1;
}
.author-area {
  display: block;
  font-size: 11px;
  color: #777;
  font-weight: 400;
}
.photos {
  aspect-ratio: 1;
  background: #f5f5f5;
}
.photos img {
  object-fit: cover;
}
.post-body {
  padding: 6px 0 16px;
}
.post h3 {
  font-size: 14px;
  margin: 0;
  display: inline;
}
.post-location {
  float: right;
  margin-top: -5px;
}
.post-location .address {
  display: none;
}
.map-button {
  padding: 6px 10px;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 12px;
}
.caption {
  clear: both;
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0;
}
.caption.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.caption-toggle {
  padding: 0;
  min-height: 32px;
  font-size: 12px;
  color: #777;
}
.meta {
  clear: both;
  font-size: 11px;
  color: #999;
  margin-top: 8px;
}
.empty {
  padding: 80px 16px;
  border: 0;
  border-radius: 0;
}
.empty figure {
  display: none;
}
.empty h3 {
  font-size: 17px;
  font-weight: 600;
}
.empty p {
  font-size: 13px;
  color: #888;
}
footer {
  display: none;
}
@media (max-width: 560px) {
  .header {
    padding: 12px 16px;
    gap: 8px;
  }
  .header nav {
    gap: 4px;
    font-size: 12px;
  }
  main {
    padding: 0;
    width: 100%;
  }
  .feed-heading,
  .profile {
    margin: 0 14px;
  }
  .author {
    padding: 12px 14px;
  }
  .post-body {
    padding: 6px 14px 16px;
  }
  .post {
    border-radius: 0;
  }
  .photos {
    aspect-ratio: 1;
  }
}

.feed-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.feed-actions #share {
  border: 0;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 400;
}

/* Shared controls and accessible touch targets across all web screens. */
button,
.map-link {
  min-height: 44px;
}
.header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.header nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.feed-heading button,
.map-button,
.caption-toggle,
.profile-actions button {
  min-height: 44px;
}
.map-button {
  border-radius: 10px;
}
.map-button:focus-visible,
summary:focus-visible {
  outline: 2px solid #222;
  outline-offset: 3px;
}
.author-area,
.caption-toggle,
.meta,
.empty p,
.address,
.fine {
  color: #666;
}
#login-dialog {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
#login-dialog h2 {
  font-size: 24px;
  padding-right: 28px;
}
#login-dialog p {
  color: #606060;
}
#login-dialog .close {
  width: 44px;
  height: 44px;
  right: 8px;
  top: 8px;
}
#login-dialog .fine {
  font-size: 12px;
}
.login-help {
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #606060;
}
.login-help summary {
  cursor: pointer;
  padding: 12px 0;
  min-height: 44px;
}
.login-help p {
  margin-top: 0;
}
.toast {
  background: #222;
  bottom: calc(16px + env(safe-area-inset-bottom));
}
.place-map-dialog {
  border-radius: 16px;
  padding: 20px;
}
.place-map-dialog .map-heading h2 {
  font-size: 20px;
}
@media (max-width: 560px) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .header {
    align-items: center;
  }
  .header .brand {
    font-size: 24px;
  }
  .header nav {
    max-width: 70%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

body.friend-invite #profile-label,
body.friend-invite #profile-description {
  display: block;
}
body.friend-invite #profile-description {
  white-space: pre-line;
  line-height: 1.7;
  margin: 12px 0 16px;
}
.web-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}
.web-controls a,
.download-link {
  display: inline-block;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 12px;
}
.download-card {
  margin: 40px auto;
  padding: 28px;
  max-width: 920px;
  background: #fff4e9;
  border: 1px solid #f4dcc6;
  border-radius: 24px;
}
.download-card h2 {
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.4;
}
.download-card p {
  line-height: 1.7;
}
.download-link {
  background: #ed6029;
  color: #fff;
  font-weight: 700;
}
dialog {
  max-height: 85dvh;
  overflow: auto;
}
dialog label {
  display: block;
  margin: 16px 0;
}
dialog input,
dialog textarea,
select {
  box-sizing: border-box;
  max-width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font: inherit;
}
dialog input,
dialog textarea {
  display: block;
  width: 100%;
  margin: 8px 0;
}
.friend-row,
.comment-item {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  overflow-wrap: anywhere;
}
.friend-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.comment-item p {
  white-space: pre-wrap;
}
#profile-error {
  color: #b42318;
}
.header nav {
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  .download-card {
    padding: 20px;
    margin: 28px 0;
  }
  .header {
    flex-wrap: wrap;
    gap: 12px;
  }
}

.restaurant-link { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.feed-map-dialog { width: min(960px, calc(100vw - 24px)); max-height: 94dvh; padding: 18px; }
.feed-places-map { height: min(50dvh, 470px); min-height: 240px; margin-top: 12px; border-radius: 12px; }
.map-place-list { max-height: 24dvh; overflow: auto; margin-top: 12px; }
.map-place-row { display:flex; flex-direction:column; gap:6px; padding:12px 4px; border-bottom:1px solid #eee; color:inherit; text-decoration:none; }
.restaurant-pin { background:#ed6029; color:#fff; border:2px solid #fff; border-radius:50%; text-align:center; line-height:28px; font-weight:700; box-shadow:0 2px 6px #0005; }
.feed-map-dialog input { width:100%; box-sizing:border-box; }

.feed-map-dialog { max-width: calc(100vw - 24px); }

.feed-places-map, .place-map-frame { touch-action: pan-y; }

[data-app-downloads] [hidden] { display: none !important; }

/* Discovery first: give visitors a useful restaurant list before asking to install. */
body.discovery { background: #faf8f4; }
body.discovery main { max-width: 1000px; padding: 0 24px; }
body.discovery .profile { display:block; padding:38px 0 26px; border:0; }
body.discovery .profile .eyebrow, body.discovery #profile-description { display:block; }
body.discovery .profile .eyebrow { color:#b3421b; margin:0 0 10px; font-weight:700; }
body.discovery .profile h1 { font-size:clamp(30px,5vw,46px); line-height:1.25; letter-spacing:-1.5px; }
body.discovery #profile-description { font-size:16px; color:#655d54; margin:16px 0; line-height:1.7; }
.browse-start { display:inline-flex; align-items:center; min-height:44px; background:#be471d; color:white; padding:10px 18px; border-radius:12px; }
body.discovery .profile-actions { display:none; }
.place-search { margin:0 0 18px; }
.place-search label { display:block; font-weight:650; margin-bottom:8px; }
.place-search > div { display:flex; gap:8px; }
.place-search input { width:100%; min-width:0; border:1px solid #d7cec2; border-radius:12px; padding:12px; background:white; }
.place-search button { flex-shrink:0; min-height:48px; }
.place-actions { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
.place-actions button { min-height:44px; padding:8px 13px; font-size:14px; }
.save-place[aria-pressed="true"] { color:#9b3616; background:#fff0e7; border-color:#d99a78; }
.catalog-label { font-size:12px; color:#766451; margin:6px 0; }
body.discovery .posts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
body.discovery .post { background:white; border:1px solid #e8dfd4; border-radius:18px; overflow:hidden; margin:0; }
body.discovery .author { padding:12px 16px; }
body.discovery .photos { aspect-ratio:4/3; }
body.discovery .post-body { padding:16px; }
body.discovery .post h3 { font-size:20px; display:block; }
body.discovery .post-location { float:none; margin:0; display:flex; align-items:center; gap:8px; }
body.discovery .post-location .address { display:block; font-size:13px; margin:0; }
body.discovery .feed-heading h2 { font-size:19px; }
body.discovery .feed-heading { border:0; margin:0 0 8px; }
body.discovery .web-controls { padding:0; flex-wrap:wrap; }
.saved-places { margin-bottom:24px; }
.saved-place { background:white; padding:20px; margin:14px 0; border:1px solid #e8dfd4; border-radius:16px; }
.saved-place h3 { margin:0; }
.saved-place h3 a { text-decoration:underline; text-underline-offset:4px; }
body.discovery footer { display:block; max-width:1000px; margin:30px auto; padding:24px; line-height:2; }
body.discovery .download-card { margin:36px 0; background:#f1e9dd; }
#browse { scroll-margin-top:16px; }
@media(max-width:560px) {
  body.discovery main { padding:0 16px; }
  body.discovery .profile { margin:0; padding:24px 0 20px; }
  body.discovery .posts { grid-template-columns:1fr; gap:18px; }
  .header nav { white-space:normal; gap:10px; font-size:14px; }
  .header nav a, .header nav button { min-height:44px; display:inline-flex; align-items:center; }
  body.discovery .feed-heading { padding:12px 0; }
}

/* Allow scrolling without browser pinch/double-tap zoom, including dialogs. */
html, body, dialog {
  touch-action: pan-x pan-y;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* iOS zooms focused controls when their text is smaller than 16px. */
@media (hover: none), (pointer: coarse) {
  input, textarea, select { font-size: 16px !important; }
}
