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

html
{
  box-sizing:border-box;
}
html
{
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* keep images and video from overflowing viewport */
img, picture, svg, video
{
  display:block;
  max-width:100%;
}

/* have forms inherit fonts */
input, textarea, button, select
{
  font:inherit;
}

/* balance multi-line text so characters per line are similar */
h1, h2, h3, h4, h5, h6
{
  text-wrap:balance;
}

/* avoid orphan words */
p, li, figcaption
{
  text-wrap:pretty;
}

/* keep input elements from overflowing out of flex container */
input, textarea
{
  min-width: 0;   /* allow flex algorithm to shrink elements below intrinsic width */
}

.merienda-bold, h1 {
  font-family: "Merienda", var(--font-stack-display);
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.acme-regular, h2, h3 {
  font-family: "Acme", var(--font-stack-sans-serif);
  font-weight: 400;
  font-style: normal;
}

.rubik-regular, body {
  font-family: "Rubik", var(--font-stack-sans-serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.smallcaps {
  font-size:0.8em;
  text-transform: uppercase;
}

a:link, a:visited
{
  color: var(--link-colour);
}
a:hover
{
  background-color: var(--link-hover-colour);
}
a:active
{
  color: var(--link-active-colour);
}

html
{
  --font-stack-sans-serif: Candara, Calibri, Segoe, "Segoe UI", Optima, Arial, sans-serif;
  --font-stack-display: 'Segoe Print', 'Bradley Hand', Chilanka, TSCu_Comic, casual, cursive;
  font-size:1.2em;
  --text-colour: black;
  --link-colour: rgb(76, 107, 173);
  --link-hover-colour: rgb(247, 247, 193);
  --link-active-colour: red;
  --background-colour: whitesmoke;
  --banner-colour: rgb(231, 205, 205);
  --component-bg-colour-1: rgb(251, 241, 199);
  --footer-colour: var(--banner-colour);
  --border-colour: black;
}

body
{
  background: var(--background-colour);
  color: var(--text-colour);
  margin: 0;
}

.frame
{
  min-height: 100vh;
  min-height: 100svh;
}

.content
{
  padding:0;
}

.banner-frame
{
  background-color: var(--banner-colour);
  padding:1rem 0.5rem;
}

.banner
{
  background: left no-repeat url(/g/rice-mi-logo.png), right no-repeat url(/g/riz-moi-logo-01.png);
  background-size: contain;
}

.banner h1
{
  font-size: 2.2rem;
  margin:0;
}

.main
{
  margin-bottom: 3rem;
}

.footer
{
  background-color: var(--footer-colour);
  border-top:1px solid var(--border-colour);
  bottom:0;
  font-size:0.8rem;
  height:3em;
  margin:0;
  padding: 0.5rem;
  position: fixed;
  text-align: center;
  width:100%;
}

.mainColumn
{
  text-align: center;
}

.mainColumn p
{
  margin-block: 0.6em;
}

.grid
{
  --grid-gap: 1em;
  --grid-max-column-count: 3;
  --grid-min-item-width: 15em;

  /* bigger of (available space / number of columns) and min item width */
  /* If there is enough space for the target number of columns, then width is set
     to available space / target number of columns. Otherwise, it is set to the min item width.
   */
  --grid-min-item-width-per-column-calc:
      max(var(--grid-min-item-width),
          calc( (100% - (var(--grid-max-column-count) - 1) * var(--grid-gap) )
                / var(--grid-max-column-count)
          )
      );
  /* If available space is less than the min item width, set to available space */
  --grid-min-item-width-calc: min(var(--grid-min-item-width-per-column-calc), 100%);

  display: grid;
  gap: var(--grid-gap);
  /* 1fr is used when available space isn't big enough for target number of columns
     but is larger than the min item width */
  grid-template-columns: repeat(
    auto-fit,
    minmax(var(--grid-min-item-width-calc),
           1fr)
  );
}

h1
{
  text-align: center;
}

nav ul
{
  display: inline-block;
  list-style-type: none;
  padding-left: 0;
}
nav li
{
  display: inline-block;
}
nav li + li:before
{
  content: "\2002\1F35C\2002";
}

.card > *
{
  margin: 0.5rem 0.5rem 0;
}

.card
{
  align-items: center;
  display: flex;
  flex-direction: column;
  padding-bottom: 1rem;
}

.card h3
{
  display: flex;
  margin:0;
  min-height:3rem;
  align-items: flex-end;
}

.grid .card img.landscape
{
  --image-width: 80%;
  aspect-ratio: 4 / 3;
}

.grid .card img.portrait
{
  --image-width: 60%;
}

.grid .card img
{
  border-radius: 1rem;
  object-fit: cover;
  width: var(--image-width);
}

#Hours
{
  background-color: var(--component-bg-colour-1);
  border-radius:15px;
  margin: 1.4em auto;
  padding: 0.25em;
  width: min(95%, 30em);
}

@media (max-width: 590px) {
  .banner h1 {
    font-size: 1.8em;
  }
  .footer {
      font-size:0.7em;
      height: 4em;
  }
}