:root {
  --ink: #16302a;
  --ink-soft: #24463c;
  --paper: #faf6ec;
  --paper-alt: #f1ead9;
  --gold: #c98a3b;
  --gold-dark: #a86f2a;
  --teal: #2f6f68;
  --text-dark: #16302a;
  --text-muted: #5c6b63;
  --border: #e2d9c3;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--text-dark);
}

h1, .logo, .innerStyle h2 {
  font-family: 'Fraunces', serif;
}

/* Navbar */
.navbar {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--paper);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.navbar nav {
  display: flex;
  gap: 24px;
}

.navbar nav a {
  color: #d8cba8;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.navbar nav a:hover,
.navbar nav a:focus-visible {
  color: var(--gold);
}

/* Hero */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 84px 24px 100px;
  overflow: hidden;
}

.compass {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  color: var(--gold);
  opacity: 0.16;
  animation: spin 90s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .compass {
    animation: none;
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero-sub {
  color: #cfd9c7;
  font-size: 1.02rem;
  margin: 0 0 36px;
}

.search-box {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 6px;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.search-box input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-size: 0.98rem;
  font-family: inherit;
  background: transparent;
  color: var(--text-dark);
  min-width: 0;
}

.search-box input:focus-visible {
  outline: 2px solid var(--teal);
}

.search-box button {
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.search-box button:hover,
.search-box button:focus-visible {
  background: var(--gold-dark);
  color: #fff;
}

/* Results grid */
main {
  max-width: 1100px;
  margin: -56px auto 64px;
  padding: 0 24px;
  position: relative;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}

.innerStyle {
  position: relative;
  background: #fffdf8;
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  border: 1px dashed var(--border);
  box-shadow: 0 10px 26px rgba(22, 48, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.innerStyle:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(22, 48, 42, 0.14);
}

.innerStyle img {
  width: 76px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  border: 3px solid #fffdf8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  transform: rotate(-3deg);
  margin-bottom: 6px;
}

.innerStyle h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 600;
}

.innerStyle p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.innerStyle p:nth-of-type(1)::before { content: "📍 "; }
.innerStyle p:nth-of-type(2)::before { content: "👥 "; }
.innerStyle p:nth-of-type(3)::before { content: "🌐 "; }

.innerStyle button {
  margin-top: 12px;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}

.innerStyle button::before {
  content: "☁ ";
}

.innerStyle button:hover,
.innerStyle button:focus-visible {
  background: var(--ink-soft);
}

.weather {
  margin-top: 4px;
  padding: 10px 12px;
  background: var(--paper-alt);
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--ink);
  display: none;
  line-height: 1.5;
}

.weather.visible {
  display: block;
}

.status-message {
  text-align: center;
  color: var(--text-muted);
  grid-column: 1 / -1;
  padding: 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: var(--ink);
  color: #d8cba8;
  text-align: center;
  padding: 30px 24px;
  font-size: 0.85rem;
}

.footer a {
  color: var(--gold);
}

.footer p {
  margin: 4px 0;
}

@media (max-width: 600px) {
  .navbar-inner {
    flex-direction: column;
    gap: 10px;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .compass {
    width: 220px;
    height: 220px;
  }
}