/* ================================================================
   COLOR VARIABLES — using Chloe’s palette
   ================================================================ */
:root {
  --yellow: #fefb00ff;
  --cotton-candy: #fc97b0ff;
  --bright-ocean: #438ac8ff;
  --vanilla-custard: #FEFFC3;
  --blue-violet: #7c44d1ff;
  --medium-jungle: #00a347ff;
  --vivid-tangerine: #ff7e0cff;
  --racing-red: #e9322fff;

  --text: #111;
  --offwhite: #fafafa;
  --rule: #e1e1e1;
}


/* ================================================================
   GLOBAL EDITORIAL BASE STYLES
   ================================================================ */
body {
  margin: 0;
  padding: 50px;
  font-family: "IBM Plex Mono", monospace;
  background: var(--offwhite);
  color: var(--text);
  line-height: 1.6;
}

/* Page header */
.page-header h1 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 5px;
  color: var(--blue-violet);
}

.meta {
  text-align: center;
  color: var(--medium-jungle);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.header-rule {
  border: none;
  height: 1px;
  background: var(--rule);
  margin-top: 25px;
}


/* ================================================================
   TWO-COLUMN LAYOUT GRID
   Left: sidebar (navigation)
   Right: main content
   ================================================================ */
.layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  margin-top: 50px;
}

/* Sidebar links */
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar a {
  display: block;
  padding: 6px 0;
  color: var(--bright-ocean);
  text-decoration: none;
  font-size: 0.95rem;
}

.sidebar a:hover {
  color: var(--blue-violet);
}


/* ================================================================
   SECTION HEADINGS
   ================================================================ */
.section h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  border-left: 5px solid var(--bright-ocean);
  padding-left: 12px;
}


/* ================================================================
   TABLE STYLES
   ================================================================ */
.styled-table {
  width: 90%;
  border-collapse: collapse;
  background: white;
}

/* Cell styles */
.styled-table th,
.styled-table td {
  padding: 12px 14px;
  border: 1px solid var(--rule);
  font-size: 0.95rem;
}

.styled-table th {
  background: var(--vanilla-custard);
  font-weight: 600;
}

/* Alternating rows */
.styled-table tbody tr:nth-child(even) {
  background: #f8f8f8;
}


/* ================================================================
   TIC-TAC-TOE STYLE
   ================================================================ */
.tic {
  width: 90%;
  border-collapse: collapse;
  font-size: 2rem;
  text-align: center;
}

.tic td {
  border: 2px solid var(--racing-red);
  height: 80px;
}


/* ================================================================
   FORM STYLING
   ================================================================ */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input,
select,
textarea,
button {
  font-family: inherit;
  padding: 10px;
  border: 1px solid var(--rule);
  border-radius: 4px;
}

button {
  background: var(--vivid-tangerine);
  color: white;
  border: none;
  cursor: pointer;
  padding: 12px 18px;
}

button:hover {
  background: var(--cotton-candy);
}
