/* ===============================
   THE HOTEI PROJECT – GLOBAL CSS
   =============================== */

/* -------- Variables -------- */
:root{
  --max-width: 980px;
  --padding: 16px;
  --bg: #ffffff;
  --text: #111;
  --muted: #555;
  --accent: #7a4d1a;
  --radius: 8px;
  --shadow: 0 6px 18px rgba(0,0,0,.08);
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;

  /* BACKGROUND IMAGE */
background:
  linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,.8)),
  url("../images/chatgpt.jpg") center center / cover no-repeat fixed;
}

/* -------- Layout -------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding);
}

main {
  padding: 2rem 0 3rem;
}

/* -------- Header -------- */
header {
  text-align: center;
  padding: 1.5rem 0;
}

header h1 {
  margin-bottom: .25rem;
  font-size: 1.6rem;
}

header p {
  color: var(--muted);
  font-size: .95rem;
}

/* Language switch */
.lang-switch a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin: 0 .4rem;
}

.lang-switch a:hover {
  text-decoration: underline;
}

/* -------- Navigation -------- */
nav {
  margin: 1.2rem 0 2rem;
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  padding: .45rem .9rem;
  border-radius: 999px;
  background: rgba(0,0,0,.05);
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
}

nav a:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* -------- Articles -------- */
article {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #ddd;
}

article h1,
article h2 {
  color: #444;
}

article h2 a {
  color: var(--accent);
  text-decoration: none;
}

article h2 a:hover {
  text-decoration: underline;
}

article p {
  max-width: 720px;
}

/* -------- Footer -------- */
footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd;
  font-size: .9rem;
  color: #666;
  text-align: center;
}

/* -------- Desktop tweaks -------- */
@media (min-width: 700px) {
  header h1 {
    font-size: 2rem;
  }

  nav a {
    background: none;
    padding: 0;
  }
}

body { font-family: system-ui, sans-serif; margin:2rem; line-height:1.7; color:#222; max-width:900px; }
h1 { color:#444; }
article { border-bottom:1px solid #ddd; margin-bottom:1.5rem; padding-bottom:1.5rem; }
a { color:#0066cc; text-decoration:none; }
a:hover { text-decoration:underline; }
nav { margin-bottom:1.5rem; }
footer { margin-top:2rem; font-size:0.9rem; color:#666; border-top:1px solid #ddd; padding-top:1rem; }
