@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600&display=swap");

:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --muted: #595959;
  --line: #e8e8e8;
  --heart: #e11d48;
  --card: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  font-size: 16px;
}

a { color: inherit; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

header {
  padding: 28px 40px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  flex-wrap: wrap;
}

.logo {
  font-weight: 600;
  letter-spacing: -0.3px;
  font-size: 18px;
  text-decoration: none;
  color: var(--text);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.logo span { color: var(--muted); font-weight: 400; margin-left: 0.35rem; }

nav[aria-label="Pages"] { display: flex; flex-wrap: wrap; gap: 4px 8px; }

nav[aria-label="Pages"] a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

nav[aria-label="Pages"] a[aria-current="page"] { color: var(--text); font-weight: 600; }
nav[aria-label="Pages"] a:hover { color: var(--text); }

main { max-width: 980px; margin: 0 auto; padding: 60px 24px 80px; }

.entry { margin-bottom: 100px; }

.photo-wrap {
  position: relative;
  background: var(--card);
  border-radius: 2px;
  overflow: hidden;
}

.photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.heart {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  padding: 0;
}

.heart svg { width: 22px; height: 22px; display: block; }
.heart path { fill: none; stroke: var(--text); stroke-width: 1.7; }
.heart.liked path { fill: var(--heart); stroke: var(--heart); }
.heart:hover { background: #fff; }

.saying {
  position: absolute;
  top: 28px;
  left: 32px;
  right: 32px;
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 2px 18px rgba(0, 0, 0, 0.35);
}

.context {
  margin: 18px 0 10px;
  font-size: 15px;
  color: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 15px;
}

.links a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.links a:hover { border-bottom-color: var(--text); }
.links a.set-link { color: var(--muted); }
.price { color: var(--muted); }

.guide-link {
  margin: 2px 0 0;
  font-size: 14px;
}

.guide-link a {
  color: var(--muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

footer {
  border-top: 1px solid var(--line);
  padding: 40px 24px 48px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

footer p { max-width: 40rem; margin: 0 auto 10px; line-height: 1.5; }
footer a { color: var(--text); }

footer .site-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 16px 0 8px;
}

footer .site-links a {
  text-decoration: none;
  min-height: 44px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
}

footer nav[aria-label="Social"] {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

footer nav[aria-label="Social"] a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

footer nav[aria-label="Social"] svg { width: 22px; height: 22px; display: block; }

@media (max-width: 640px) {
  header { padding: 16px; }
  .logo span { display: none; }
  main { padding: 40px 16px 64px; }
  .entry { margin-bottom: 72px; }
  .saying { top: 14px; left: 16px; right: 16px; font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .heart { transition: none; }
}

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: #1a1a1a;
  color: #fafafa;
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
}

.consent-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.consent-banner p {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 15px;
  line-height: 1.5;
  color: #fafafa;
  text-align: left;
}

.consent-banner a { color: #fff; }

.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.consent-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 18px;
  border-radius: 2px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.consent-btn.accept { background: #fafafa; color: #1a1a1a; }
.consent-btn.accept:hover { background: #fff; }
.consent-btn.decline {
  background: transparent;
  color: #fafafa;
  border-color: rgba(250, 250, 250, 0.45);
}
.consent-btn.decline:hover { border-color: #fafafa; }

/* 2026-10-31: heart under the photo, left aligned; AI label; new-tab icon */
.entry-actions { display: flex; justify-content: flex-start; margin: 8px 0 0 -10px; }
.entry-actions .heart { background: transparent; }
.entry-actions .heart:hover { background: transparent; }
.ai-label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  margin: 0;
  background: rgba(26, 26, 26, 0.72);
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 2px;
}
.entry-actions + .context { margin-top: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ext-icon { font-size: 0.85em; margin-left: 0.2em; color: var(--muted); }
.links + .guide-link { margin-top: 0; }
.entry.portrait { max-width: 620px; margin-left: auto; margin-right: auto; }
