/*
  AVC 183 Graphic Design, shared styles
  canvas/avc183/shared.css

  Michelle B. · Digital Media Arts Faculty · GCC
  Lora (headings) · DM Sans (body) · 15px base
  Oxblood #8c2f39 · oxblood-dark #7a2831 · ink #26221f

  Solid colors only, no gradients. All text verified at 4.5:1 or better.
  These pages are embedded in Canvas assignments via iframe, so they
  carry no site chrome and no fixed widths.
*/

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
  --ink:     #26221f;
  --muted:   #5f5854;
  --rule:    #e2dcd8;
  --paper:   #ffffff;
  --shade:   #faf8f7;
  --ox:      #7a5080;
  --ox-dark: #5f3d64;
  --ox-pale: #f7f4f8;
  --ox-line: #d9c9e0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ox-dark); color: #fff;
  padding: 0.6rem 1rem; z-index: 100;
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

a { color: var(--ox-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ox); }
a:focus-visible { outline: 3px solid var(--ox-dark); outline-offset: 2px; }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.8rem 1.4rem 3rem;
}

.eyebrow {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ox-dark); margin-bottom: 0.4rem;
}

h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.75rem; font-weight: 600;
  color: var(--ink); line-height: 1.25;
}

h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.18rem; font-weight: 600;
  color: var(--ox-dark);
  margin: 2rem 0 0.7rem;
}

h3 {
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ox-dark); margin: 1.5rem 0 0.4rem;
}

p { font-size: 1.03rem; margin-bottom: 0.75rem; }
strong { font-weight: 600; }
em { font-style: italic; }

/* The fixed time-on-task line. Bold label carries the meaning, never styling alone. */
.meta {
  background: var(--shade);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--ox);
  padding: 0.9rem 1.05rem;
  margin: 1.2rem 0 1.6rem;
  font-size: 0.97rem;
}
.meta p { font-size: 0.97rem; margin-bottom: 0.3rem; }
.meta p:last-child { margin-bottom: 0; }

.callout {
  background: var(--ox-pale);
  border: 1px solid var(--ox-line);
  padding: 1rem 1.1rem;
  margin: 1.3rem 0;
}
.callout p:last-child { margin-bottom: 0; }

ol, ul { margin: 0.6rem 0 1rem 1.3rem; }
li { font-size: 1.03rem; margin-bottom: 0.45rem; }
li > ul, li > ol { margin-top: 0.4rem; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--rule); }
table { border-collapse: collapse; width: 100%; background: var(--paper); }
caption { text-align: left; font-size: 0.88rem; color: var(--muted); padding: 0 0 0.5rem; }
th, td {
  text-align: left; vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.93rem;
}
thead th {
  background: var(--ox-dark); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
}
tbody tr:nth-child(even) { background: var(--shade); }
td.pts { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tfoot td { font-weight: 700; border-top: 2px solid var(--ox-dark); }

.pagefoot {
  margin-top: 2.5rem; padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem; color: var(--muted);
}
.pagefoot a { color: var(--muted); }

/* Module landing grid */
.module-grid { display: grid; gap: 0.6rem; margin-top: 1.4rem; }
.module-item {
  display: flex; gap: 0.8rem; align-items: flex-start;
  border: 1px solid var(--rule);
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
}
.module-item:hover { border-color: var(--ox); background: var(--shade); }
.module-item .item-title { font-weight: 600; font-size: 1rem; }
.module-item .item-type { font-size: 0.83rem; color: var(--muted); margin-top: 0.15rem; }
.item-icon { font-size: 1.15rem; line-height: 1.3; flex-shrink: 0; }

@media (max-width: 600px) {
  main { padding: 1.4rem 1rem 2.5rem; }
  h1 { font-size: 1.45rem; }
}

/* Student/Instructor view toggle on module pages. Student view is the default; instructor notes are not displayed in it. */
.viewbar { display: flex; gap: 0.5rem; align-items: center; margin: 0 0 1rem; font-size: 0.9rem; }
.viewbar button { font: inherit; padding: 0.3rem 0.7rem; border: 1px solid #7a5080; background: #ffffff; color: #7a5080; border-radius: 4px; cursor: pointer; }
.viewbar button[aria-pressed="true"] { background: #7a5080; color: #ffffff; }
.instructor-notes { display: block; background: #f7f4f8; border: 1px solid #d9c9e0; border-radius: 8px; padding: 1rem 1.1rem; margin: 1.3rem 0; }
