/* Styles for aranda-web.com: the landing page (index.html, index-es.html, index-de.html)
   and the Arandas login. Colours: one line each. */
:root {
  --band:    #2196F3;   /* same blue as antonio.aranda-web.com (W3.CSS "w3-blue") */
  --antonio: #2E9E5E;   /* green  */
  --barbara: #4F86C6;   /* blue   */
  --luisa:   #F0CC00;   /* yellow (with dark text) */
  --arandas: #C054B8;   /* pink   */
  --books:   #E0661F;   /* orange */
  --techno:  #0F9A94;   /* teal   */
  --ai:      #D23F6A;   /* raspberry */
  --more:    #5061E8;   /* cultural, societies, notes */
}

* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 Verdana, sans-serif; color: #111; background: #fff; }
h1 { margin: 12px 0 6px; font: 36px/1.2 "Segoe UI", Arial, sans-serif; }
h2 { margin: 24px 0 12px; font: 28px/1.2 "Segoe UI", Arial, sans-serif; }
a { color: inherit; }

/* Blue band: title, menu, languages */
header { background: var(--band); color: #fff; padding: 2px 16px 10px; }
header nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
header nav a { display: inline-block; margin-right: 18px; padding: 4px 0; }
header .langs a { margin: 0 0 0 14px; }
header .langs a:first-child { margin-left: 0; }
header .langs a[aria-current] { font-weight: bold; text-decoration: none; }

/* Landing grid: 3 columns on wide screens, filled row by row */
main.grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 36px; max-width: 1200px; padding: 20px 16px 40px;
}
.arandas, .books, .cultural { grid-column: 1; }  /* Arandas alone on row 3; rows 4 and 5 start again at column 1 */

.antonio, .publications { --c: var(--antonio); }
.barbara, .art          { --c: var(--barbara); }
.luisa, .performances   { --c: var(--luisa); --t: #2b2200; }
.arandas                { --c: var(--arandas); }
.books                  { --c: var(--books); }
.techno                 { --c: var(--techno); }
.ai                     { --c: var(--ai); }
.cultural, .societies, .notes { --c: var(--more); }

/* The 3D buttons */
.btn {
  display: inline-block; margin: 14px 0 16px; padding: 15px 25px;
  font-size: 28px; line-height: 1.2; text-decoration: none; cursor: pointer;
  color: var(--t, #fff); background: var(--c); border: 0;
  border-radius: 15px; box-shadow: 0 9px #999; transition: filter .15s;
  font-family: inherit;
}
.btn:hover  { filter: brightness(.9); }
.btn:active { box-shadow: 0 5px #666; transform: translateY(4px); }
.btn:focus-visible { outline: 3px solid #111; outline-offset: 4px; }

.item p, .item ul { margin: 0 0 .7em; }
.item ul { padding-left: 1.2em; }

/* Phones and narrow windows: one column, row by row */
@media (max-width: 760px) {
  main.grid { grid-template-columns: 1fr; }
  .arandas, .books, .cultural { grid-column: auto; }
  h1 { font-size: 30px; }
}

/* ---------- Arandas: login page ---------- */
.login { max-width: 420px; padding: 8px 16px 40px; --c: var(--arandas); }
.login label { display: block; margin: 14px 0 4px; font-weight: bold; }
.login input[type=text], .login input[type=password] {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 17px;
  border: 1px solid #888; border-radius: 6px;
}
.login input:focus { outline: 3px solid var(--band); outline-offset: 1px; }
.login .msg { padding: 10px 12px; border-radius: 6px; background: #fdecea; color: #7a1c12; }
.login .msg.ok { background: #e7f5ec; color: #1d5b36; }
.login .note { color: #555; font-size: 14px; }

/* Bar shown at the top of every private page */
.arandas-bar { background: var(--arandas); color: #fff; padding: 8px 16px; font-size: 14px; }
.arandas-bar a { color: #fff; margin-left: 12px; }
.login.wide { max-width: 760px; }
