/* ============================================================
   Geography Art
   ============================================================ */

:root {
  --bg:             #f1f4f2;
  --card:           #ffffff;
  --text:           #1a2b1e;
  --text-mid:       #374151;
  --text-muted:     #6b7280;
  --accent:         #1a5c38;
  --accent-hover:   #14472b;
  --accent-light:   #ecfdf5;
  --accent-border:  #a7f3d0;
  --rule:           #e5e7eb;
  --link:           #1a5c38;
  --radius-sm:      0.375rem;
  --radius-md:      0.625rem;
  --radius-lg:      1rem;
  --shadow-card:    0 4px 6px -1px rgba(0,0,0,0.07), 0 10px 40px -8px rgba(0,0,0,0.12);
  --font:           -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ---- Reset / Base ---------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-mid);
  background-color: var(--bg);
  margin: 0;
  padding: 0;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--accent-hover); }

/* ---- Layout ---------------------------------------------- */

#content-card {
  width: 100%;
  background: var(--card);
  padding: 1.75rem 1.25rem 3rem;
  min-height: 100vh;
}

@media (min-width: 640px) {
  body {
    padding: 2.5rem 1rem;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  #content-card {
    width: 100%;
    max-width: 42rem;
    min-height: unset;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 2.5rem 2.75rem 3.5rem;
  }
}

/* ---- Site Header ----------------------------------------- */

.site-header {
  text-align: center;
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--accent-border);
}

.site-header h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.site-header .tagline {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- Section Headings ------------------------------------ */

h2 {
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--rule);
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}

p {
  color: var(--text-mid);
  margin: 0 0 1rem;
}

/* ---- Map Section ----------------------------------------- */

#map {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-md);
  border: 1px solid #d1d5db;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  #map { height: 400px; }
}

/* ---- CTA Button ------------------------------------------ */

#get3DModel {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  margin-bottom: 2.5rem;
  background-color: var(--accent);
  color: #ffffff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26,92,56,0.22);
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

#get3DModel:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,92,56,0.3);
}

#get3DModel:active { transform: translateY(0); }

#get3DModel:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---- Work Items ------------------------------------------ */

.work-item {
  margin-bottom: 2rem;
}

.work-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  margin-top: 1rem;
}

/* ---- Learn Links ----------------------------------------- */

.learn-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.learn-list li a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  background-color: #f8faf9;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.learn-list li a::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.learn-list li a:hover {
  background-color: var(--accent-light);
  border-color: #6ee7b7;
  transform: translateX(3px);
  color: var(--accent);
}

/* ---- About Section --------------------------------------- */

.about-section p {
  font-size: 0.9375rem;
  line-height: 1.8;
}

.about-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  background-color: var(--accent-light);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.about-cta:hover {
  background-color: #d1fae5;
  border-color: var(--accent);
  color: var(--accent-hover);
}
